How to display model pop up on page load?
hi friends i want to display ajax model pop up while page load.can any one help me out.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Robbinson86 reputationPosted Dec 26, 2013, 2:53 AM EST
If you are using ajax modal popup extender, you can directly use the below code in page_load event handler.
ClientScript.RegisterClientScriptBlock(this.GetType(), "key", String.Format("$find('{0}').show();",modalPopupExtender.ClientId), true)
if this is not the case, then you need to write appropriate javascript code which open modal popup and register using the above function.
Hope, this will help you out. Feel free to connect in case of any queries.
Please don't forget to mark as answer if this post helps you.
selva kumarRank #2,987 · 483 reputationPosted Dec 26, 2013, 3:09 AM EST
Robbinson86 reputationPosted Dec 26, 2013, 7:23 PM EST
I mean to say which ajax component are you using to display popup. if it is ajax modal extender then you can directly use above line. if it is not just replace the script part with the code to open popup.
Hope this will help you to understand.
Please don't forget to mark as answer if this post helps you.