Hey Gang,
I'm trying to figure out if I can make this work:
<Panel-1 visible="true">content1</panel>
<Panel-2 visible="false">content2</panel>
<updatepanel>
<gridview>
<templatefield>
<linkbutton onclick="lb_click">
</gridview>
</updatepanel>
I want the LinkButton inside the Template field in the gridview, that is updating every 30 seconds inside the update panel, to have an onclick event that will reverse the show/hide visibility attributes on my first two panels. Basically Panel 1 = Create New Service Call, Panel 2 = Edit Service Call. When the update linkbutton is clicked in the gridview, the command arguments tells my code which record the user wants to edit, queries the db for the field values then populates a copy of the submission form with the values from the DB. the user can adjust them at this point and resave. There's a little more going on in the code behind and I can't just use a gridview with the edit command enabled. Plus with the autorefresh on the gridview in the updatepanel even if I could it wouldn't make sense, the user would get half way done editing and the gridview would rebind on them and they would loose the record they were working on...making it very cumbersome.
I just need to know if you can use a LinkButton inside a GridView that is refreshing inside an update panel to manipulate the attributes of controls outside of the updatepanel.