But all of them has no "yes" and "no" button.
thank you.
*web based system
*asp.net
*c#
:)
4 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Deepthi AravindPosted May 27, 2010, 3:19 AM
if (cn == true)
{
window.location.href = 'Default2.aspx';
}
else
{
window.location.href = 'Default3.aspx'
}
Try this one......
Heaven ValenzonaPosted May 21, 2010, 6:53 AM
<title>Untitled Pagetitle>
Syed ShakeerPosted May 21, 2010, 3:06 AM
<
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" />CrishPosted May 21, 2010, 2:30 AM
please use below link for your solution
http://msdn.microsoft.com/en-us/library/ms644996%28VS.85%29.aspx