Rank: Member Groups: Member
Joined: 2/21/2008 Posts: 25
|
Hello,
I have a three questions
1) I have a dialog with several buttons on it. They are system.web.ui.webcontrol.imagebutton. When I click anyone of them (not defined as cancel button), button click provoke postback (which is wanted) and closing a dialog I still need for further operations (which isn't wanted). How to avoid this?
2) Is there a way how to open a dialog programmaticaly, not by assigning showbutton but use some method of dialog. Some time I don't know in the beginning of procedure would I show dialog or not...
3) I need to call from dialog1 another dialog - dialog2, but i can't assign dialog2.showbutton as dialog1.html_inputbutton, only as system.web.ui.webcontrol.imagebutton. But this button provoke postback, closes dialog1 and dialog2 is never showned. Yes, yes... its same as question1...
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi, You can set Dialog.InitialState to Visible to display the dialog on the server side. That should solve #1. You can call the Dialog's client side JavaScript interface to display the dialog on the client side. Almost all the sample code uses this method to display the dialog. You can take a look of those and also the JavaScript interface reference: http://www.essentialobjects.com/ViewDoc.aspx?t=clientapi_howto.htmlThanks!
|
Rank: Member Groups: Member
Joined: 2/21/2008 Posts: 25
|
Thanks for answ. I'll try it at monday. #2 isn't possible?
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
dllhell wrote:#2 isn't possible? Isn't this already answered? Both paragraphs of the previous reply is about how to open dialog programmatically.
|
Rank: Member Groups: Member
Joined: 2/21/2008 Posts: 25
|
Its answared, sorry... tnx again
|