SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Running ASP.NET pages on Xampp

    I have plenty of experience with HTML, CSS, and some experience with Javascript and other such scripting codes, and also know C#.

    I just installed Xampp on my computer (runs a server off of XP OS's) and tried a basic ASP.NET page, loading it through "http://localhost", however the server-side part of the page does not work. Do I need to install any specific software in the web directory or anywhere else?

    Here is my code:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title></title>
    <link href="jmarter.css" rel="stylesheet" type="text/css" />
    <script runat="server" language="C#">
    protected void Page_Load(Object s, EventArgs e)
    {
        lblTime.Text = DateTime.Now.ToString();
    }
    </script>
    </head>
    <body>
    <p>Hello There!</p>
    <p>The time now is: <asp:Label runat="server" ID="lblTime" /></p>
    </body>
    </html>

  2. #2
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,649
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    You are probably much better off either using the bundled development server or IIS to build your sites on.

    If you are committed to Apache on windows, you will need to install mod_aspnet.

  3. #3
    SitePoint Enthusiast
    Join Date
    Feb 2007
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    mono-project.com is also an option.

  4. #4
    SitePoint Member
    Join Date
    Sep 2007
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the help. I'm not fully committed to it, right now it was just the quickest option for trying to learn more of the server-side technologies.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •