开发者

Can any one tell why my Dropdown_SelectedIndexChanged not working in IIS

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
    }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜