Showing posts with label instead. Show all posts
Showing posts with label instead. Show all posts

Monday, March 26, 2012

Modal Popup Problem

Hi,

On IE7, when Modal Popup Ext popup, there is a black block window instead of modal popup on left top corner. Can anyone tell me what is going on here?

Thanks,

Subin

Im not good writing english..:P

Hi, I have the same problem, I solved removing width and height tag inside the panel im using for modalpopup. Check it !

If problem persist, let me know !

Francisco

Saturday, March 24, 2012

Modal pop-up questions

First, I'd like to display a modal pop-up programatically instead of it being triggered by a button click event or similar.

Secondly, if the user clicks OK, I'd like it to trigger a server-side function.

I've tried several approaches to doing these and have not had much success. Could anyone provide some direction?

Thanks

To show and hide the modal popup programatically:

ModalPopupExtender1.Show() and ModalPopupExtender1.Hide() ' Change "ModalPopupExtender1" to whatever yours is called.

To get your "Okay" button to fire normal server-side code, just don't specify an OkControlID for the ModalPopupExtender. Handle the button's click event normally and just use the above .Hide() method to close the popup.

Modal Poup on Page Load

Hi,

Is it possible to conditionally show modal popup on a page load instead on button click?

Before the page load, I have to check from the database if the application is available and if the application is not available then I have to show the modal popup otherwise not.

Please answer with an example.

Thanks

just write the ModalPopup.Show(); on page load.

Thanks

PS If it answers your question, please mark this post as resolved for everyone's benefit.

Wednesday, March 21, 2012

ModalPanel - How can I us AJAX instead of postback to update database ?

I'm new to AJAX and this suite of tools. I have a page that when a user clicks a link button my ModalPanel with various input fields appears. When the user clicks the okay button I want to make an async call instead of having the page post back. I need to be able to call one of my business objects defined in C# so what is the best way to do this?

If you can provide details or even a small example I would appreciate it.

My code behind method looks like this:

void OnClick(...)

{

Broker b = new Broker();

b.name = NameTextBox.Text;

b.account = AccountTextBox.Text;

b.Save();


}

Why not just wrap the modalpopup in an updatepanel and let the page postback? It is easier then to have access to the server controls from the form and have full interaction with the other page elements during the postback in case you want to update other stuff on the page.

What benefits are you looking for by not posting back?

Jason