hi
can any one help me
how to call the css class in code behind(c#)
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vincent Maverick DuranoRank #238 · 10.3K reputationPosted May 20, 2015, 5:54 AM EDT
Use Literal control when generating html from the server.
<asp:Literal ID="Literal1" runat="server">asp:Literal>
Then in your code you can do:
protected void Page_Load(object sender, EventArgs e) {
string myString = " R ";
Literal1.Text = myString;
}
Vincent Maverick DuranoRank #238 · 10.3K reputationPosted May 20, 2015, 6:24 AM EDT
Nanhe SiddiqueRank #1,103 · 1.7K reputationPosted May 19, 2015, 4:17 AM EDT
Vincent Maverick DuranoRank #238 · 10.3K reputationPosted May 19, 2015, 5:53 AM EDT
Ravi KumarRank #2,085 · 690 reputationPosted May 20, 2015, 5:21 AM EDT
myString =" R ";
string currencyString = myString + Convert.ToString(price);
R
if should show only RRavi KumarRank #2,085 · 690 reputationPosted May 20, 2015, 6:01 AM EDT