Results 1 to 8 of 8

Thread: [RESOLVED] Navigate Web Pages in Visual Studio

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2006
    Location
    London, UK
    Posts
    817

    Resolved [RESOLVED] Navigate Web Pages in Visual Studio

    I'm not sure if this is the right forum to be asking this question.

    I am very new to both web design and Visual Studio but am ok with VB6.

    I was hoping that Visual Studio would allow me to code in the same way as VB6 does.

    ie.
    Sub Picture1_Click()
    Load Default.aspx
    End Sub

    Another simple example is if I want to add a hyperlink to display another page.

    Is this possible?
    Last edited by sgrya1; Jul 25th, 2009 at 07:23 AM.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Navigate Web Pages in Visual Studio

    Moved to ASP.NET which is not the same as ASP

  3. #3
    Lively Member
    Join Date
    Oct 2008
    Posts
    87

    Re: Navigate Web Pages in Visual Studio

    Use your toolbox. Drag over the linkbutton onto your aspx page and double click it. It will take you to your, im guessing youll be using vb, code. The code will auto populate the button click event. If not, find your button on the general dropdown, and find the event you want in the declarations.

    vb Code:
    1. response.redirect("Default.aspx")

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2006
    Location
    London, UK
    Posts
    817

    Re: Navigate Web Pages in Visual Studio

    mjcoco01,

    That's great!! HTML code is probably simple enough but I put one character out of place, the whole thing doesn't work, and I have start the project from scratch.

    Thanks.

  5. #5
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Navigate Web Pages in Visual Studio

    Hey,

    I find it surprising that you would need to start the whole project from scratch. It is unlikely that one character would break your entire application.

    Gary

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2006
    Location
    London, UK
    Posts
    817

    Re: Navigate Web Pages in Visual Studio

    Might have been overreacting but I know nothing about html code.
    Every now and again something goes wrong where I'm staring at errors generated from the html. I'm not sure what I did or how to fix it. Sometimes the explaination doesn't help a lot either.
    The web page wasn't that far along so I figure it's just easier if I start again or delete the affected pages and start them again.

  7. #7
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: [RESOLVED] Navigate Web Pages in Visual Studio

    Hey,

    This is a little bit off topic, but if you are doing serious development, then you might want to think about using Source Control for your code, that way you can revert back to a previous version of the code. If you haven't looked at it already, I would recommend Subversion. This can be a pain to set up if you are using the "raw" version of the product, but there are packaged versions that you can get from here:

    http://www.visualsvn.com/server/

    Use that in combination with TortoiseSVN and you will be laughing:

    http://tortoisesvn.tigris.org/

    And as for learning HTML, here is a good place to start:

    http://www.w3schools.com/html/default.asp

    Gary

  8. #8
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [RESOLVED] Navigate Web Pages in Visual Studio

    If you face a problem with something you're doing, instead of redoing the whole thing from scratch, post the relevant bits of code or describe the problem in detail so that we can tell you what's going on

Posting Permissions

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



Click Here to Expand Forum to Full Width