c# - Accessing Gridview Template field from Panel -
im having problem days. here situation:
i have gridview template
field imagebutton
. when imagebutton
clicked, modal pop panel
opens. inside panel button cancel.
what want when user clicks cancel button. set
imagebutton.visible = true;
but can't seem because of error
unable cast object of type webcontrols.contentplaceholder type webcontrols.gridviewrow
protected void button1_click1(object sender, eventargs e) { button button = sender button; gridviewrow gridviewrow = (gridviewrow)button.namingcontainer; gridviewrow.findcontrol("stopimagebutton").visible = true; this.stoptimenotespanel_modalpopupextender.hide(); }
please help
i guess method define itemtemplate may not technically correct.please follow simple structure defined msdn solve problem.
http://msdn.microsoft.com/en-us/library/bb907626(v=vs.100).aspx
Comments
Post a Comment