Click here to Skip to main content
15,442,338 members

Comments by Zasky (Top 12 by date)

Zasky 19-Oct-12 11:40am View    
You're reading the file as unicode, which is probably isn't. That's why the output looks 'encoded'.
Zasky 19-Oct-12 7:06am View     CRLF
Check this out: client1.Command.Parameters.Add("@id", SqlDbType.Int).Value = GridView9.SelectedRow.Cells[1]; Does that give the value you expect? Maybe try "... = Int32.Parse(GridView9.SelectedRow.Cells[1].Text);"
Zasky 25-May-12 9:32am View    
Fair enough, but as it's not clear what 'the range of hundred' means I went for the simplest solution. A range of a hundred doesn't indicate the upper and lower bounds. Okay, it probably meant 0-100, but I'm sure OP can handle a condition statement.
Zasky 13-Mar-12 10:29am View    
How is m_CodeAgence declared?
Zasky 12-Mar-12 8:08am View     CRLF
Well, you've made assumptions there. The question says 'a' submit button, so there may be other buttons and, although a data entry form generally has 1 submit button it may not always be so. DialogResult is just a public property much like any other and if you're assumptions are correct then it would be sensible to use it. I'm not sure what you mean by having many public DialogResult properties. Perhaps you mean that my property could be a DialogResult enum intead of bool? That would be fine but no better than bool in my opinion. This solution just provides another approach which may (or may not!) be a better fit.