call javascript window.onload after SelectedIndexChanged event fire
<p>//my problem is when i fire SelectedIndexChanged event of ddlmodalitylist asynchronously(ajax call) then javascript load event is not fired..thats y i have to fire onload event from server side.</p>

<pre><code>window.onload = body_Onload;

     function body_Onload() {
        //javascript code
       }

    protected void ddlModalityList_SelectedIndexChanged(object sender, EventArgs e)
        {
            ddlStudy.Items.Clear();
            ListItem selectedPair = ddlModalityList.SelectedItem;
            string str= selectedPair.Value;

           int ID= Convert.ToInt32(str);

           if (ID == -1)
           {
              // ddlStudy.Items.Clear();
               return;
           }



            DataTable dataTableStudy = null;
            dataTableStudy = objSqlDbComm.ExecuteDatasetQuery(strSQL).Tables[0];

            var dictioneryStudy = new Dictionary&lt;int, string&gt;();
            foreach (DataRow dr in dataTableStudy.Rows)
            {          

                dictioneryStudy.Add(Convert.ToInt32(dr["Study_ID"]), dr["Study_Desc"].ToString());
            }

            ddlStudy.DataTextField = "Value";
            ddlStudy.DataValueField = "Key";
            ddlStudy.DataSource = dictioneryStudy;
            ddlStudy.DataBind();
            ddlStudy.Items.Insert(0, new ListItem("[Select]", "-1"));
            ddlStudy.Items[0].Selected = true;

        }
</code></pre>
