TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Pankaj Kumar
NA
112
10.2k
How add css in .ashx.cs code behind in asp.net?
Jul 13 2018 1:15 AM
I want to add css class in .ashx page but .aspx Ui page show as string. How to add css in .ashx code behinde page.
I want (Cook) text show in red.
Issue:
try
{
for
(
int
i = 0; i < dsSeaech.Tables[0].Rows.Count; i++)
{
var myString =
new
StringBuilder();
myString.Append(
"<span style=\"color:red\">(Cook)</span>"
);
lstRecipeName.Add(dsSeaech.Tables[0].Rows[i][
"RecipeName"
].ToString());
if
(Convert.ToInt32(dsSeaech.Tables[0].Rows[i][
"UserType"
]) == AppConstant.chefuser)
{
lstChefName.Add(dsSeaech.Tables[0].Rows[i][
"FullName"
].ToString() +
"("
+
"Chef"
+
")"
);
}
else
if
(Convert.ToInt32(dsSeaech.Tables[0].Rows[i][
"UserType"
]) == AppConstant.cook)
{
lstChefName.Add(dsSeaech.Tables[0].Rows[i][
"FullName"
].ToString() + myString);
}
}
JavaScriptSerializer js =
new
JavaScriptSerializer();
context.Response.Write(js.Serialize(lstRecipeName));
}
catch
(Exception ex)
{
throw
ex;
}
Reply
Answers (
1
)
How to install only relevant bootstrap files..?
select only multiple checkbox using inner grid.