#1
  1. Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Aug 2011
    Posts
    5,791
    Rep Power
    508

    C# need complete web example


    Using monoThis program when run from the command line opens a window on my display.
    Code:
    //compilation:
    //  mcs hello.cs -pkg:dotnet
    //run at command line:
    //  mono hello.exe 
    
    using System;
    using System.Windows.Forms;
    
    public class HelloWorld : Form {
        static public void Main() {
            Application.Run(new HelloWorld());
        }
        public HelloWorld() {
            Text = "Hello Mono World";
        }
    }
    I start my server with shell command xsp4
    I open my broswer and connect to
    Code:
    http://localhost:9000/somefile.aspx
    blank line
    blank line
    And finally the question, what is somefile.aspx that uses this program?
    Last edited by b49P23TIvg; June 12th, 2015 at 11:18 PM.
    [code]Code tags[/code] are essential for python code and Makefiles!
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,527
    Rep Power
    4541
    Is there a question here? First, lemme say I have never done any coding in asp.NET or C#, so not much help with the details.

    But, somefile.aspx would be the .aspx page you're trying to open in the browser. You could try leaving off the page name, perhaps there is some default index page. If it's supposed to be your own page, well, I guess you should write it
    ======
    Doug G
    ======
    I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton
  4. #3
  5. Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Aug 2011
    Posts
    5,791
    Rep Power
    508
    [edit]Gosh there's a .net forum. I'll read that for a while[/edit]
    Yes I need to write somefile.aspx . By trial and error I have only error. What is a working content for
    somefile.aspx
    ?

    Please fill in the blank:

    $ cat somefile.aspx
    Last edited by b49P23TIvg; June 15th, 2015 at 08:19 PM.
    [code]Code tags[/code] are essential for python code and Makefiles!

IMN logo majestic logo threadwatch logo seochat tools logo