ASP.Net - 新手嘗試...

  • 1384
  • 0

摘要:ASP.Net - 新手嘗試...

 

 要autopostback先會行VB event code.

        <asp:RadioButtonList ID="optl" runat="server" AutoPostBack="True" >
        
        </asp:RadioButtonList>

 

 

要databind 畫面先會轉

        Dim aa As New ArrayList
        aa.Add("Markmo")
        aa.Add("JohnChan")

        Me.blTest1.DataSource = aa
        Me.blTest1.DataBind()

 

 

畫面更新就會true.
form load = false

        If Page.IsPostBack Then
            Button1.Text = "IsPostBack True"
        Else
            Button1.Text = "IsPostBack False"
        End If

 

 

 

------------------

熱愛生命 喜愛新奇 有趣的事物

 

過去 是無法改變
將來 卻能夠創造

 

希望使大家生活更便利
世界更美好

 

a guy who loves IT and life