毕业论文论文范文课程设计实践报告法律论文英语论文教学论文医学论文农学论文艺术论文行政论文管理论文计算机安全
您现在的位置: 毕业论文 >> 论文 >> 正文

.NET+SQL SERVER 2000图书管理系统流程图+功能图+ER+全套设计论文 第16页

更新时间:2007-9-25:  来源:毕业论文

Imports System.Data.SqlClient

Imports System.IO

 

Public Class WebForm1

    Inherits System.Web.UI.Page

    Private connectingstring As String

    Private myConn As SqlConnection

    Private ds As DataSet

    Private myAdapter As SqlDataAdapter

    Protected WithEvents Button2 As System.Web.UI.WebControls.Button

    Private myCmd As SqlCommand

 

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        '在此处放置初始化页的用户代码

        connectingstring = "data source=(local);Database=library;uid=sa;pwd=123456;"

        myConn = New SqlConnection(connectingstring)

    End Sub

    Public Function CheckUserberInfo(ByVal Userstr As String, ByVal Pwdstr As String) As Integer

        If myConn.State = ConnectionState.Closed Then

            myConn.Open()

        End If

        Dim sqlstr As String

        If Pwdstr = "" Then

            sqlstr = "select * from Users where UserID='" + Userstr.Trim + "' and Pass is null"

        Else

            sqlstr = "select * from Users where UserID='" + Userstr.Trim + "' and Pass='" + Pwdstr + "'"

        End If

 

        Fill(sqlstr)

        If ds.Tables(0).Rows.Count = 0 Then

            Close()

            Return -1

        End If

        ds.Clear()

        Close()

        Return 1

    End Function

    Public Sub Open()

        myConn.Open()

    End Sub

    Public Sub Close()

        myConn.Close() 

 << 上一页  [11] [12] [13] [14] [15] [16] [17] [18] [19] [20]  ... 下一页  >> 

.NET+SQL SERVER 2000图书管理系统流程图+功能图+ER+全套设计论文 第16页下载如图片无法显示或论文不完整,请联系qq752018766
设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©youerw.com 优文论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。