What is the prefered way to insert HTML in a page.

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default What is the prefered way to insert HTML in a page.

    In ASP you use <% =HtmlString %> but in ASP.NET this can cause some problems
    if you are using page inheritance.

    What is the prefered way to insert HTML in a page?

    Thanks


    Blake Versiga Guest

  2. Similar Questions and Discussions

    1. Login - multi table insert for registrant; subsquent login insert page requests into joined 'Selection' Table
      Question regards insert and updates in sql server for a simple login script that requires registration the first time and only "email address" upon...
    2. insert html page INTO flash movie
      Everybody here knows how to insert a flash movie into an html page but, Is there any way of inserting an html page into a rectangle inside a...
    3. How to insert dynamically generated HTML into the <body> of an ASP.NET page?
      I need to generate a "buy" button as part of an ASP.NET page - this consists of a small HTML form with hidden fields, conforming to the requirements...
    4. Insert HTML?
      Is there any way to insert your own html object in Fireworks? Where it shows a box that just says HTML and you double click it to edit a code or...
    5. Calling a html page from an asp page then returning to the next statement on the original asp page
      Hi! I have an ASP page that calls excel to create a report. This works fine. Now I need to call a html calendar page to filter what rows are...
  3. #2

    Default Re: What is the prefered way to insert HTML in a page.

    You can use a PlaceHolder or LiteralControl class to do this.

    HTH,

    Kevin Spencer
    Microsoft FrontPage MVP
    Internet Developer
    [url]http://www.takempis.com[/url]
    Some things just happen.
    Everything else occurs.

    "Blake Versiga" <.> wrote in message
    news:%236rAmTXQDHA.3088@TK2MSFTNGP10.phx.gbl...
    > In ASP you use <% =HtmlString %> but in ASP.NET this can cause some
    problems
    > if you are using page inheritance.
    >
    > What is the prefered way to insert HTML in a page?
    >
    > Thanks
    >
    >

    Kevin Spencer Guest

  4. #3

    Default Re: What is the prefered way to insert HTML in a page.

    Or the Placeholder object, and add literal control to it.

    HTH,

    bill

    "Blake Versiga" <.> wrote in message
    news:#6rAmTXQDHA.3088@TK2MSFTNGP10.phx.gbl...
    > In ASP you use <% =HtmlString %> but in ASP.NET this can cause some
    problems
    > if you are using page inheritance.
    >
    > What is the prefered way to insert HTML in a page?
    >
    > Thanks
    >
    >

    William F. Robertson, Jr. Guest

  5. #4

    Default Re: What is the prefered way to insert HTML in a page.

    You can also create a string property on the base class called HtmlString.

    then, in the .aspx use the same syntax as

    <%=HtmlString%>

    hth,
    Dave
    [url]www.aspNetEmail.com[/url]


    "Blake Versiga" <.> wrote in message
    news:#6rAmTXQDHA.3088@TK2MSFTNGP10.phx.gbl...
    > In ASP you use <% =HtmlString %> but in ASP.NET this can cause some
    problems
    > if you are using page inheritance.
    >
    > What is the prefered way to insert HTML in a page?
    >
    > Thanks
    >
    >

    dave wanta Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139