Sunday, March 11, 2012

How can i execute a cs script from a modalpopup.

So the in panel that you are using for the modal popup you can put a button, or whatever you like, that can call code behind. Make sure to wrap the modal exentender and panel in an update panel so that the screen does not refresh when pressing the button in the modal. I hope this is what you were after.


in the popup the data in the my textbox are not saved in my database.


I would start by going into debug mode and make sure that the data from that textbox is being passed to your code behind first. Without seeing the details and code you are writing, it is hard to guess what could be wrong since there are many possiblities.


i have fixed the two string that i have to save in my database but i dont find it in database.


Hi,

I think Jim has already given a great solution for you. And your problem is very likely to be caused by the button is set as the OKControl for the ModalPopupExtender. Then theExtender will intercept its PostBack behavior, just close itselfwhen the Button is clicked.

As a result, the server side function isn't able to run.

So, please don't specify btnSave as OKControl.

If this doesn't solve your problem, please debug your application as Jim suggested to find out the cause.

No comments:

Post a Comment