Monday, March 26, 2012

MAYBE A STUPID QUESTION

I have the book ASP.NET unleashed and have been trying to look at some of the vb and C# samples on the cd that comes with the book. If I am using Visual Studio.NET, how do I open one of the examples. When you go to the open file option it doesn't give the option of opening an ASPX file.
One other small thing when I am creating a new project it prompts for a name of the project do I name it ex. simpleaspx or simpleaspx.aspx it seems that when you choose to create an ASP.NET project that it automatically saves it with the ASPX extension.

Thanks
Del Dobbsin vs.net, dont name your project .anything you dont need the dot, just name it a project name like Project1 or Project2

as far as the cd examples, open up the drive that the cd in in, open the examples folder, then there are 2 folders, cs and vb, if you want the c# example open up cs, vb open vb
that's one thing i hate about vs.net, each project is set to a specific URL, if URL doesn't match what's defined in the project, it won't open. it's never easy to open projects not created in your computer.
I went to the Drive in my computer and clicked on the chapter 1 folder then VB and then an example called Dartboard.aspx. It opened up in VS.Net but just the code and html opened up. There was no way to run it on IIs to see it work. Is there a way that I am missing??
Thanks
Del
I also read somewhere that there was another book witten by Stephen Walther something about "ASP.NET withVisual Studio NET". I went to the bookstore to find it and they said that it was on available in the U.K. does anyone know this to be true??
What you are missing is that you can;t run that code directly... If you want to use it copy and paste it into your own pages and change the database connection so that it points to your database...Im not sure about the book but if the book store said its not available in the UK that sounds kinda fishy, maybe you should try ordering it online from Amazon or Barnes & Noble...

0 comments:

Post a Comment