Click here to Skip to main content
15,922,894 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: import addresses from gmail, yahoo, hotmail, aol, etc. Pin
sukkureddy26-May-08 19:47
sukkureddy26-May-08 19:47 
GeneralApplication of Digital Dictionary Pin
Abdul8510-Feb-08 7:19
Abdul8510-Feb-08 7:19 
GeneralRe: Application of Digital Dictionary Pin
Paul Conrad10-Feb-08 8:10
professionalPaul Conrad10-Feb-08 8:10 
QuestionAJAX updatepanel not preventing entire page postback? Pin
InvalidTypecast10-Feb-08 6:36
InvalidTypecast10-Feb-08 6:36 
AnswerRe: AJAX updatepanel not preventing entire page postback? Pin
InvalidTypecast11-Feb-08 2:40
InvalidTypecast11-Feb-08 2:40 
AnswerRe: AJAX updatepanel not preventing entire page postback? Pin
sukkureddy26-May-08 19:56
sukkureddy26-May-08 19:56 
AnswerRe: AJAX updatepanel not preventing entire page postback? Pin
sukkureddy26-May-08 19:58
sukkureddy26-May-08 19:58 
Generalembedded control Pin
Gareth H10-Feb-08 4:47
Gareth H10-Feb-08 4:47 
GeneralProblem with a nested repeater Pin
simsen10-Feb-08 0:21
simsen10-Feb-08 0:21 
GeneralRe: Problem with a nested repeater Pin
pmarfleet10-Feb-08 7:03
pmarfleet10-Feb-08 7:03 
GeneralRe: Problem with a nested repeater Pin
simsen10-Feb-08 7:48
simsen10-Feb-08 7:48 
GeneralRe: Problem with a nested repeater Pin
pmarfleet10-Feb-08 8:01
pmarfleet10-Feb-08 8:01 
GeneralRe: Problem with a nested repeater Pin
simsen10-Feb-08 8:21
simsen10-Feb-08 8:21 
QuestionCan I access Asp.net Website Adminstrator Tool from the server after deploying my web application? Pin
Nada Adel9-Feb-08 23:19
Nada Adel9-Feb-08 23:19 
AnswerRe: Can I access Asp.net Website Adminstrator Tool from the server after deploying my web application? Pin
pmarfleet10-Feb-08 7:02
pmarfleet10-Feb-08 7:02 
GeneralLogout Problem !!! Pin
masoodp6669-Feb-08 22:47
masoodp6669-Feb-08 22:47 
hi everyone.
I have used session and cookie for login users with ASP.NET 1.1
and wrote:
<br />
                    Dim c As New HttpCookie("username")<br />
                    c.Value = r("company")<br />
                    c.Expires = Now.AddMinutes(30)<br />
                    Response.Cookies.Add(c)<br />
                    Response.Redirect("Main.aspx")<br />


r is an objects of SqlDataReader class. however when the user login an go to the main page on there I'v used a linkbutton as a logout order. and the code there is:
<br />
        Request.Cookies.Remove("username")<br />
        Request.Cookies("username").Expires = Now<br />
        Response.Redirect("Login.aspx")<br />


and on the load event of login page:
<br />
        If Request.Cookies("username") Is Nothing = False Then<br />
            Session("user") = Request.Cookies("username").Value.ToString<br />
            Response.Redirect("Main.aspx")<br />
        Else<br />
            Session("user") = Nothing<br />
        End If<br />


but it dosen't works! and
Request.Cookies("username") Is Nothing = True !!!

Do I wrote the correct code or not ?
if exists another way plz help.
thanks
GeneralRe: Logout Problem !!! Pin
pmarfleet9-Feb-08 23:01
pmarfleet9-Feb-08 23:01 
GeneralRe: Logout Problem !!! [modified] Pin
masoodp66610-Feb-08 23:32
masoodp66610-Feb-08 23:32 
AnswerRe: Logout Problem !!! Pin
masoodp66611-Feb-08 0:48
masoodp66611-Feb-08 0:48 
Questionhow to get file from internet by using the webclient Pin
Shaik Haneef9-Feb-08 20:37
Shaik Haneef9-Feb-08 20:37 
AnswerDouble post Pin
pmarfleet9-Feb-08 22:56
pmarfleet9-Feb-08 22:56 
AnswerRe: how to get file from internet by using the webclient Pin
Dave Kreskowiak11-Feb-08 4:34
mveDave Kreskowiak11-Feb-08 4:34 
GeneralProduct List Pin
samkaya9-Feb-08 18:14
samkaya9-Feb-08 18:14 
Generali am getting a server error while viewing a page. Pin
coolsatty9-Feb-08 17:42
coolsatty9-Feb-08 17:42 
GeneralRe: i am getting a server error while viewing a page. Pin
pmarfleet10-Feb-08 7:49
pmarfleet10-Feb-08 7:49 

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.