On submit button I have user validation to enter user id so that then can submit.
ScriptManager.RegisterStartupScript(this, typeof(Page), "script", "alert('Please, enter valid User id.');", true);
It works fine. Then i click on one of the link to go to other page. Come back to main page.
I get alert showing Please, enter valid User id.
, without clicking on submit button.
Help me out.
I view sourced it.
I found at bottom of page, as:
alert('Please, enter valid User id.');</script>
which i didn't created it.