Click here to Skip to main content
15,917,795 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPost file in XAML Pin
pjc*7-Sep-06 19:11
pjc*7-Sep-06 19:11 
QuestionSave File in XAML Pin
pjc*7-Sep-06 19:08
pjc*7-Sep-06 19:08 
QuestionException handling Approach Pin
Amit Kumar G7-Sep-06 17:28
Amit Kumar G7-Sep-06 17:28 
AnswerRe: Exception handling Approach Pin
Not Active7-Sep-06 18:41
mentorNot Active7-Sep-06 18:41 
GeneralRe: Exception handling Approach Pin
Amit Kumar G8-Sep-06 3:04
Amit Kumar G8-Sep-06 3:04 
GeneralRe: Exception handling Approach Pin
Not Active8-Sep-06 3:09
mentorNot Active8-Sep-06 3:09 
AnswerRe: Exception handling Approach Pin
Ramasubramaniam8-Sep-06 3:39
Ramasubramaniam8-Sep-06 3:39 
QuestionFormsAuthentication Pin
cisco21037-Sep-06 13:41
cisco21037-Sep-06 13:41 
I am still having trouble with Form Authentication. Looks like my vb code doens't like the FormsAuthentication.RedirectfromLoginpage. I think its a variable that is not declared.
Here is my web.config
<configuration>

<system.web>


<compilation defaultlanguage="vb" debug="true">


<customerrors mode="RemoteOnly">


<authentication mode="Forms">
<forms name="AuthCookie" loginurl="Login.aspx" defaulturl="Default.aspx"
="" timeout="60" protection="All" cookieless="AutoDetect">


<authorization>
<deny users="?">



<trace enabled="false" requestlimit="10" pageoutput="false" tracemode="SortByTime" localonly="true">
<sessionstate
="" mode="InProc" stateconnectionstring="tcpip=127.0.0.1:42424" sqlconnectionstring="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20">


<globalization requestencoding="utf-8" responseencoding="utf-8">





This is what my login button looks like:

Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click

Dim objSqlDataset As New DataSet
Dim isfound As Boolean = False
Dim objSqlDataAdapter As New SqlDataAdapter
Dim i As Integer = 0
Dim SelectMembers = New SqlCommand("select * from Members", objSqlConnection)
objSqlDataAdapter.SelectCommand = SelectMembers
objSqlDataAdapter.Fill(objSqlDataSet, "Members")
pstrUserId = Me.txtUserId.Text.Trim
PstrPassword = Me.txtPassword.Text.Trim

With objSqlDataSet.Tables("Members").TableName

Do Until (i >= objSqlDataSet.Tables("Members").Rows.Count Or isfound)
If objSqlDataSet.Tables("Members").Rows(i).Item("UserId").TOUPPER = pstrUserId.ToUpper Then

'Update the Flag
isfound = True
Else
'increment the counter
i = i + 1

End If
Loop

If isfound Then
If objSqlDataSet.Tables("Members").Rows(i).Item("Password").TOUPPER = PstrPassword.ToUpper Then

If Me.chkPassword.Checked = True Then
Response.Cookies("FremontPokerLeague")("FirstName") = objSqlDataset.Tables("Members").Rows(i).Item("FirstName").trim
Response.Cookies("FremontPokerLeague")("userId") = Me.txtUserId.Text.Trim
Response.Cookies("FremontPokerLeague")("Password") = Me.txtPassword.Text.Trim
Response.Cookies("FremontPokerLeague").Expires = DateTime.Now.AddMonths(1)
Cry | :(( formsauthentication.redirectfromloginpage(pstrUserId, False)

End If
objSqlDataset.Dispose()
objSqlDataset = Nothing
objSqlDataAdapter.Dispose()
objSqlDataAdapter = Nothing
insertLogin()
Else
Lblstatus.Text = "Invalid Password!"
End If
Else
Lblstatus.Text = "Invalid User Id!"
End If


End With



End Sub
QuestionASP.Net 2.0 GridView inside Checkbox/Dropdown Pin
dsrao7-Sep-06 11:38
dsrao7-Sep-06 11:38 
QuestionSoapExtension and web service Pin
mjgofe297-Sep-06 9:09
mjgofe297-Sep-06 9:09 
QuestionConvert to PDF and Print on the fly Pin
Steve-o H.7-Sep-06 8:53
Steve-o H.7-Sep-06 8:53 
QuestionBuffering or Caching. Pin
deepaks37-Sep-06 8:24
deepaks37-Sep-06 8:24 
AnswerRe: Buffering or Caching. Pin
Guffa7-Sep-06 9:35
Guffa7-Sep-06 9:35 
GeneralRe: Buffering or Caching. Pin
deepaks37-Sep-06 9:53
deepaks37-Sep-06 9:53 
GeneralRe: Buffering or Caching. Pin
Jason Weibel7-Sep-06 10:57
Jason Weibel7-Sep-06 10:57 
GeneralRe: Buffering or Caching. Pin
Not Active7-Sep-06 12:08
mentorNot Active7-Sep-06 12:08 
AnswerRe: Buffering or Caching. Pin
Guffa7-Sep-06 13:01
Guffa7-Sep-06 13:01 
AnswerRe: Buffering or Caching. Pin
Not Active7-Sep-06 12:07
mentorNot Active7-Sep-06 12:07 
GeneralRe: Buffering or Caching. Pin
Amit Kumar G7-Sep-06 13:29
Amit Kumar G7-Sep-06 13:29 
GeneralRe: Buffering or Caching. Pin
Not Active7-Sep-06 15:05
mentorNot Active7-Sep-06 15:05 
QuestionSSL Connection? Pin
Jason Weibel7-Sep-06 8:10
Jason Weibel7-Sep-06 8:10 
AnswerRe: SSL Connection? Pin
Nick Parker11-Sep-06 5:01
protectorNick Parker11-Sep-06 5:01 
GeneralRe: SSL Connection? Pin
Jason Weibel11-Sep-06 5:19
Jason Weibel11-Sep-06 5:19 
GeneralRe: SSL Connection? Pin
Jason Weibel11-Sep-06 5:41
Jason Weibel11-Sep-06 5:41 
GeneralRe: SSL Connection? Pin
Jason Weibel11-Sep-06 6:24
Jason Weibel11-Sep-06 6:24 

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.