Show Div when Grid Item is Clicked - JavaScipt not Update Panel

MyLoveEngBoy

New Member
On one aspx page I have a GridView that has a list of Thingys that are loaded from db. This is placed in one div. In another Div with display=none I have the form to add a new thingy. I also have a link [add new thingy] that hides the gridview div and shows the content of the form. I am using JS methods to hide and show the Divs. Now in the grid the first column is also a link that I want to load the form with the Thingy info without postback. Currently the problem is that if I use the Grid's OnRowCommand I get a postback. 1) how can I remove that postback and load the form in the second Div2) a similar issue is on save form, I can switch back to the gridview div using js really quickly but how do I reload the grid with the newly saved Thingies. I am open to a completely different approach if it solves the issue. I chose this approach over the much easier UpdatePanel because its much faster to switch between the contents without a postback.Thanks in advance.
 
Back
Top