sub page_load(...)
if page.ispostback=false then
menberLogState()
end if
end sub
Sub menberLogState()
If Not session("cn_menberid") Is Nothing Then
lblNotice.Text = "您好!," + CType(Session("cn_menberid"), String)
lbtLogOut.visible = True
Else
lblNotice.Text = "请登陆"
lbtLogOut.visible = False
End If
End Sub