Click here to Skip to main content
15,923,120 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

Dear--
Please check below link.

single quotes with in double quotes in c# string[^]
 
Share this answer
 
v2
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);

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