开发者

Can any one tell why my Dropdown_SelectedIndexChanged not working in IIS

开发者 https://www.devze.com 2023-02-16 12:45 出处:网络
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 p

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

精彩评论

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