Show hide div using codebehind

前端 未结 8 2048
难免孤独
难免孤独 2020-12-30 00:29

I have a DropDownList for which I am trying to show a div OnSelectedIndexChanged but it says OBJECT REQUIRED.

I a

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-30 01:22

    You can use a standard ASP.NET Panel and then set it's visible property in your code behind.

    
    

    To show panel in codebehind:

    Panel1.Visible = true;

提交回复
热议问题