Gridview and modal popup issue

melrykimi

New Member
I have a main page with asp ajax tab container. One of the tabs has a gridview in a usercontrol. From the gridview am opening a popup which is in another usercontrol. I have some jquery in the popup to hide and show some parts of it. I am using a LinkButton to open it. Problem: When I use LinkButton it does a full page postback and opens up the popup and the jquery works fine. The problem with this linkbutton is that the navigation menu falls down as if it were a horizontal list for some time and gets back to normal.
  • one
  • two
  • three
and then goes back to one | two | three (assuming these are the navigation bar)I got around the this problem by using asp button instead of linkbutton. I don't know the actual reason why using button does not pull down the navigation bar on top and opens popup. Now the jquery simply does not work. I have jquery in popup in $(document).ready(function () { ....}. I have tried using pageLoad() and Sys.Application.Init (ref http://encosia.com/document-ready-and-pageload-are-not-the-same/) but it does not work. Tried using firebug console after the the popup opened and the jquery works which means that there is no problem accessing it. To be sure, i even put the jquery from cdn path in the popup. The jquery path is in the master page and i am using '<%# ResolveUrl("~/Scripts/jquery-1.4.1.min.js") %>' to make sure all the pages will access it. Can anyone please help me with this? Thanksref
 
Back
Top