Hi,
On button click i am doing some calculation if it returns true i am redirecting to other page.
Now my question is if it returns false then i want to show a pop message "Do you still want to continue?".
How can we do this using java scripts or is it possible using custom validation in asp.net.
Note : For calulation i need to do in .cs file cannot do in aspx page.
Thanks
Loading
nitin yadavPosted Jan 17, 2011, 7:34 AM
you can write window.location.href="your page name"; like
function call(id)
{
alert('your message');
window.location.href="your page name";
}
Apurva MehtaPosted Jan 17, 2011, 1:49 AM
The below script will give me a message box with 'Ok' button.Now i want to redirect the page when user click ok.
Thanks
Apurva
ShankeyPosted Jan 5, 2011, 12:32 AM
You can use scriptmanager to call javascript from serverside as shown below
ScriptManager.RegisterStartupScript(this, this.GetType(), "yourFunction", "yourFunction('parametervalue1');", true);
nitin yadavPosted Jan 5, 2011, 12:20 AM
Use this
Page.ClientScript.
in your false statement
Regards
Nitin Yadav