Reading a cookie from a Web Control

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Reading a cookie from a Web Control

    I have the need for a page to either pick between 2 Web Controls, one
    being the login; the other being subscriber input/confirmation.

    If a cookie is not found, even a temporary one (set at 1day) when the
    containing webform is loaded then the login page is offered - if they
    are registered users they enter their details which brings them to the
    confirmation page where they can adjust their details.

    Once there has been a successful login, a temporary cookie is used to
    store their particulars (UID/PWD) or they use a persistent cookie.

    The problem is, from the login WebControl there is no facility to
    provide for Response/Request so as to create the temporary cookie.

    I have tried using a server side form, only to be informed that 1 server
    site form per page is permitted, or "$CMD... in not in the name space or
    class" where $CMD is either Response or Request.

    Is there a way of accessing a cookie from a class whether it be a
    WebControl or a generic class that is not on a WebForm?

    Wayne

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Wayne MJ Guest

  2. Similar Questions and Discussions

    1. Delete Cookie Control?
      What kind of JavaScript is needed to delete all of the cookies for the current web site, and can that be registered in an ASP.NET page as a button?...
    2. Device::Cdio - encapsulates CD control and reading
      In this initial object-oriented Perl interface to the C library libcdio (http://www.gnu.org/software/libcdio), audio CD controls, device controls,...
    3. Sharing ASPAUTH cookie between IE and a hosted Windows Form Control
      Hello everyone, I have a situation where I am hosting a windows forms based control on a web page in IE. Because the windows forms app uses web...
    4. Reading/Decrypting ASP.Net auth cookie from ASP
      I have mixed ASP & ASP.Net sites. I want to read an encrypted FormsAuthenticationTicket from an ASP page (I already have multiple ASP.Net apps...
    5. Cookies set one time, I delete cookie, cookie is never set again!
      I am having this problem: My PHP script will set a cookie, it's there in my /Cookies folder. I delete the cookie (I have to for testing purposes,...
  3. #2

    Default Re: Reading a cookie from a Web Control

    Solved it.

    My moving the control to an actualy webform, then using
    Server.Transfer() I was able to mung it into working very well.

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Wayne MJ Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139