I am having a drop down binded from the database. On selectedindexchanged of dropdown i wil开发者_如何学运维l enable some other controls this was working fine when i build my application and running properly. But when i create a virtual folder in the default website of IIS and access the project path for that virtual folder and running Dropdown_selectedInedexChanged event was not firing can any one tell why.
Add the event handler in the code behind:
Protected void Page_Load(ByVal sender As Object, ByVal e As EventArgs)
//...other code
ddlMyOne.SelectedIndexChanged += new EventHandler(ddlMyOne_SelectedIndexChanged);
ddlMyOne.AutoPostBack = true;
//other code...
End Sub
protected void ddlMyOne_SelectedIndexChanged(object sender, EventArgs e)
{
// Your handler code
}
精彩评论