I wanna to store some hidden data in my text box . Is there any property like CommandArgument for the buttons to store my data? The text boxes are in the template field in a grid view and i get those data in text changed event of every one.
EDIT:
TabIndex='<%#((GridViewRow)Container).RowIndex%>'
protected void txt_evaluateWeights_TextChanged(object sender, EventArgs e)
{
calc();
int index = ((RadTextBox)sender).TabIndex;
((RadTextBox)gv_Evaluation.Rows[index + 1].Cells[3].FindControl("txt_evaluateWeights")).Focus();
}
I wanna to replace the TabIndex with a convenient property to hold my index.
I’d suggest that you use the HTML5 “data-” attribute. Then you can easily extract it using jquery.
Then you’ll extract it like so
So now with ASP.NET WebForm controls, you can add the
arbirtaryNameto yourRadTextBoxin your codebehindHere’s some further reading
http://ejohn.org/blog/html-5-data-attributes/
http://api.jquery.com/data/