User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 391,735 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,215 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting

Simple ASP.Net Login Page (Using VB.Net)

Join Date: Jan 2005
Posts: 2
Reputation: SPYRO is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
SPYRO SPYRO is offline Offline
Newbie Poster

Re: Simple ASP.Net Login Page (Using VB.Net)

  #23  
Jan 8th, 2005
Really good job!

Here is an idea for a little improvement in the Try block:
(Just to keep the coding happy )


Try
If MyConn.State = ConnectionState.Closed Then
MyConn.Open()
End If

Return MyCmd.ExecuteScalar()

Catch ex As Exception
lblMessage.Text = "Error Connecting to Database!"
Finally
MyConn.Close()
End Try
 
All times are GMT -4. The time now is 3:48 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC