Hello, I'm trying to have a modalpopup control fire in a gridview, but I dont know how to approach the problem. Basically I have a linkbutton in each row of my gridview. The code for this is:
<asp:ButtonField HeaderText="Primary Subject" SortExpression="subject" ButtonType="Link" commandname="Subject" DataTextField="subject" />
which does not have an ID attribute, but of course modal popup control needs the attribute TargetControlID="something"
How do I make the buttonfield have an id? or be able to use it inside a modal popup?
Thanks
Use a TemplateField with a LinkButton instead.
Question About using a modal popup for each row in a gridview
Do you really need the trigger (the button is inside the panel, so it should trigger without it)?
Does it work if you remove the Popup extender?
No comments:
Post a Comment