Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
string s = "<font style=\"Bold\" size=\"12\" face=\"Times New Roman, Helvetica, sans-serif\">" + "Daily MeatSale Graph - " + Request.QueryString["branchname"].ToString() + "</font>";




please help me...
Posted

you can't do it like this.

try like this...

aspx page

.BranchCss{
<pre lang="css">text-decoration: underline;
font-size: 12px;
font-family: arial;
font-weight: bold;
color: #EB8227</pre>;

}



<asp:label id="lblBranch" runat="server" text="" xmlns:asp="#unknown">

aspx.cs page

string strBranch = Request.QueryString["branchname"].ToString();
lblBranch.Text = strBranch;
lblBranchCssClass = "BranchCss";
 
Share this answer
 
Comments
[no name] 22-Jul-14 1:02am    
your guess is right, but i want to display This as Chart


string s = "Daily MeatSale Graph - " + Request.QueryString["branchname"].ToString();
Chart1.ChartAreas[0].AxisX.Title = "Dates";
Chart1.ChartAreas[0].AxisY.Title = "Meat In Kgs";
Chart1.Titles.Add(s);
Dear--
Please check below link.

single quotes with in double quotes in c# string[^]
 
Share this answer
 
v2

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