Click here to Skip to main content
16,009,156 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
dear sir,

I have work with string builder class within style sheet applying Error,
how to styles apply HTML tag
inside string builder class using c#


Error is,
Data at the root level is invalid. Line 1, position 1.

what i do?
give me solution or alternate solution?
Posted
Comments
#realJSOP 16-Dec-11 11:02am    
Show us the code and precisely what's wrong.
Sergey Alexandrovich Kryukov 16-Dec-11 11:03am    
Gibberish, voted 1. Use "Improve question". What's the use of error message without source code?
Alternative to what?
--SA
#realJSOP 16-Dec-11 11:09am    
He wants an alternative to the original solution, so in other words, he wants a minimum of two solutions from each person that responds.

1 solution

You can try like

public string returnTest()
{

StringBuilder S= new StringBuilder();

s="<p style="Color:red">Show</p>"

return s.toString()
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900