Click here to Skip to main content
15,891,704 members
Home / Discussions / C#
   

C#

 
GeneralRe: Problem with wmi and exchange Pin
turbosupramk330-May-12 7:40
turbosupramk330-May-12 7:40 
GeneralRe: Problem with wmi and exchange Pin
turbosupramk330-May-12 9:28
turbosupramk330-May-12 9:28 
GeneralRe: Problem with wmi and exchange Pin
turbosupramk330-May-12 11:51
turbosupramk330-May-12 11:51 
GeneralRe: Problem with wmi and exchange Pin
Dave Kreskowiak30-May-12 15:28
mveDave Kreskowiak30-May-12 15:28 
Questionvalidation summary is showing before the submit button click Pin
Dhyanga29-May-12 9:47
Dhyanga29-May-12 9:47 
AnswerRe: validation summary is showing before the submit button click Pin
enhzflep30-May-12 6:53
enhzflep30-May-12 6:53 
QuestionHow do you add a second icon to a gui toolbar? Pin
turbosupramk329-May-12 4:43
turbosupramk329-May-12 4:43 
AnswerRe: How do you add a second icon to a gui toolbar? Pin
Ravi Bhavnani29-May-12 5:53
professionalRavi Bhavnani29-May-12 5:53 
GeneralRe: How do you add a second icon to a gui toolbar? Pin
turbosupramk329-May-12 9:34
turbosupramk329-May-12 9:34 
GeneralRe: How do you add a second icon to a gui toolbar? Pin
bishnoiparmod29-May-12 21:00
bishnoiparmod29-May-12 21:00 
AnswerRe: How do you add a second icon to a gui toolbar? Pin
Eddy Vluggen29-May-12 8:57
professionalEddy Vluggen29-May-12 8:57 
GeneralRe: How do you add a second icon to a gui toolbar? Pin
turbosupramk329-May-12 9:34
turbosupramk329-May-12 9:34 
GeneralRe: How do you add a second icon to a gui toolbar? Pin
Eddy Vluggen29-May-12 9:50
professionalEddy Vluggen29-May-12 9:50 
AnswerRe: How do you add a second icon to a gui toolbar? Pin
BobJanova29-May-12 23:09
BobJanova29-May-12 23:09 
QuestionChange password in System.Data.Sqlite Pin
amrok2amrokk29-May-12 2:49
amrok2amrokk29-May-12 2:49 
AnswerRe: Change password in System.Data.Sqlite Pin
Pete O'Hanlon29-May-12 3:14
mvePete O'Hanlon29-May-12 3:14 
GeneralRe: Change password in System.Data.Sqlite Pin
amrok2amrokk29-May-12 3:32
amrok2amrokk29-May-12 3:32 
GeneralRe: Change password in System.Data.Sqlite Pin
amrok2amrokk29-May-12 4:46
amrok2amrokk29-May-12 4:46 
GeneralRe: Change password in System.Data.Sqlite Pin
amrok2amrokk29-May-12 7:04
amrok2amrokk29-May-12 7:04 
QuestionNot all code paths return a value Pin
sheringkapoting29-May-12 0:40
sheringkapoting29-May-12 0:40 
C#
private DataTable AddNewRowToGrid()
{
    int rowIndex = 0;
    if (ViewState["CurrentTable"] != null)
    {
        DataTable dtCurrentTable = (DataTable)ViewState["CurrentTable"];
        DataRow drCurrentRow = null;
        if (dtCurrentTable.Rows.Count > 0)
        {
            for (int i = 1; i <= dtCurrentTable.Rows.Count; i++)
            {
                //extract the TextBox values
                drCurrentRow = dtCurrentTable.NewRow();
                dtCurrentTable.Rows[i - 1]["EffectFrom"] = ((TextBox)mdlpopupGrid.Rows[rowIndex].Cells[1].FindControl("txtEffectFrom")).Text;
                dtCurrentTable.Rows[i - 1]["EffectivePercentage"] = ((TextBox)mdlpopupGrid.Rows[rowIndex].Cells[2].FindControl("txtEffectivePercentage")).Text;
                dtCurrentTable.Rows[i - 1]["Grade_Salary"] = ((TextBox)mdlpopupGrid.Rows[rowIndex].Cells[3].FindControl("txtGradeSalary")).Text;
                rowIndex++;
            }
            dtCurrentTable.Rows.Add(drCurrentRow);
            ViewState["CurrentTable"] = dtCurrentTable;
            return dtCurrentTable;
        }
    }
}


This code gives me the Fallowing Error:
Not all code paths return a value plss Help !!
AnswerRe: Not all code paths return a value Pin
Can SARIGÜL29-May-12 0:43
Can SARIGÜL29-May-12 0:43 
GeneralRe: Not all code paths return a value Pin
sheringkapoting29-May-12 0:51
sheringkapoting29-May-12 0:51 
AnswerRe: Not all code paths return a value Pin
Pete O'Hanlon29-May-12 0:51
mvePete O'Hanlon29-May-12 0:51 
AnswerRe: Not all code paths return a value Pin
Apocalypse Now30-May-12 14:12
Apocalypse Now30-May-12 14:12 
GeneralUsing lame_enc.dll in .NET - Signature mismatch Pin
ChrisHinde28-May-12 15:11
ChrisHinde28-May-12 15:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.