IIS - web portal using asp - Asked By Amar on 23-Aug-11 03:33 AM

hi, i dont have visual studio apps. but i have .NET framework in my system installed. i will desing coding in notepad and will run it using IIS. is it possible to do? if yes.. tell me how to run my website. i tried all the ways. but it showing errors like..


The page cannot be found

The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

Please try the following:

  • If you typed the page address in the Address bar, make sure that it is spelled correctly.
  • Open the localhost home page, and then look for links to the information you want.
  • Click the Back button to try another link.
  • Click Search to look for information on the Internet.

HTTP 404 - File not found
Internet Explorer

I have created a folder in C:\mylabs\punctual.aspx. and i have added this as my virtual directory in IIS. eventhough i cant run. the simple code i typed in notepad is :

<script language="vb" runat="server">
Sub Page_Load()
time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
End Sub
</script>
<html>
<head><title>The Punctual Web Server</title></head>
<body>
  <h1>Welcome To TECH MAHINDRA</h1>
  In WebServer Land the time is currently:
<asp:label id="time" runat="server" />
</body>
</html>

what else i need to run my code..
pls guide..

thanks
AMAR
Reena Jain replied to Amar on 23-Aug-11 03:37 AM
hi,

If you are using notpad to write the html code then you simply need to save file with the extension .html and by the giving the path only you can run the page on browser, To run html file there is no need of IIS to display pages in browser,