Click here to Skip to main content
15,889,389 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Generalmasterpages Pin
jkirkerx5-Jul-12 7:08
professionaljkirkerx5-Jul-12 7:08 
GeneralRe: asp.net 2010 code compare Pin
R. Giskard Reventlov3-Jul-12 16:35
R. Giskard Reventlov3-Jul-12 16:35 
GeneralRe: asp.net 2010 code compare Pin
BillWoodruff5-Jul-12 13:41
professionalBillWoodruff5-Jul-12 13:41 
GeneralRe: asp.net 2010 code compare Pin
jkirkerx6-Jul-12 6:58
professionaljkirkerx6-Jul-12 6:58 
Questioncreate website like blogigo Pin
marjan_gh3-Jul-12 9:04
marjan_gh3-Jul-12 9:04 
AnswerTry DotNetNuke Pin
David Mujica3-Jul-12 10:38
David Mujica3-Jul-12 10:38 
QuestionLogin problem Pin
serigraphie3-Jul-12 6:35
serigraphie3-Jul-12 6:35 
AnswerRe: Login problem Pin
jkirkerx3-Jul-12 8:28
professionaljkirkerx3-Jul-12 8:28 
It cleared the session when the login button was clicked
Session("Username") = Nothing

And set the value back when the user was authenticated.

It's just using 1 session variable, and seems to update a database table upon login

I would not detect if a user is logged in, and give them access, unless it's security is not a concern

But if you want to, you can just modify the code to detect the session user, and authenticate them again. Strange, I don't see a password, must be the string array userName(1) and userName(0)

VB
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        If Not IsPostBack Then
            Try
                If Not Session("user") is nothing then 
                  Dim userName As String = Session("user")
                  StaticObject.Domain = username.ToString()
                  Session("UserName") = username.ToString()
                  StaticObject.Domain = username.ToString()
                  accessData.AddUser(username.ToString())
                  Dim Authorization As String = accessData.CheckUserAccess(Username(1).ToString())
                  Dim MyAuthorization As String() = Authorization.Split("|"c)
                  StaticObject.UserLevel = MyAuthorization(0).ToString()
                  StaticObject.IsAdmin = MyAuthorization(1).ToString()
                  If MyAuthorization(0).ToString() <> "9" Then
                    Session("displayName") = StaticObject.DisplayName
                    Response.Redirect("Home.aspx")
               else

                  status = Request.QueryString("status").ToString()
                  If status = "NOTADMIN" Then
                    lblWarning.Text = "Sorry you are not allowed to access the site. Please contact Site Admin."
                  End If
               End If
            Catch ex As Exception
                Dim a As String = ""
            End Try
        End If
    End Sub

Generalxsl and xsl fo transformations Pin
indian1433-Jul-12 5:42
indian1433-Jul-12 5:42 
SuggestionRe: xsl transformations Pin
AspDotNetDev3-Jul-12 7:20
protectorAspDotNetDev3-Jul-12 7:20 
GeneralRe: xsl and xslfo transformations Pin
indian1433-Jul-12 8:01
indian1433-Jul-12 8:01 
QuestionCreating Dynamic control in oninit method Pin
ankushbelorkar3-Jul-12 5:15
ankushbelorkar3-Jul-12 5:15 
AnswerRe: Creating Dynamic control in oninit method Pin
R. Giskard Reventlov3-Jul-12 5:20
R. Giskard Reventlov3-Jul-12 5:20 
AnswerRe: Creating Dynamic control in oninit method Pin
jkirkerx3-Jul-12 7:46
professionaljkirkerx3-Jul-12 7:46 
QuestionMultiple ScriptManager.RegisterStartupScript Issue Pin
Vimalsoft(Pty) Ltd2-Jul-12 21:11
professionalVimalsoft(Pty) Ltd2-Jul-12 21:11 
AnswerRe: Multiple ScriptManager.RegisterStartupScript Issue Pin
Sandeep Mewara2-Jul-12 23:18
mveSandeep Mewara2-Jul-12 23:18 
GeneralRe: Multiple ScriptManager.RegisterStartupScript Issue Pin
Vimalsoft(Pty) Ltd2-Jul-12 23:19
professionalVimalsoft(Pty) Ltd2-Jul-12 23:19 
GeneralRe: Multiple ScriptManager.RegisterStartupScript Issue Pin
Sandeep Mewara2-Jul-12 23:34
mveSandeep Mewara2-Jul-12 23:34 
QuestionASP .Net Pin
Member 34876322-Jul-12 18:49
Member 34876322-Jul-12 18:49 
AnswerRe: ASP .Net Pin
Sandeep Mewara2-Jul-12 19:48
mveSandeep Mewara2-Jul-12 19:48 
GeneralRe: ASP .Net Pin
Member 34876323-Jul-12 20:06
Member 34876323-Jul-12 20:06 
AnswerRe: ASP .Net Pin
ZurdoDev3-Jul-12 4:02
professionalZurdoDev3-Jul-12 4:02 
GeneralRe: ASP .Net Pin
CodingLover3-Jul-12 4:07
CodingLover3-Jul-12 4:07 
GeneralRe: ASP .Net Pin
Member 34876323-Jul-12 20:10
Member 34876323-Jul-12 20:10 
AnswerRe: ASP .Net Pin
ZurdoDev5-Jul-12 2:37
professionalZurdoDev5-Jul-12 2:37 

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.