您目前尚未登陆,请选择【登陆】或【注册
首页->留言本类->晶晶Vb.net留言板源码>>log.aspx.vb>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:晶晶Vb.net留言板源码
当前文件:文件类型 VbGuestBook/log.aspx.vb打开代码结构图
普通视图
		            
1Imports System 2Imports System.ComponentModel 3Imports System.Data 4Imports System.Web 5Imports System.Web.SessionState 6Imports System.Web.UI 7Imports System.Web.UI.WebControls 8Imports System.Configuration 9Imports Microsoft.VisualBasic 10'51aspx.com 11Public Class log 12 Inherits System.Web.UI.Page 13 Protected WithEvents Label1 As System.Web.UI.WebControls.Label 14 Protected WithEvents password As System.Web.UI.WebControls.TextBox 15 Protected WithEvents Button1 As System.Web.UI.WebControls.Button 16 Protected WithEvents TextBox1 As System.Web.UI.WebControls.TextBox 17 18Web 窗体设计器生成的代码 32 33 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 34 If password.Text <> ConfigurationSettings.AppSettings("密码") Then 35 Label1.Text = "密码错误,请重新输入" 36 Else 37 Session("name") = ConfigurationSettings.AppSettings("站长") 38 Response.Redirect("default.aspx") 39 End If 40 End Sub 41 42 Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 43 If Session("name") <> "" Then 44 Session.Abandon() 45 Response.Redirect("default.aspx") 46 End If 47 End Sub 48End Class 49
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:晶晶Vb.net留言板源码
51Aspx.com 版权所有 CopyRight © 2000-2008. 京ICP备06046876号