Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

open jquery popup from code behind

Please can someone tell me how i can call a jquery popup window from code behind in asp.net3.0?

I have already downloaded a plugin that opens an IFrame as a popup, but I need to pass a string value in the url of the IFrame and that string value is constructed at the code behind on click of the same button from which the popup will open.

Please advise

Thanks Amit

like image 316
Amit Avatar asked Aug 16 '26 14:08

Amit


1 Answers

You'll have to register a startup script on the page:

Page.ClientScript.RegisterStartupScript(this.GetType(), "SomeKey", 
    "<script type='text/javascript'>ShowPopup()</script>");
like image 54
djdd87 Avatar answered Aug 18 '26 05:08

djdd87



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!