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

ASP.NET

 
AnswerRe: how can create a web page that all browser show it correctly? Pin
N a v a n e e t h13-Mar-07 22:58
N a v a n e e t h13-Mar-07 22:58 
GeneralRe: how can create a web page that all browser show it correctly? Pin
B.A13-Mar-07 23:16
B.A13-Mar-07 23:16 
GeneralRe: how can create a web page that all browser show it correctly? Pin
badgrs14-Mar-07 0:44
badgrs14-Mar-07 0:44 
GeneralRe: how can create a web page that all browser show it correctly? Pin
Harini N K14-Mar-07 0:54
Harini N K14-Mar-07 0:54 
Questionerror Pin
vengaqua13-Mar-07 22:02
vengaqua13-Mar-07 22:02 
AnswerRe: error Pin
gvishu13-Mar-07 22:14
gvishu13-Mar-07 22:14 
AnswerRe: error Pin
Sandeep Akhare13-Mar-07 22:19
Sandeep Akhare13-Mar-07 22:19 
GeneralRe: error Pin
vengaqua13-Mar-07 22:34
vengaqua13-Mar-07 22:34 
This is the code:

Public Sub login_Check()

Dim LoginCheckdataset As New DataSet
Dim Alogindataset As New DataSet
Try
Dim D As String = Txtlogin.Text.Trim
Dim A() As String
Dim Fname As String
Dim Lname As String

If Txtlogin.Text.Trim.ToUpper = "ADMIN" Then
Dim ALogincomm As New SqlCommand("AdminLogin",
LSCon.Siteconnection)
ALogincomm.CommandType = CommandType.StoredProcedure
ALogincomm.Parameters.Add("@login", Txtlogin.Text.Trim)
ALogincomm.Parameters.Add("@pass", TxtPass.Value)
Dim Aloginada As New SqlDataAdapter(ALogincomm)
Aloginada.Fill(Alogindataset)
If Alogindataset.Tables(0).Rows.Count <> 0 Then
Name = Txtlogin.Text.Trim
Response.Redirect("Pending Users.aspx")
Else
Label5.Visible = True
Label5.Text = "Password Entered is not correct or Login is not correct."
End If
Else
Dim Month As String
Dim Day As Integer
Dim Year As Integer
Dim Date1 As String

Day = Now.Day
Month = Now.Month
Year = Now.Year
If Month > 9 Then
Date1 = Day & "/" & Month & "/" & Year
Else
For i As Integer = 1 To 9
If Month = i Then
Month = "0" & i
Date1 = Day & "/" & Month & "/" & Year
End If
Next
End If
Dim EXP As Date

Dim LoginCheckComm As New SqlCommand("Login_Authorization",
LSCon.Siteconnection)

LoginCheckComm.CommandType = CommandType.StoredProcedure
LoginCheckComm.Parameters.Add("@LoginID", Txtlogin.Text.Trim)
LoginCheckComm.Parameters.Add("@Pass", TxtPass.Value)
Dim LoginCheckAda As New SqlDataAdapter(LoginCheckComm)
LoginCheckAda.Fill(LoginCheckdataset)

If LoginCheckdataset.Tables(0).Rows.Count <> 0 Then
EXP = LoginCheckdataset.Tables(0).Rows.Item(0).Item("ExpDate")
If EXP.Date < Date1 Then
Label5.Visible = True
Label5.Text = "Your Login Has Expired."
Exit Sub
Else

UserType = LoginCheckdataset.Tables(0).Rows.Item(0).Item("TypeName").ToString
Name = Txtlogin.Text.Trim
Response.Redirect("Main Form.aspx")
End If

Else
Label5.Visible = True
Label5.Text = "Password Entered is not correct or Login is not correct."
Exit Sub
End If
End If

Catch ex As Exception
Label5.Text = ex.Source & " " & ex.Message
Finally
LSCon.close()
End Try

End Sub

Mohinder Singh

QuestionWhere is the loop ? Pin
N a v a n e e t h13-Mar-07 22:40
N a v a n e e t h13-Mar-07 22:40 
AnswerRe: error Pin
N a v a n e e t h13-Mar-07 22:36
N a v a n e e t h13-Mar-07 22:36 
GeneralRe: error Pin
gvishu13-Mar-07 22:42
gvishu13-Mar-07 22:42 
AnswerRe: error Pin
gvishu13-Mar-07 22:45
gvishu13-Mar-07 22:45 
QuestionRe: error Pin
N a v a n e e t h13-Mar-07 22:51
N a v a n e e t h13-Mar-07 22:51 
AnswerRe: error Pin
gvishu13-Mar-07 23:04
gvishu13-Mar-07 23:04 
GeneralRe: error Pin
vengaqua13-Mar-07 23:07
vengaqua13-Mar-07 23:07 
QuestionButton to displyed the captured infomation in the GridView Pin
Oga M13-Mar-07 21:55
Oga M13-Mar-07 21:55 
AnswerRe: Button to displyed the captured infomation in the GridView Pin
N a v a n e e t h13-Mar-07 22:42
N a v a n e e t h13-Mar-07 22:42 
Questionadd on google Pin
harryforum13-Mar-07 21:28
harryforum13-Mar-07 21:28 
AnswerRe: add on google Pin
Sandeep Akhare13-Mar-07 21:47
Sandeep Akhare13-Mar-07 21:47 
AnswerRe: add on google Pin
N a v a n e e t h13-Mar-07 22:50
N a v a n e e t h13-Mar-07 22:50 
QuestionResponse.Redirect in asp.net c# Pin
cst_cfit13-Mar-07 21:24
cst_cfit13-Mar-07 21:24 
AnswerRe: Response.Redirect in asp.net c# Pin
mareers13-Mar-07 21:35
mareers13-Mar-07 21:35 
GeneralRe: Response.Redirect in asp.net c# Pin
cst_cfit13-Mar-07 21:45
cst_cfit13-Mar-07 21:45 
QuestionHow to make inbox Pin
MissionSuccess13-Mar-07 20:58
MissionSuccess13-Mar-07 20:58 
AnswerRe: How to make inbox Pin
Dmitry Khudorozhkov13-Mar-07 22:01
Dmitry Khudorozhkov13-Mar-07 22:01 

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.