DropDownList in UpdatePanel

前端 未结 4 394
清歌不尽
清歌不尽 2021-01-17 15:29

In my project I have placed a dropdownlist in an updatepanel.what I wanted to do is to select a value from dropdownlist and use it in a session.

but whatever I do, it

4条回答
  •  执念已碎
    2021-01-17 16:21

    thanks a lot I solved problem by controlling variables in Page_Load event.

    If Label1.Text = 1 Then
        Dim tempcontrol2 As Control = LoadControl("Page1.ascx")
        PlaceHolder1.Controls.Add(tempcontrol2)
    
    ElseIf Label1.Text = 2 Then
        Dim tempcontrol2 As Control = LoadControl("Page2.ascx")
        PlaceHolder1.Controls.Add(tempcontrol2)
    End If
    

    thank u for all answers

提交回复
热议问题