How to get the values which are there in edit item template?
I have a control placed in edit item template in detail view control. what ever the control I am using I need to access those values in my code behind page that in my item updating event
Can any o开发者_开发问答ne tel me the syntax how to acces it those control values?
Actually what ever control are there in my edit item template are not added in my designer.cs file what is the issue for this
thank you
this will definitly work try..
protected void DetailsView1_ItemUpdating(object sender, DetailsViewUpdateEventArgs e)
{
TextBox txtbox = (TextBox)DetailsView1.FindControl("YourControlID");
}
精彩评论