L
Learner
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.
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 said
pages.
could some one help me how do I accomplish the linkbutton and adding a
javascript functionality to it as I said on the top?
This is what I put to get the javascript popup box to popup when
clicked on the linkbutton
_lnkDLpurchase.Attributes.Add("onclick", "window.alert('Will Lessee buy
this vehicle?.');return true;")
But I don't know how to get two buttons and exectue two different codes
based on what was clicked on.
Please help,
Thanks in advance
-L
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.
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 said
pages.
could some one help me how do I accomplish the linkbutton and adding a
javascript functionality to it as I said on the top?
This is what I put to get the javascript popup box to popup when
clicked on the linkbutton
_lnkDLpurchase.Attributes.Add("onclick", "window.alert('Will Lessee buy
this vehicle?.');return true;")
But I don't know how to get two buttons and exectue two different codes
based on what was clicked on.
Please help,
Thanks in advance
-L