|
-
Jul 25th, 2009, 07:06 AM
#1
Thread Starter
Fanatic Member
[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.
-
Jul 26th, 2009, 04:39 AM
#2
Re: Navigate Web Pages in Visual Studio
Moved to ASP.NET which is not the same as ASP
-
Jul 26th, 2009, 09:29 AM
#3
Lively Member
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:
response.redirect("Default.aspx")
-
Jul 26th, 2009, 09:52 AM
#4
Thread Starter
Fanatic Member
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.
-
Jul 27th, 2009, 07:04 AM
#5
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
-
Jul 27th, 2009, 07:17 AM
#6
Thread Starter
Fanatic Member
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.
-
Jul 27th, 2009, 07:22 AM
#7
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
-
Jul 27th, 2009, 09:46 AM
#8
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|