I'm a traditional ASP developer and am experimenting with asp.net. I
installed .NET Framework 1.1 and make a quick and dirty test page called
random.aspx . Can anyone tell me why this page doesn't write the value of
"X" to the page AND why I can view the <% %> source code in the browser? It
makes me think that my IIS doesn't recognize .aspx files.
Thanks
<% @dotnet.itags.org.Page Language = "VB" Debug = "True" Explicit = "True" %>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
Random Single Number Test: <strong>(
<%
Dim X As Single
Randomize
X = Rnd
Response.Write X
%>)</strong>
</body>
</html
--
*********************************
D. Shane Fowlkes - TMM
Saving the world, one web site at a time.
Work: http://www.premierewebs.com
Play: http://www.raccoonbob.com
*********************************From the .Net installation directory under your Windows (or e1quivalent)
directory, run the following command-line tool to install ASP.Net on your
web server:
aspnet_regiis.exe -i
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
"D. Shane Fowlkes" <shane@.raccoonbob.com> wrote in message
news:e4n0APIpDHA.2140@.TK2MSFTNGP09.phx.gbl...
> I'm a traditional ASP developer and am experimenting with asp.net. I
> installed .NET Framework 1.1 and make a quick and dirty test page called
> random.aspx . Can anyone tell me why this page doesn't write the value of
> "X" to the page AND why I can view the <% %> source code in the browser?
It
> makes me think that my IIS doesn't recognize .aspx files.
>
> Thanks
> <% @.Page Language = "VB" Debug = "True" Explicit = "True" %>
> <html>
> <head>
> <title>Untitled Document</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> </head>
> <body>
> Random Single Number Test: <strong>(
> <%
> Dim X As Single
> Randomize
> X = Rnd
> Response.Write X
> %>)</strong>
> </body>
> </html>
>
> --
>
> *********************************
> D. Shane Fowlkes - TMM
> Saving the world, one web site at a time.
> Work: http://www.premierewebs.com
> Play: http://www.raccoonbob.com
> *********************************
Thanks Kevin! That did it...
--
*********************************
D. Shane Fowlkes - TMM
Saving the world, one web site at a time.
*********************************
"Kevin Spencer" <kevin@.DIESPAMMERSDIEtakempis.com> wrote in message
news:%23WbfV4IpDHA.488@.tk2msftngp13.phx.gbl...
> From the .Net installation directory under your Windows (or e1quivalent)
> directory, run the following command-line tool to install ASP.Net on your
> web server:
> aspnet_regiis.exe -i
> --
> HTH,
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> http://www.takempis.com
> Big Things are made up of
> Lots of Little Things.
> "D. Shane Fowlkes" <shane@.raccoonbob.com> wrote in message
> news:e4n0APIpDHA.2140@.TK2MSFTNGP09.phx.gbl...
> > I'm a traditional ASP developer and am experimenting with asp.net. I
> > installed .NET Framework 1.1 and make a quick and dirty test page called
> > random.aspx . Can anyone tell me why this page doesn't write the value
of
> > "X" to the page AND why I can view the <% %> source code in the browser?
> It
> > makes me think that my IIS doesn't recognize .aspx files.
> > Thanks
> > <% @.Page Language = "VB" Debug = "True" Explicit = "True" %>
> > <html>
> > <head>
> > <title>Untitled Document</title>
> > <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> > </head>
> > <body>
> > Random Single Number Test: <strong>(
> > <%
> > Dim X As Single
> > Randomize
> > X = Rnd
> > Response.Write X
> > %>)</strong>
> > </body>
> > </html>
> > --
> > *********************************
> > D. Shane Fowlkes - TMM
> > Saving the world, one web site at a time.
> > Work: http://www.premierewebs.com
> > Play: http://www.raccoonbob.com
> > *********************************
Showing posts with label iinstalled. Show all posts
Showing posts with label iinstalled. Show all posts
Thursday, March 22, 2012
taking the plunge
I'm a traditional ASP developer and am experimenting with asp.net. I
installed .NET Framework 1.1 and make a quick and dirty test page called
random.aspx . Can anyone tell me why this page doesn't write the value of
"X" to the page AND why I can view the <% %> source code in the browser? It
makes me think that my IIS doesn't recognize .aspx files.
installed .NET Framework 1.1 and make a quick and dirty test page called
random.aspx . Can anyone tell me why this page doesn't write the value of
"X" to the page AND why I can view the <% %> source code in the browser? It
makes me think that my IIS doesn't recognize .aspx files.
Thanks
If you can view the code, it's because your aspx is processed by IIS as an HTML file and that why your code is not runned.
<% @dotnet.itags.org.Page Language = "VB" Debug = "True" Explicit = "True" %>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
Random Single Number Test:(
<%
Dim X As SingleRandomize
X = Rnd
Response.Write X
%>)
</body>
</html>
Is your web folder an Application in IIS ?
As far as I can tell.
See: http://www.drpt.state.va.us/iis.gif (see "test" web site")
Try removing the space here
<% @.Page...
to <%@. Page...
Your folder is an application and as far as I know, your .aspx file should be processed.
Labels:
asp,
dirty,
experimenting,
framework,
iinstalled,
net,
page,
plunge,
traditional
Subscribe to:
Posts (Atom)