+ Reply to Thread
Results 1 to 3 of 3

Thread: Does anyone have ASP.NET samples?

  1. #1
    valley9 is offline x10Hosting Member valley9 is an unknown quantity at this point
    Join Date
    May 2009
    Posts
    3

    Question Does anyone have ASP.NET samples?

    Hi, I'm having lots of trouble starting up an ASP.NET website on this server.

    All I'd want (for now) is just to create a single empty webpage with a single button or textbox.

    I wasn't able to find any ASP.NET-on-Mono samples on the internet.

    So I was wondering whether anyone has created any samples of a basic working page in ASP.NET with mono, which uses basic GUI elements (e.g. buttons, textboxes, etc.) and which works on this server.

    ... or do you think that trying to run GUI ASP.NET elements isn't really appropriate on Mono...



    Thanks!

  2. #2
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: Does anyone have ASP.NET samples?

    ASP.NET is fine to run here. The problem you will encounter is Mono supports .NET up to somewhere in between 2.0 and 3.5. If you can find an old .NET 2.0 tutorial, you'll be in good shape.

    A basic .NET "hello world":

    Code:
    <%@ Page Language="C#" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <script runat="server">
    
    </script>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
        <% if (Page.IsPostBack) {
               Response.Write("<p>Hello World!</p>");
          }
           else { %>
               <asp:Button runat="server" Text="Hello" />
          <% } %>
        </div>
        </form>
    </body>
    </html>
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  3. #3
    valley9 is offline x10Hosting Member valley9 is an unknown quantity at this point
    Join Date
    May 2009
    Posts
    3

    Thumbs up Re: Does anyone have ASP.NET samples?

    Hi,

    It works! Thank you so much!

+ Reply to Thread

Similar Threads

  1. ASP.NET (mod_mono)
    By Fedlerner in forum Service Alerts
    Replies: 1
    Last Post: 03-25-2009, 08:50 PM
  2. ASP.Net and FTP on Free Account?
    By the7ven in forum Free Hosting
    Replies: 1
    Last Post: 03-06-2009, 11:05 AM
  3. ASP.NET not linking to code behind??
    By angrywasp in forum Programming Help
    Replies: 9
    Last Post: 06-30-2008, 02:47 PM
  4. Replies: 1
    Last Post: 05-08-2008, 04:40 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers