C# Question...

Discussion in 'Programming' started by MrAlvarado, Sep 16, 2007.

  1. #1
    Hello everyone, I'm new to C# and I have a couple of questions if you guys don't mind...

    I'm making a program that will require you I to enter some information such as Username, Password, email address, once entered you will click on submit(button) and your default browser will launch. Only problem is that I don't know how to make this happen..

    I will need the url to be like http://username:password@www.somerandomwebsite.com

    How can I make this happen? Can anyone tell me the code or give me a tutorial where I can learn how to?
     
    MrAlvarado, Sep 16, 2007 IP
  2. bacanze

    bacanze Peon

    Messages:
    2,419
    Likes Received:
    127
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well for a start, you need to be using asp.net, which can be written in either c# or vb.net, anyways I think you would need to use the classes with the system.web base namespace ie pagehandler
     
    bacanze, Sep 16, 2007 IP
  3. MrAlvarado

    MrAlvarado Peon

    Messages:
    258
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Ah I found out how to do it...thanks

    Another question

    How do you make a URL in C#? Like when a button or label is clicked it launched the URL that I put.
     
    MrAlvarado, Sep 16, 2007 IP
  4. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #4
    bacanze, I think he is making a desktop app, no need for asp.net

    MrAlvarado, here:
    System.Diagnostics.Process.Start(url);
    Code (markup):
     
    krt, Sep 16, 2007 IP