Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: problem running ASP+


Message #1 by Kapil <subscribaa@y...> on Sat, 12 May 2001 04:53:10 -0700 (PDT)
hi,

I have downloaded and installed .NET sdk from the

Microsoft site. Now I want to start with C# and ASP+.

I have created a simple aspx page but it does not

process the commmands within the <% %> tags but just

displays the whole page as it is including the tags.



I also tried running my existing ASP (not ASP+)

application but whenever it goes to the asp page it

says that the ASP page cannot be found.



I am using IIS 5.0 win2k professional.



Also can I develop .NET compatible COM components for

my ASP+ application using Visual Studio 6 or do I need

VS .NET? Can anyone point me to a tutorial on the

same?



Kapil



Message #2 by "Alex Homer" <alex@b...> on Tue, 29 May 2001 15:44:22
You should use the <script> element to define server-side script sections:



<script runat="server" langauge="VB">

...

</script>



Also be sure to access the page using http://servername/pageurl and not by 

just double-clicking on it.



Ordinary ASP pages are not affected by installing ASP.NET - they are still 

processed in the same way as before. You can rename an .asp page to .aspx 

and it will be processed by ASP.NET instead, but it will probably fail to 

work until you edit the code to suit ASP.NET



You can't use VB6 to develop managed code components, and .NET doesn't use 

COM components anyway. Instead, write them with Visual Studio.NET or in a 

text editor and compile them with the VB compiler that comes with ASP.NET. 

The .NET SDK contains plenty of samples and information.


  Return to Index