/ Published in: C#

Useful when you have multiple fields on a page that call the same method (ie via OnSelectedIndexChanged), since you can't pass a param as part of the call
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
int QuestionNumber = Convert.ToInt16(rbList.ID.ToString().Substring(rbList.ID.ToString().Length -1, 1)); //get the question number from the end of the control's ID.
Comments
