Retrieving username in ASP

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Retrieving username in ASP

    Hello All,

    I looked everywhere for the answer to my question but with no success. The
    question is how can I retrieve the username for the user who submitt a form
    using ASP in a intranet environment? Please, Please, Please help. Thanks.

    Database: SQL Server
    Windows 2000 platform

    Mike1500 Guest

  2. Similar Questions and Discussions

    1. Show username after login | Example: Welcome "USERNAME"to your Backoffice.
      hi. I've created a backoffice in php, and i would like to apply on the page the name of the user who has just logged in. Example: Welcome...
    2. password/username
      i have figured out how to "insert record' and when i fill in the text areas the page inserts the names into my database labeled passwords. what i...
    3. windows username
      Hi! I'm a real beginner. Sorry if I ask some stuġid questions :-) My problem is: I have more users on my computer. The system is windows 2000/...
    4. get network username?
      Hello, Is it possible to get the username (in a form for example) of a user that is logged onto a network?? Thanks for any input Kathy
    5. How to lock the username
      Hi I'm working in a Windows 2000 network and my PC have Windows XP. To prevent that anybody can access my computer, I have set up Windows to...
  3. #2

    Default Re: Retrieving username in ASP

    Hi yea Mike,
    this should help
    [url]http://www.webthang.co.uk/tuts/tuts_dmx/gk_users/gk_users_4.asp[/url]

    what he give here is an example of a user logging in and then beeen welcomed
    as in you login and then get a Hello Mike , by having a look at this
    tutorial you should then be able to do what you want to do.

    regards

    twocans



    "Mike1500" <webforumsuser@macromedia.com> wrote in message
    news:d1av5f$p6q$1@forums.macromedia.com...
    > Hello All,
    >
    > I looked everywhere for the answer to my question but with no success. The
    > question is how can I retrieve the username for the user who submitt a
    > form
    > using ASP in a intranet environment? Please, Please, Please help. Thanks.
    >
    > Database: SQL Server
    > Windows 2000 platform
    >

    twocans Guest

  4. #3

    Default Re: Retrieving username in ASP

    Have a look at the ServerVariable collection. I think it's LOGON_USER. Or
    maybe look at [url]www.aspuser.com[/url]

    --
    Jules
    [url]http://www.charon.co.uk/charoncart[/url]
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004




    Julian Roberts Guest

  5. #4

    Default Re: Retrieving username in ASP

    Thanks folks for the response, but it not working. Below is the code I'm using
    to compare the current username with the database username. Does anyone know
    how to accomplish this task?? Please help.

    SELECT *
    FROM dbo.Net_User
    WHERE UserName = 'MM_Username'

    Mike1500 Guest

  6. #5

    Default Re: Retrieving username in ASP

    You used DW's standard User Authentication server behaviors for login?
    If so, the SB does create MM_Username - but it's a session var. Try
    Session("MM_Username").


    "Mike1500" <webforumsuser@macromedia.com> wrote in message
    news:d1d3fc$8lp$1@forums.macromedia.com...
    > Thanks folks for the response, but it not working. Below is the code I'm
    > using
    > to compare the current username with the database username. Does anyone
    > know
    > how to accomplish this task?? Please help.
    >
    > SELECT *
    > FROM dbo.Net_User
    > WHERE UserName = 'MM_Username'
    >

    Les Matthews Guest

  7. #6

    Default Re: Retrieving username in ASP

    You will need to use a parameter in the SQL and specify a run-time value for
    that parameter.
    In Simple recordset builder:

    1. Name your recordset
    2. Select your connection
    3. Select the table that you are selecting the username from
    4. Select the columns (or select * - inefficient but it works)
    5. Select the column to filter on
    6. Select the comparison operator (=)
    7. Select Session Variable
    8. Enter Session("MM_Username")

    That should do it.
    HTH
    Rob
    [url]http://robgt.com[/url]


    RobGT 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