Click here to Skip to main content
15,921,052 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Try this one, its working in my app Pin
FishiFishi3-Jul-07 1:44
FishiFishi3-Jul-07 1:44 
QuestionSMTP Server Pin
.NET- India 3-Jul-07 0:42
.NET- India 3-Jul-07 0:42 
AnswerRe: SMTP Server Pin
Sandeep Akhare3-Jul-07 0:46
Sandeep Akhare3-Jul-07 0:46 
GeneralRe: SMTP Server Pin
.NET- India 3-Jul-07 0:48
.NET- India 3-Jul-07 0:48 
GeneralRe: SMTP Server Pin
Sandeep Akhare3-Jul-07 0:50
Sandeep Akhare3-Jul-07 0:50 
AnswerRe: SMTP Server Pin
Sathesh Sakthivel3-Jul-07 0:47
Sathesh Sakthivel3-Jul-07 0:47 
AnswerRe: SMTP Server Pin
Sathesh Sakthivel3-Jul-07 0:50
Sathesh Sakthivel3-Jul-07 0:50 
QuestionLogin Form Problem Pin
Y_Kaushik3-Jul-07 0:33
Y_Kaushik3-Jul-07 0:33 
I am new in ASP can I got the problem in the login form with sql server databas
can any one told me How can i resolve this problem . My code is givin below.


<%
sql = "select * from login where u_id = '" & uname& "' AND pwd = '" &passwd& "'"


'response.Write(sql)
'response.End()

Set rst = Server.CreateObject("Adodb.Recordset")
rst.Open sql, conn, 3, 3
'username=rst("u_id")
'password=rst("pwd")
'response.Write(username)
'response.Write(password)
'response.End()

Its Work correctly from here. But when i write code below. I mense if condition it can not be work.

If rst.EOF and rst.BOF then
msg = "Wrong Entry ! please try again"
Response.redirect "index.asp"
Response.End()
Else
session("UserId")=Rs("uname")
msg =""
Response.redirect "AdminIndex.asp"
Response.end
End If

%>





Regard's
Kaushik

AnswerRe: Login Form Problem Pin
Sathesh Sakthivel3-Jul-07 0:36
Sathesh Sakthivel3-Jul-07 0:36 
GeneralRe: Login Form Problem Pin
Y_Kaushik3-Jul-07 0:51
Y_Kaushik3-Jul-07 0:51 
GeneralRe: Login Form Problem Pin
Sathesh Sakthivel3-Jul-07 0:53
Sathesh Sakthivel3-Jul-07 0:53 
GeneralRe: Login Form Problem Pin
Sandeep Akhare3-Jul-07 0:41
Sandeep Akhare3-Jul-07 0:41 
QuestionReportViewer printing problem Pin
adamoz3-Jul-07 0:33
adamoz3-Jul-07 0:33 
AnswerRe: ReportViewer printing problem Pin
Sathesh Sakthivel3-Jul-07 0:35
Sathesh Sakthivel3-Jul-07 0:35 
GeneralRe: ReportViewer printing problem Pin
adamoz3-Jul-07 0:55
adamoz3-Jul-07 0:55 
QuestionLicense feature in an Intranet application Pin
Quest073-Jul-07 0:27
Quest073-Jul-07 0:27 
QuestionSending Mail Pin
.NET- India 3-Jul-07 0:21
.NET- India 3-Jul-07 0:21 
AnswerRe: Sending Mail Pin
Sathesh Sakthivel3-Jul-07 0:22
Sathesh Sakthivel3-Jul-07 0:22 
AnswerRe: Sending Mail Pin
Sandeep Akhare3-Jul-07 0:38
Sandeep Akhare3-Jul-07 0:38 
GeneralRe: Sending Mail Pin
Sathesh Sakthivel3-Jul-07 0:49
Sathesh Sakthivel3-Jul-07 0:49 
GeneralRe: Sending Mail Pin
Sandeep Akhare3-Jul-07 0:57
Sandeep Akhare3-Jul-07 0:57 
GeneralRe: Sending Mail Pin
Sathesh Sakthivel3-Jul-07 1:03
Sathesh Sakthivel3-Jul-07 1:03 
AnswerRe: Sending Mail Pin
Krish - KP3-Jul-07 0:45
Krish - KP3-Jul-07 0:45 
GeneralRe: Sending Mail Pin
.NET- India 3-Jul-07 0:49
.NET- India 3-Jul-07 0:49 
GeneralRe: Sending Mail Pin
PrakashBhaskar3-Jul-07 1:16
PrakashBhaskar3-Jul-07 1:16 

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.