newbie to asp.NET

  • Thread starter Thread starter Siv Hansen
  • Start date Start date
S

Siv Hansen

I'm trying to learn asp.NET and bought Sams Teach yourself...
I've installed MS IIS and downloaded .NET framework 1.1
I've created a simple script, saved as first.aspx. the file looks like
this (not mine, Sam's)

<%@ Page Language="VB" %>
<script runat="server">
sub Page_Load(obj as object, e as eventargs)
lblMessage.Text = "Jeg forsøker å lære meg asp.NET"
end sub
</script>
<html><body>
<asp:Label id="lblMessage" runat="server" />
</body></html>

But even though I think this will produce an output string on page load
id doesn't. When I look at the source code I see the server-side script,
and my undeducated guess would be that the file is not compiled/parsed
at all. Did I miss any configuration of the IIS? Activation on .NET
framework?

Thanks
 
I saved the document in C:\Inetpub\wwwroot\asp and tried to access it
from http://localhost/asp/

I have previously worked with apache/php and from there I know that
apache has to be configured to parse php-files, ie load the Module for
php. Same thing in asp.net?
 
First, the folder containing the ASPX pages must be configured as an
Application. Second, you have to install the ASP.Net ISAPI on IIS. This can
be done by using the command-line aspnet_regiis.exe utility (found in your
\Windows\Microsoft.Net\Framework folder, under the version of the .Net
platform you have installed) with the -i parameter:

aspnet_regiis -i

This will enable ASP.Net on your existing web sites.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top