The following codes are the examples to get the control out from the templatefield of Detailsview:
TextBox UserNameBox = DetailsView1.FindControl("UserName") as TextBox;
Label ErrorLabel = DetailsView1.FindControl("ErrorLabel") as Label;
Example is better than percept
The following codes are the examples to get the control out from the templatefield of Detailsview:
TextBox UserNameBox = DetailsView1.FindControl("UserName") as TextBox;
Label ErrorLabel = DetailsView1.FindControl("ErrorLabel") as Label;
2009 ·Coding Life by TNB
0 Comments:
Post a Comment