Announcement

Collapse
No announcement yet.

Example HTML5 project

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Example HTML5 project

    Is there an example where a manually created HTML page (i.e., the elements are not created in the C# code). Even a simple example like the "getting started sample" where the button was defined in demo.html would be helpful.

    #2
    Hi Mark,

    You can use something like this to get an element defined in the demo.html

    in demo.html:
    HTML Code:
    <div class="content">Some content</div>
    <button id="myId">My button</button>
    in c# source code:
    Element elem1= jQuery.Select(".content").Get(0);
    HTMLButtonElement b = jQuery.Select("#myId").Get(0) as HTMLButtonElement;
    Don't know if this is what you mean?

    Best regards, Guido

    Comment


      #3
      Good Morning

      I would suggest having a look at this website very helpful when starting out with HTML: https://www.w3schools.com/html/

      it allows you to edit and try in the browser

      Comment


        #4
        @guidovanhils - Thanks, exactly what I needed

        @samuelgrahame - It really wasn't an html issue, just a question on how to wire html elements in C#.

        Comment


          #5
          In the case, Im not sure if you are aware of: Document.GetElementById("Id");

          Document is the document module from javascript.

          Comment

          Working...
          X