Sponsored Ad

Tuesday, May 25, 2010

HTML Formatting Through ASP-C#

HTML Formatting Through ASP-C#

 

While designing and coding ASP.NET Page, Sometimes there is a requirement of C# code written in ASPX page and contains HTML formatting.

This code helps you to achive the same. The First statement for H2-Heading 2 implementation.

Second statement format the paragraph HTML tag and assign a color to it.

 

HTML Formatting Through ASP-C# Example :

<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >

<html>
<body>
<%
Response.Write("<h2>H2 - Heading 2 formatting with ASP-C# code </h2>");
%>

<%
Response.Write("<p style='color:#0000ff'> Paragraph formatting with ASP-C# code</p>");
%>
</body>
</html>

0 comments:

Post a Comment

Sponsored Ad

More Related Articles

Website Update

Followers