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.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
RobbinsonPosted Dec 27, 2013, 12:23 AM
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.
selva kumarPosted Dec 26, 2013, 8:09 AM
RobbinsonPosted Dec 26, 2013, 7:53 AM
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.