I use ASP.net & code behind file as C#.net

I set Alert in server side as like this...in button click event

protected void btnSubmit_Click(object sender, EventArgs e)
    {

        ClientScript.RegisterStartupScript(GetType(), this.ClientID, "alert('Hi');", true);

     }

This button Is in the Buttom of the page...
When I click the button,This Alert is Appear...
My question is in that time page was gone to the top...[page has scorell bar]
& click OK in alert page Again Goes to the bottom...How I stop that...
Please help me...

P.S
In my page
MaintainScrollPositionOnPostback ="true"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.