Click here to Skip to main content
15,904,351 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: HELP!!! how can I connect to Oracle with this error?? Pin
meki_211810-Sep-08 21:37
meki_211810-Sep-08 21:37 
AnswerRe: HELP!!! how can I connect to Oracle with this error?? Pin
Rich.Edwards12-Sep-08 4:58
Rich.Edwards12-Sep-08 4:58 
QuestionEventLog problem ,,Vista Home Pin
Amr M. K.10-Sep-08 11:04
Amr M. K.10-Sep-08 11:04 
AnswerRe: EventLog problem ,,Vista Home Pin
Abhijit Jana10-Sep-08 18:51
professionalAbhijit Jana10-Sep-08 18:51 
GeneralRe: EventLog problem ,,Vista Home Pin
Amr M. K.11-Sep-08 1:22
Amr M. K.11-Sep-08 1:22 
Questionhow to check the username is already exist in a table...? Pin
asad_black10-Sep-08 9:34
asad_black10-Sep-08 9:34 
AnswerRe: how to check the username is already exist in a table...? Pin
Christian Graus10-Sep-08 9:45
protectorChristian Graus10-Sep-08 9:45 
AnswerRe: how to check the username is already exist in a table...? Pin
Pete O'Hanlon10-Sep-08 10:36
mvePete O'Hanlon10-Sep-08 10:36 
asad_black wrote:
Dim query As String
query = "Select Count(*) From login Where username = ? "
Dim result As Integer = 0

If result > 0 Then


Well, there's a pretty good start. You've defined a query and then you don't use it anywhere. You initialise result to 0, and then test to see if result is greater than zero. Are you seeing the problems with that?

asad_black wrote:
Dim strSQL As String = "INSERT INTO login (username, [password]) " & _
"VALUES (?, ?) "


Dim dbComm As New OleDbCommand(strSQL, objConnection)
dbComm.Parameters.Add("UserName", OleDbType.VarChar, 32, "UserName")
dbComm.Parameters.Add("Password", OleDbType.VarChar, 128, "Password")


Here you define your query with ? placeholders and then don't use them to when assigning your parameters. There are lots of things wrong here, and you should take the time to look into it.


Deja View - the feeling that you've seen this post before.

My blog | My articles



AnswerRe: how to check the username is already exist in a table...? Pin
naveedmazhar10-Sep-08 18:14
naveedmazhar10-Sep-08 18:14 
QuestionError loading WebForm.aspx Pin
Reality Strikes10-Sep-08 8:33
Reality Strikes10-Sep-08 8:33 
Questionjavascript function call from user control's command button Pin
Neeraj Arora10-Sep-08 7:31
Neeraj Arora10-Sep-08 7:31 
AnswerRe: javascript function call from user control's command button Pin
Christian Graus10-Sep-08 8:07
protectorChristian Graus10-Sep-08 8:07 
GeneralRe: javascript function call from user control's command button Pin
Neeraj Arora10-Sep-08 8:15
Neeraj Arora10-Sep-08 8:15 
GeneralRe: javascript function call from user control's command button Pin
Christian Graus10-Sep-08 8:30
protectorChristian Graus10-Sep-08 8:30 
AnswerRe: javascript function call from user control's command button Pin
naveedmazhar10-Sep-08 18:24
naveedmazhar10-Sep-08 18:24 
QuestionChild Control Problem With Page_Load Pin
Brady Kelly10-Sep-08 7:10
Brady Kelly10-Sep-08 7:10 
QuestionHow can hide IE 7 vertical scrollbars? Pin
JUNEYT10-Sep-08 6:46
JUNEYT10-Sep-08 6:46 
AnswerRe: How can hide IE 7 vertical scrollbars? Pin
Christian Graus10-Sep-08 7:07
protectorChristian Graus10-Sep-08 7:07 
QuestionSend ArrayList to aspx page from Webservice Pin
huge_superman10-Sep-08 6:16
huge_superman10-Sep-08 6:16 
AnswerRe: Send ArrayList to aspx page from Webservice Pin
Christian Graus10-Sep-08 6:23
protectorChristian Graus10-Sep-08 6:23 
GeneralRe: Send ArrayList to aspx page from Webservice Pin
SomeGuyThatIsMe10-Sep-08 7:47
SomeGuyThatIsMe10-Sep-08 7:47 
GeneralRe: Send ArrayList to aspx page from Webservice Pin
Christian Graus10-Sep-08 8:06
protectorChristian Graus10-Sep-08 8:06 
JokeRe: Send ArrayList to aspx page from Webservice Pin
SomeGuyThatIsMe10-Sep-08 8:13
SomeGuyThatIsMe10-Sep-08 8:13 
AnswerRe: Send ArrayList to aspx page from Webservice Pin
Guffa10-Sep-08 20:39
Guffa10-Sep-08 20:39 
GeneralRe: Send ArrayList to aspx page from Webservice Pin
huge_superman11-Sep-08 9:26
huge_superman11-Sep-08 9:26 

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.