Sunday, March 11, 2012

ModalPopup and Server Side Code

Use ClientScript.RegisterClientScript to register client script code from within code behind. This code will execute as soon as the page is rendered in browser. Show the ModalPopup from the javascript code as usual.


Thanks for your reply but the thing is I don't want to do this with client side script, I want to use server side code as I'm not proficient with javascript and the modalpopup allows you to show and hide it from server side.

I just can't get it to work from server side code.


Hi,

Usually, this should do the trick. Can you post full source of your page? It'll be preferred if you can modify it a little so that it doesn't rely on any specific database or class.

No comments:

Post a Comment