javascript
Brief description  about Online courses   join in Online courses
View Arvind Ramkrishna Karbhajane Joshi 's Profile

how to login in asp.net using login tool what is code behind button

pl. tell me how to login in asp.net using login tool and what is code behind button. i am using sql database. database name is user_detail.
fields uname and pwd.

i use sql query
"select pwd from user_detail where uname = '" Login1.UserName "'"

but it not works
pl. reply me as early as possible
Replies (1)
View Dotnet Teacher 's Profile
Hi

in the code you sent to me, you coded like,
Dim query$ = "select pwd from user_detail where uname = '" + Login1.UserName + "'"

cmd = New SqlCommand(query, con)

in the above Remove $ from Dim query$
Feb 8, 2011