i am looking for a best jquery modal for use in asp.net with c# project in vs 2010…
so i found Simple Modal By Eric , But I Had some problems with it in ajax mode…
because that project works perfect in php & it seems does not support ajax in asp.net!
would u plz show us a nice modal jquery and learn us how can we keep it alive during postbacks …
i want to use it as login page !
thanks for attention
best regards
From the looks of things, you can make Simple Modal work using its most basic invocation. It sounds like you’re using ASP.NET WebForms so you could do something like this:
MyPage.aspx
MyPage.aspx.cs
What this will do is hide the popup content until you want it to be shown. Once the asp:Panel is made visible, the jQuery will find it and make use of the SimpleModal plugin to make it display appropriately. This all requires that you’re using standard postbacks, no asp:UpdatePanels or AJAX calls.
One issue you may run into is that it looks like this plugin grabs the modal content and appends it to the
<body>element. ASP.NET expects to see those modal inputs within its<form>, so you might need to tweak the plugin to append the modal to<form>instead of<body>.