Click here to Skip to main content
15,897,226 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
Questiongood day Pin
bluewavestrider30-Jun-06 4:02
bluewavestrider30-Jun-06 4:02 
AnswerRe: good day Pin
RichardGrimmer30-Jun-06 4:39
RichardGrimmer30-Jun-06 4:39 
GeneralRe: good day Pin
bluewavestrider12-Jul-06 1:50
bluewavestrider12-Jul-06 1:50 
QuestionWhy my site is loading very slow? Pin
Sheel Gohe30-Jun-06 3:41
Sheel Gohe30-Jun-06 3:41 
AnswerRe: Why my site is loading very slow? Pin
Mike Puddephat30-Jun-06 4:01
Mike Puddephat30-Jun-06 4:01 
AnswerRe: Why my site is loading very slow? Pin
RichardGrimmer30-Jun-06 4:40
RichardGrimmer30-Jun-06 4:40 
Questionproblem inside [modified] Pin
sandeep_thakur30-Jun-06 3:10
sandeep_thakur30-Jun-06 3:10 
AnswerRe: problem inside Pin
wEb GuRu...30-Jun-06 6:40
wEb GuRu...30-Jun-06 6:40 

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.