Page.ClientScript.RegisterStartupScript(Me.GetType(), "alert", "check();", True)
var ac=confirm("Warning. Changing ID .");
Here Hidtxt is an hidden variable And I get value of Hidtxt as ""' where, I should either get True or False , so my condition fails.
And it should be in button click event, with the condition I should do my necessary operation.