开发者

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");
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜