Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Confirm Message box (Read 1559 times)
bhanuprakash007
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 23
Joined: Sep 29th, 2009
Confirm Message box
Oct 27th, 2009 at 9:02am
Print Post  

    How can i get the confirm message box at server side .Actually my requirement is if i click ok i will redirect to another page and if i clcik cancel it will redirect to one more page.


I had code at server side .
If i clcik ok it will redirect to create page.
Response.Redirect("./files/bhanu/sunny/Create.aspx?BOMType=5&modal=1&parentid:is
Null=True&nodeId=" + editNode.Value + "&diagramId=" + tbFileName.Text);

Else ifi click cancel it will redirect to Edit page.

Response.Redirect("./files/bhanu/sunny/Edit.aspx?BOMType=5&modal=1&parentid:isNu
ll=True&nodeId=" + editNode.Value + "&diagramId=" + tbFileName.Text);


Can i know how to implement confirm button at server side.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Confirm Message box
Reply #1 - Oct 27th, 2009 at 12:03pm
Print Post  
You can create a page, add a message label and two buttons, and redirect to the respective pages from the Click handlers of the buttons.

If you need to reuse this and be able to redirect to different pages, you could save the URLs in the session, or perhaps create a UserControl that provides URL properties and show this UserControl when you need a message box.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint