Click here to Skip to main content
15,913,773 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: reply Pin
Dave Kreskowiak3-Jul-08 1:39
mveDave Kreskowiak3-Jul-08 1:39 
GeneralC# Pin
salam ellayan24-Sep-08 22:17
salam ellayan24-Sep-08 22:17 
GeneralRe: C# Pin
Dave Kreskowiak25-Sep-08 1:35
mveDave Kreskowiak25-Sep-08 1:35 
QuestionBurn audio cd and audio wave reader Pin
Indra PR1-Jul-08 19:59
Indra PR1-Jul-08 19:59 
QuestionVB.NET Selecting datatable for Login verification Pin
drexler_kk1-Jul-08 18:10
drexler_kk1-Jul-08 18:10 
AnswerRe: VB.NET Selecting datatable for Login verification Pin
N a v a n e e t h1-Jul-08 19:32
N a v a n e e t h1-Jul-08 19:32 
QuestionRe: VB.NET Selecting datatable for Login verification Pin
drexler_kk1-Jul-08 20:19
drexler_kk1-Jul-08 20:19 
AnswerRe: VB.NET Selecting datatable for Login verification Pin
N a v a n e e t h1-Jul-08 20:49
N a v a n e e t h1-Jul-08 20:49 
If you look at the documentation[^], it would be easy.

drexler_kk wrote:
For i = 0 to DT.Rows(i).Count - 1


No need of loop here. Select() returns a DataRow array.

drexler_kk wrote:
If Test =DT.Select("USERNAME='"& textbox1.text &"'")(i) Then


This is wrong. Test =DT.Select("USERNAME='"& textbox1.text &"'"). Test should be DataRow array.

drexler_kk wrote:
Besides,what do you mean by do the user verification in the database? You mean directly use a SELECT statement which depend on the username and userpassword from the server to check if the server have the username with the right password??


Yes. That would be faster than the method you are using. When user clicks on the login button, supply the user details entered to the database. Run a query to select the details. If everything is OK, proceed with login, else display error.

Hope this helps

All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia

How to use google | Ask smart questions

JokeRe: VB.NET Selecting datatable for Login verification Pin
drexler_kk1-Jul-08 22:26
drexler_kk1-Jul-08 22:26 
GeneralRe: VB.NET Selecting datatable for Login verification Pin
N a v a n e e t h1-Jul-08 22:43
N a v a n e e t h1-Jul-08 22:43 
AnswerRe: VB.NET Selecting datatable for Login verification Pin
darkelv1-Jul-08 23:46
darkelv1-Jul-08 23:46 
QuestionSetting frame in animated GIF Pin
threemp31-Jul-08 14:01
threemp31-Jul-08 14:01 
AnswerRe: Setting frame in animated GIF Pin
jzonthemtn2-Jul-08 6:05
jzonthemtn2-Jul-08 6:05 
QuestionPassword Decryption Pin
raing31-Jul-08 13:23
raing31-Jul-08 13:23 
AnswerRe: Password Decryption Pin
Christian Graus1-Jul-08 15:56
protectorChristian Graus1-Jul-08 15:56 
GeneralRe: Password Decryption Pin
Paul Conrad1-Jul-08 16:57
professionalPaul Conrad1-Jul-08 16:57 
AnswerRe: Password Decryption Pin
Dave Kreskowiak2-Jul-08 4:14
mveDave Kreskowiak2-Jul-08 4:14 
QuestionI need help with VBA to extract Oracle data to Excel Pin
torgerjl1-Jul-08 12:07
torgerjl1-Jul-08 12:07 
QuestionGet "Created" date from and Access table Pin
chuckf1-Jul-08 9:37
chuckf1-Jul-08 9:37 
AnswerRe: Get "Created" date from and Access table Pin
jzonthemtn1-Jul-08 11:19
jzonthemtn1-Jul-08 11:19 
GeneralRe: Get "Created" date from and Access table Pin
chuckf2-Jul-08 2:19
chuckf2-Jul-08 2:19 
GeneralRe: Get "Created" date from and Access table Pin
jzonthemtn2-Jul-08 5:59
jzonthemtn2-Jul-08 5:59 
QuestionProgress bar help Pin
Cory Kimble1-Jul-08 7:12
Cory Kimble1-Jul-08 7:12 
AnswerRe: Progress bar help Pin
jzonthemtn1-Jul-08 7:52
jzonthemtn1-Jul-08 7:52 
QuestionHow to Set Security? Pin
Trupti Mehta1-Jul-08 4:21
Trupti Mehta1-Jul-08 4:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.