http://www.waimai21.com/Register.aspx首次加载这个页面显示注册条款,然后选择同意并继续,应该有注册表单,可以填写一些注册资料的,但现在却看不到了,如果你还可以看到,当你刷新这页,就又看不到了,不知道为什么。这里我用了几个用户控件,注册条款一个;注册表单一个;注册完了还有一个。
Register.aspx.vb
If Not Page.IsPostBack Then
CType(Page.FindControl("RegUserInfo1"), UserControl).Visible = False
CType(Page.FindControl("RegOver1"), UserControl).Visible = False
End If
Private Sub btnGoNext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGoNext.Click
CType(Page.FindControl("RegRules1"), System.Web.UI.UserControl).Visible = False
CType(Page.FindControl("RegUserInfo1"), UserControl).Visible = True
CType(Page.FindControl("RegOver1"), UserControl).Visible = False
End Sub
Register.aspx.vb
If Not Page.IsPostBack Then
CType(Page.FindControl("RegUserInfo1"), UserControl).Visible = False
CType(Page.FindControl("RegOver1"), UserControl).Visible = False
End If
Private Sub btnGoNext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGoNext.Click
CType(Page.FindControl("RegRules1"), System.Web.UI.UserControl).Visible = False
CType(Page.FindControl("RegUserInfo1"), UserControl).Visible = True
CType(Page.FindControl("RegOver1"), UserControl).Visible = False
End Sub
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货