Click here to Skip to main content
15,918,050 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Working With AJAX Pin
Tirthadip30-Jun-06 19:08
Tirthadip30-Jun-06 19:08 
QuestionHow to Restrict Selected Webforms Pin
ravindradonkada30-Jun-06 8:07
ravindradonkada30-Jun-06 8:07 
AnswerRe: How to Restrict Selected Webforms Pin
minhpc_bk30-Jun-06 17:07
minhpc_bk30-Jun-06 17:07 
QuestionASP.NET Menu is flaky Pin
gantww30-Jun-06 8:03
gantww30-Jun-06 8:03 
AnswerRe: ASP.NET Menu is flaky - now I'm more confused Pin
gantww30-Jun-06 8:17
gantww30-Jun-06 8:17 
GeneralRe: ASP.NET Menu is flaky - now I'm more confused Pin
gantww30-Jun-06 10:11
gantww30-Jun-06 10:11 
QuestionIndex 0 is not non-negative ! Pin
xuzia30-Jun-06 7:44
xuzia30-Jun-06 7:44 
AnswerRe: Index 0 is not non-negative ! Pin
Dustin Metzgar30-Jun-06 8:02
Dustin Metzgar30-Jun-06 8:02 
AnswerRe: Index 0 is not non-negative ! Pin
Guffa30-Jun-06 8:04
Guffa30-Jun-06 8:04 
QuestionCalender control using jscript Pin
Arun Hegde30-Jun-06 7:14
Arun Hegde30-Jun-06 7:14 
AnswerRe: Calender control using jscript Pin
minhpc_bk30-Jun-06 17:18
minhpc_bk30-Jun-06 17:18 
QuestionFile download prompt Pin
eggie530-Jun-06 6:15
eggie530-Jun-06 6:15 
AnswerRe: File download prompt Pin
Frank Kerrigan30-Jun-06 6:28
Frank Kerrigan30-Jun-06 6:28 
QuestionCapturing an image of a PDF? Pin
Goalie3530-Jun-06 5:40
Goalie3530-Jun-06 5:40 
AnswerRe: Capturing an image of a PDF? Pin
Frank Kerrigan30-Jun-06 6:24
Frank Kerrigan30-Jun-06 6:24 
QuestionNeed help on bring up a java script pop up box when clicked on LinkButton. Pin
Slow Learner30-Jun-06 4:16
Slow Learner30-Jun-06 4:16 
Hello,
I have two buttons on one of my VehicleDetails.aspx page. Obiviously
these two buttons takes the user to two different pages. Now my client
is interested in having a linkbutton instead of the two buttons. Once
the user clicks on the linkbutton a javascript dialog box popsup that
says "Is the Lessee buying this vehicle?" and with two buttons "Yes"
and "No". If user clicks "yes" it should go to DealerQuestions.aspx"
and if "No" it goes "lesseePurchase.aspx" page offcourse with few parameters attached in the query string.

As of now I have two buttons like I mentioned earlier where in under
the button click event I am doing a Response.Redirect() to the mentioned
pages.

This is what I did to have the pop up box popped up with a buttons.

_lnkDLpurchase.Attributes.Add("onclick", "if( confirm('Will Lessee buy this vehicle?') ) return True; else return false;")

So far ever thing looks fine. But how do I do

If user clicks on "Yes" it should execute the code

Response.Redirect("LesseePurchase.aspx?DealerShipID=" &
_lblDealerShipIDValue.Text)


when "No" this should go to another page


Response.Redirect("DealerQuestions.aspx?DealerShipID=" &
_lblDealerShipIDValue.Text)


I don't know how to get to two buttons exectue two different codes
based on what was clicked on.


Please help,
Thanks in advance
-L



AnswerRe: Need help on bring up a java script pop up box when clicked on LinkButton. Pin
Paddy Boyd30-Jun-06 4:21
Paddy Boyd30-Jun-06 4:21 
GeneralRe: Need help on bring up a java script pop up box when clicked on LinkButton. Pin
Slow Learner30-Jun-06 4:45
Slow Learner30-Jun-06 4:45 
GeneralRe: Need help on bring up a java script pop up box when clicked on LinkButton. Pin
Paddy Boyd30-Jun-06 4:50
Paddy Boyd30-Jun-06 4:50 
AnswerRe: Need help on bring up a java script pop up box when clicked on LinkButton. [modified] Pin
l0kke30-Jun-06 4:50
l0kke30-Jun-06 4:50 
GeneralRe: Need help on bring up a java script pop up box when clicked on LinkButton. Pin
Slow Learner30-Jun-06 5:10
Slow Learner30-Jun-06 5:10 
GeneralRe: Need help on bring up a java script pop up box when clicked on LinkButton. Pin
Slow Learner30-Jun-06 5:15
Slow Learner30-Jun-06 5:15 
AnswerRe: Need help on bring up a java script pop up box when clicked on LinkButton. Pin
minhpc_bk30-Jun-06 17:29
minhpc_bk30-Jun-06 17:29 
QuestionHow to disable dates in Calender Control. Pin
Muhammad Chitrali30-Jun-06 4:09
Muhammad Chitrali30-Jun-06 4:09 
AnswerRe: How to disable dates in Calender Control. Pin
minhpc_bk30-Jun-06 17:11
minhpc_bk30-Jun-06 17:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.