.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How to create HTML from XSLT with actual formating

Posted By:      Posted Date: September 01, 2010    Points: 0   Category :ASP.Net
Hi, I am creating HTML script using XSLT using an XML file. I am creating that input XML file from the database values. The database values are contains the data with some html formatting tags like <b>values</b> etc. for Ex:I have the table.EmployeeID CommentsEMP101   Some normal comment with <b>Value with bol</b> I required to create XML file with the fomatted comment, but when I create XML it contains &gt;&lt; etc., like <Employees><Emp id="EMP101"> <Comments>Some normal comment with &lt;b&gt;Value with bol&lt;/b&gt;<Comments></Emp></Employees> When I create HTML using XSLT, the values again contains the &gt;&lt; characters instead of the actual formating what the database stores. Please let me know how to solve this issue. I required the output HTML will be inthe same format what the database stored. Many Thanks,Kelvin.

View Complete Post

More Related Resource Links

XSLT var with html

I've made a var in my XSLT file:<xsl:variable name="VarTeaser">      <xsl:choose>        <xsl:when test="string-length(@URL)>0">          <a href="{@URL}">            <xsl:value-of disable-output-escaping="yes" select="@Teaser"/>          </a>        </xsl:when>        <xsl:otherwise>          <xsl:value-of disable-output-escaping="yes" select="@Teaser"/>        </xsl:otherwise>      </xsl:choose>          </xsl:variable>  But if i print the var like this:<xsl:value-of disable-output-escaping="yes" select="$VarTeaser"/> He prints HTML coding in it like:<BR><SPAN>De Greidhoeke But first if i just don't use the var, but directly put the teaser in it like:<xsl:value-of disable-output-escaping="yes" select="@Teaser"/> He just prints the coding right wi

How to dynamically create HTML file from the code ?

Hi all,Precisely and concisely, I have aspx page that has only one button "Generate". If the user clicked on this button, one HTML page should be created. The created HTML page should have title "Home" and the Body should contain "Hello World". 1) What is the code that should be written inside "Generate" button in order to accomplish this functionality? 2) Assuming the HTML page gets created, How to store it inside specific folder on the local drive? Or how to store it inside DB? I would greatly appreciate any constructive input!

How to create a new Html control which contain multiple html control ?


Hi all,

I am realizing a table with multiple rows for a Sharepoint webpart.

In this project, I would like to have a new html control which contain a LinkHtml in one column and another label in another column.

Essentially this html control would be a row used for my html table.

At the moment i am doing a row like this in the main class :

HtmlTableRow Row = new HtmlTableRow();

            //create colum 1
            HtmlTableCell _Column11 = new HtmlTableCell();
            _Column11.Style.Add(HtmlTextWriterStyle.Width, linkColumnWidth);

            // Create the input textbox
            Label _LinkButton = new Label();
            //_LinkButton.ID = claimsLinkButtonID + contentLabel;
            //_LinkButton.CommandName = IdTask;
            _LinkButton.Text = contentLink;
            //_LinkButton.Style = 

            Label _NumberOfMessagesLabel = new Label();
            _NumberOfMessagesLabel.Text = contentLabel;

            //add the textbox into column 1

            //add column 1 into row 1

            //create column 2
            HtmlTableCell _Column12 = new HtmlTableCell();
            _Column12.Style.Add(HtmlTextWriterStyle.Width, priorityColumnWidth);

            // add the label into colu

Create a Tree view with expand or collapse using XSLT


I have created an XSLT file to show the contents of xml in HTML format in the form of a tree. Now, my requirement is to add expand or collapse capability to this output(html) using XSLT and Javascript. The sample output looks like this:

Resource Center

  • Home
    • Resource Center
    • List of Resource Types
    • Create validation formating


      I want to create a sort of validation formatting (like regex).  It doesn't have to actual validate; just make it easier for the user to enter the correct number of character needed.  I want something like domain: [xxx].[xxx].[xxx] (so it only allows 9 numbers, 2 periods).

      So for instance when the user moves to the field they would be presented with one field with ability to enter 3 numbers.3 numbers.3 numbers

      Any Ideas?  Thanks,


How to create html page to asp.net Page using asp.net , Jquery,XMl

My Html Page
<table id="ritu">
   <tr><td> Name</td> <td><td><td><td></tr>
   <tr><td> Father Name</td> <td><td><td><td></tr>
   <tr><td> Age</td> <td><td>Sex<td><td></tr>

  My Output is
     <asp:lable id="lbl_Name" runat="server/>
    <asp:textbox id="txt_Name runat="Server"/>

   <asp:lable id="lbl_FatherName" runat="server/>
    <asp:textbox id="txt_FatherName" runat="Server"/>

<asp:lable id="lbl_Age" runat="server/>
    <asp:textbox id="txt_Age runat="Server"/>
<asp:lable id="lbl_sex" runat="server/>
    <asp:textbox id="txt_sex runat="Server"/>

Create HTML logout button



Is there a way to create a button that logs a user out (erasing session data) and redirects them using a list tag of this sort:

<li><a href="Login.aspx">Login</a></li>


Create table less HTML/CSS pages


Any pointer to do:

Create table less HTML/CSS pages

Tools to create XSLT


I have a xml document with me and i need to create a XSLT which will transform this xml file to EXCEL file.

Are there any free online tools which creates this XSLT?? 

how to convert simple html to asp.net control( server side useing C#,Jquery,xml,xslt)


input form 
<FORM METHOD=POST ACTION="mailto:someone@$nailmail.com" ENCTYPE="text/plain"> <table border=0 cellspacing=0 cellpadding=2> <tr> <td colspan=2> <font size=2 face="arial" color="#000000"> <INPUT type="text" name=URL size=17 value="http://"> :Your URL<BR> <INPUT type="text" name=user size=17> :Your Username<BR> <INPUT type="text" name=email size=17> :Your E-mail </font> </td> </tr> <tr> <td> <font size=1 face="arial" color="#000000"> <INPUT name=subscribe type=radio value="yes" CHECKED> subscribe<BR> <INPUT name=subscribe type=radio value="no"> unsubscribe<BR> </font> </td> <td> <SELECT name="choices" size=1> <OPTION selected> OPTIONS <OPTION> OPTION 1 <OPTION> OPTION 2 <OPTION> OPTION 3 <OPTION> OPTION 4 <OPTION> OPTION 5 </SELECT> </td> </tr> <tr> <td colspan=2> <font size=1 face="arial" color="#000000"> <INPUT type=checkbox name="html" value="sendme" CHECKED> i can recive email as html<BR> <INPUT type=checkbox name="receipt"

create a html helper for tny mce htlm editor?


how can I create a html helper for tny mce htlm editor?

Video: Use SharePoint Designer 2010 to Create XSLT List View Web Parts

Learn to use SharePoint Designer 2010 to create a XSLT List View Web Part.

How to create buckets on measures from 2 fact tables, i.e variance between actual and budget coming


1. to put the gist of the problem, i am trying to make an expense analysis report that compares my actual with its budget.

2. actual is coming from 1 fact table e.g. fact_general_ledger (grain = voucher number) and budget is coming from another fact table (grain = account [much higher than voucher number])

3. i have to calculate the variance (actual minus budget) at an account grain and make a percentage measure. hence i will get data like

Account     Var%

a1             -115%

a2              -5%

a3              7%

a4              20%

a5              22%

a6              35%

a7              45%

a8              57%

a9              95%

a10      &

2 simple ways to create Custom Html Helper in ASP.NET MVC

ASP.NET MVC facilitates us to create our Custom Html Helper in following simple ways:

1. Creating Extension Method on Html Helper Class
2. Creating Static Methods

ASP.NET, HTML, JavaScript Snippet Support (VS 2010 and .NET 4.0 Series)

This post covers another useful improvement in VS 2010 - HTML/ASP.NET/JavaScript snippet support. Snippets allow you to be more productive within source view by allowing you to create chunks of code and markup that you can quickly apply and use in your application with a minimum of character typing.

Visual Studio has supported the concept of "snippets" for VB and C# in previous releases - but not for HTML, ASP.NET markup and JavaScript. With VS 2010 we now support snippets for these content types as well.

Maintain HTML Radio Button Selection Inside GridView After Postback

Long time ago I wrote an article about getting the value of the selected RadioButtons inside the GridView control. The code did not addresssed the postback issue which means that the selected radio button was cleared after the postback occurs.

How to create 3 tier application using LINQ

As you know that in 3 tier architecture there are three layers

User interface layer. (Is our Form in Windows application and .aspx page in Web application)
Data Access layer. (Which provides interface between Business logic layer and Database)
Business Logic layer.(Which stores your application logic)
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend