my javascript that scroll down the page.
function SetScrollEvent() {
window.scrollTo(0, document.body.scrollHeight);
}
i update update panel from server side like below.
protected void rptList_ItemCommand(object source, RepeaterCommandEventArgs e)
{
//HiddenField hiddenId = e.Item.FindControl("hiddenId") as HiddenField;
Label lb1 = e.Item.FindControl("Label2") as Label;
//Button bt = e.Item.FindControl("Button2") as Button;
if (e.CommandName == "myclickevent")
{
// your codes here...
SqlConnection conn = new SqlConnection(constr);
SqlCommand cmd = new SqlCommand("select t_content from test_tut where t_id='" + lb1.Text + "'", conn);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
da.Fill(dt);
//Literal1.Text = dt.Rows[2][3].ToString();
dt.Columns.Add("contentnew");
foreach (DataRow dr in dt.Rows)
{
if (dr != null)
{
byte[] byt = (byte[])dr[0];
string str;
System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
str = enc.GetString(byt);
dr[1] = str;
}
}
Editor1.Content = dt.Rows[0][1].ToString();
}
UpdatePanel1.Update();
}
i use repeter and repeter have button on button click i update the update panel. now where i have to call the javascript function so that it execute after update panel fully loaded.
I want to call javascript function after page fully loaded.