Click here to Skip to main content
15,918,889 members

Comments by Angelo L (Top 9 by date)

Angelo L 24-Apr-17 19:14pm View    
I updated the solution. Check my comments on what I did.
Angelo L 21-Apr-17 23:04pm View    
Either rootjson needs to be declared where it is in scope for all classes you want to use it in or it needs to be an input to the constructors or to the methods of the other classes you are using it in.
Angelo L 21-Apr-17 12:48pm View    
Glad to have helped.
Angelo L 20-Apr-17 20:25pm View    
It looks to me like your code is adding data every time the comparison fails inside the loop, but since you don't break the loop you continue to iterate through. For the if statement after you display the error message you should break to exit the for loop. You shouldn't do the else statement unless you've looked at all of the rows already, meaning you iterated through and didn't go into the if statement and break. So change the else to something like 'else if (i == GridView1.Rows.Count - 1)'.
Angelo L 20-Apr-17 19:13pm View    
Using the debugger, have you verified the strings you are comparing in the if statement, GridView1.Rows[i].Cells[4].Text and DropDownList2.SelectedValue.ToString()?