Use Response Write to output HTML (C#) : Write « Response « ASP.Net






Use Response Write to output HTML (C#)

<%@ Page Language="C#" %>
<html>
<head>
</head>
<body>
    <% Response.Write("Hello!<br/>");%>
    Line1: First HTML Line<br/>
    <% Response.Write("First ASP.NET Line<br />"); %>
    Line2: Second HTML Line<br/>
    <% Response.Write("Second ASP.NET Line<br />"); %>
    Line3: Third HTML Line<br/>
    <% Response.Write("Third ASP.NET Line<br />"); %>
    <% Response.Write("Goodbye!"); %>
</body>
</html>

           
       








Related examples in the same category

1.Writing character output (VB.net)
2.Writing Output (VB.net)
3.Use Response.Write to add HTML (VB.net)