Since jQuery is a JavaScript library, you should call its functions on client side. To open a modal dialog, you don't need an ASP.NET server side control (ASP.NET Button). Simply use HTML element.
However if you insist on using ASP.NET Button, you can put you client Javascript into the property "OnClientClick".
hi there
yes, i need execute a server operation and later show popup
about the example i found on internet, must i referr some other javascript except Jquery?
amodius
Member
178 Points
383 Posts
how to implement a modalpopup
Oct 04, 2010 08:15 PM|LINK
hi there
i was studing jquery and modalPopup
http://jqueryui.com/demos/dialog/#default
but i cannot understand it
if i havve a <asp:button,
what can i write for appear a popup?
ignatandrei
All-Star
135204 Points
21687 Posts
Moderator
MVP
Re: how to implement a modalpopup
Oct 04, 2010 08:38 PM|LINK
It is enough plain html
<input type="button" ...
Sheng Zeng
Member
412 Points
75 Posts
Re: how to implement a modalpopup
Oct 04, 2010 09:08 PM|LINK
Since jQuery is a JavaScript library, you should call its functions on client side. To open a modal dialog, you don't need an ASP.NET server side control (ASP.NET Button). Simply use HTML element.
However if you insist on using ASP.NET Button, you can put you client Javascript into the property "OnClientClick".
amodius
Member
178 Points
383 Posts
Re: how to implement a modalpopup
Oct 05, 2010 04:58 AM|LINK
hi there
yes, i need execute a server operation and later show popup
about the example i found on internet, must i referr some other javascript except Jquery?
ignatandrei
All-Star
135204 Points
21687 Posts
Moderator
MVP
Re: how to implement a modalpopup
Oct 05, 2010 05:04 AM|LINK
If that is true, then use something like registerstartupscript
http://msdn.microsoft.com/en-us/library/z9h4dk8y.aspx
to put jquery model on the page.