But all of them has no "yes" and "no" button.
thank you.
*web based system
*asp.net
*c#
:)
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
CrishRank #1,487 · 1.1K reputationPosted May 20, 2010, 10:30 PM EDT
please use below link for your solution
http://msdn.microsoft.com/en-us/library/ms644996%28VS.85%29.aspx
Syed ShakeerRank #777 · 3K reputationPosted May 20, 2010, 11:06 PM EDT
<
head runat="server"><title>Untitled Pagetitle>
<script type="text/Javascript" language ="javascript" >
function
confirm_meth(){
if( confirm("Do you want to continue!Click 'YES'")==true){
document.writeln ("You had clic on 'YES' Button");
(or)
Response.Write("NEWPage.aspx");
}
else{
document.writeln (
"You had clic on 'NO' Button");Response.Write("oldpage.aspx");
}
}
script> head>
<
body><form id="form1" runat="server">
<div>
<
asp:Button ID="btnconfirm" runat="server" Font-Bold="True" ForeColor="Red" Style="z-index: 101;left: 272px; position: absolute; top: 208px"
Text="Confrimation MsgBox" OnClientClick =" return confirm_meth()" Width="160px" />Heaven Valenzona22 reputationPosted May 21, 2010, 2:53 AM EDT
<title>Untitled Pagetitle>
Deepthi Aravind53 reputationPosted May 26, 2010, 11:19 PM EDT
if (cn == true)
{
window.location.href = 'Default2.aspx';
}
else
{
window.location.href = 'Default3.aspx'
}
Try this one......