get username using asp.net

Discussion in 'ASP .Net' started by James, Aug 5, 2009.

  1. James

    James Guest

    I have the following script & I need to get the username (with no
    domain info) & feed the username into c:\documents and settings
    \username\my documents". So, for instance, if the username is JSmith,
    then I'll have
    c:\documents and settings\JSmith\my documents. Thanks

    ==================================================================================
    <HTML>

    <HEAD>
    <TITLE>This is only a test</TITLE>
    </HEAD>
    <BODY topmargin="0" leftmargin="0">
    <div align="center">
    <img border="0" src="picture.gif">

    <OBJECT width="994"
    CLASSID="CLSID:AAB0606-D808-479A-9398-34879AAA"
    ID="application1"
    CODEBASE="http://webserver//SupportWebSite/test.CAB#Version=5"
    VIEWASTEXT>
    <PARAM NAME="URL" VALUE="http://webserver//SupportWebSite" >
    <PARAM NAME="PATH" VALUE="c:\documents and settings\\my documents"
    >

    </OBJECT>
    </div>


    <TABLE align="center">
    <tr align="center" valign="middle">
    <td width="100%" valign="top"><br>
    <p align="center"><font face="Verdana, Arial, Helvetica, sans-
    serif" size="1">This is only a test.<br>
    </font><span class="bodytextblk"><br>
    </p>
    </td>
    </tr>
    </TABLE>

    </BODY>

    </HTML
    ===================================================================================
     
    James, Aug 5, 2009
    #1
    1. Advertising

  2. James

    James Guest

    It is ASP classic

    "Mark Rae [MVP]" wrote:

    > "James" <> wrote in message
    > news:...
    >
    > > I have the following script

    >
    > Is this ASP.NET or ASP Classic...?
    >
    >
    > --
    > Mark Rae
    > ASP.NET MVP
    > http://www.markrae.net
    >
    >
     
    James, Aug 5, 2009
    #2
    1. Advertising

  3. =?Utf-8?B?SmFtZXM=?= <> wrote in
    news::

    > It is ASP classic


    Try microsoft.public.inetserver.asp.general, as you are more likely to get
    an answer there.



    --
    Gregory A. Beamer
    MVP; MCP: +I, SE, SD, DBA

    Twitter: @gbworld
    Blog: http://gregorybeamer.spaces.live.com

    *******************************************
    | Think outside the box! |
    *******************************************
     
    Gregory A. Beamer, Aug 5, 2009
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    5
    Views:
    5,028
  2. Luqman
    Replies:
    1
    Views:
    466
    Cowboy \(Gregory A. Beamer\)
    Nov 24, 2006
  3. Luqman
    Replies:
    1
    Views:
    111
    Brad Kingsley
    Dec 7, 2006
  4. Shailesh Patel
    Replies:
    0
    Views:
    477
    Shailesh Patel
    Nov 8, 2006
  5. James

    get username using asp

    James, Aug 6, 2009, in forum: ASP General
    Replies:
    7
    Views:
    1,555
    Dooza
    Aug 17, 2009
Loading...

Share This Page