Getting Started

To create and start your project, follow the below three steps:

  1. Create your project

    Start MS .NET from the "start" menu. Click "Start -> All Programs -> Programming -> Microsoft Visual Studio .NET -> Microsoft Visual Studio .NET".

    Click "File -> New -> Project...". In Template window, choose "ASP .NET Web Application". In Location, type iisqlsrv, and then name your project. We will all be sharing a webspace, so it is crucial that we all name our projects uniquely. Always name your project with your login then an underscore and then the rest of the project name. E.g. "http://iisqlsrv/jessica _MyFirstWebApp/<the project name>". Make sure you select "Visual C# Projects" under "Project Types". Click "Ok."

    If you want to create multiple projects, make sure you If you want to create multiple projects, make sure you put the new project in your own folder, e.g."http://iisqlsrv/jessica_<another project>".

    Next you will get the screen that says it can't connect to wwwroot$, this is what we want, select the 'use frontpage extensions' method. It takes a few seconds for the connection to occur, but then your project is created and should look like this(the file/project names differ, of course):

    If you do not see the solution explorer or the toolbox, go to View on the toolbar, then select Solution Explorer and/or Toolbox.

     

  2. Open your project

    After you create your project, every time when you start visual studio .net, you can open it using "Open Project" Button.

  3. Make your first page

    In the solution explorer, right click on the name of the project (in the example is lunadong). Select "add" and then "add web form."

    A new screen should pop up and ask you for a file name. Give your page a name--it should now show up in the solution explorer. To start working on this page, double click it.
    By default, you are presented with the Design view, but you can click on the tab at the bottom of the page to switch to HTML view and hand code whatever you wish.

    Let's add a "Hello World" message. 

    When you point to the tool-box icon on left-hand side, you can see a bunch of web form design tools. 

    Click on the label in the toolbox. Now drag a rectangle over the grid. A rectangle appears on the grid (says Label1 on it). Right click that rectangle and go to Properties. The properties box appears on your screen (most likely right under the solution explorer). Go to the Text Property and change it to Hello World (just type it).

    You are ready to view your page--one more step. In solution explorer, right click your page in Solution Explorer and click on "Set as a startup page". This way you designate your page as the first one to be served as a user accesses your site.

    To compile and deploy your project, go Debug -> Run without Debug. If you want to use the debug facility, what you need to do is Remote Desktop to either "Aria.cs.washington.edu" or "iisqlsrv", copy your .NET project folder to somewhere in your "My Documents" folder there, and start up .NET there. Now you should be able to compile/run your project with the .NET debug option.

    Your "hello world" web page should pop up.

    If you see the message as "Error while trying to run project: Unable to start debugging on the web server. The machine cannot be found on the network. ..." Click "Yes" and run debug again. Then everything will be ok afterwards.

Please try this ASAP and let me know of any issues that you encounter.

If you want to view your page on the internet you can type, "http://iisqlsrv/<project_name>/<name_of_form>.aspx" in Internet Explorer."