I am trying to call a particular div based on id in page_prerender event but it doesn’t navigate to the particular div id.
<div id="div1">1</div>
<div id="div2">2</div>
<div id="div3">3</div>
protected void page_prerender()
{
Response.Redirect("Default.aspx#div1");
}
Use the FindControl method to locate the div – pass id of div as argument.