How to call ddl_selectedIndexChanged manually

Posted by Oswaldlily under ASP.NET on 4/29/2013 | Points: 10 | Views : 858 | Status : [Member] | Replies : 2
protected void ddl_SelectedIndexChanged(object sender, EventArgs e)
{

}

Page_load(object sender,eventargs e)
{

//How to call ddl_selectedIndexChanged here???

}




Responses

Posted by: Satyapriyanayak on: 4/29/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Please elaborate it more

If this post helps you mark it as answer
Thanks

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Prabu_Spark on: 4/29/2013 [Member] Starter | Points: 25

Up
0
Down
Hi Oswaldlily ,
You can call it manually using the code below in form_load.

Page_load(object sender,eventargs e)
{

//this code will call index changed event of dropdownlist manually,
ddl_SelectedIndexChanged(null,null);

}

With regards,
J.Prabu.
[Email:prbspark@gmail.com]

Oswaldlily, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response