Add a block of HTML to my asp.net page

  • Thread starter Thread starter TPS
  • Start date Start date
T

TPS

I want to add a block of html to asp.net page.

How can I add the HTML to a certain location on my page.

Thanks.

TPS
 
Create a user control

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
----------------------------------------------------------------------------
------------------------------------
<blatant plug>
Professional .NET for Java Developers with C#- ISBN: 1-861007-91-4
Professional Windows Forms - ISBN: 1861005547
Professional JSP 2nd Edition - ISBN: 1861004958
Professional JSP - ISBN:
1861003625
Beginning JSP Web Development - ISBN: 1861002092
</blatant plug>
 
At design time or run time?
At design time you could create & use a user control.
At run time you could fill in a placeholder control or maybe a panel.
 
I've found you can either bind <%# test %> or use the old style <%=
test %> to output html.

<stript>...

public string test = "<p> Hello World </p>";

</stript>


<html> .....


<%= test %>

</html>
 
Back
Top