how can this be done?
Following code is written on the onClick server event of the submit button.
which does not works as client script is always runs at the end of C# function code. So I am always getting false(default) value in HiddenField1.Value causing not to execute statements inside if.
wht can be done?
string script = "document.getElementById('HiddenField1').value = confirm('Updating settings,click ok to continue');";
ScriptManager.RegisterStartupScript(Page, typeof(Page), "CliIsvalid", script, true);
ScriptManager.RegisterStartupScript(Page, typeof(Page), "CliRedirect", "parent.location.href='logout.aspx';", true);