guys,
I got this sample code on net and want to modify according to my requirement.
i want to Set css style to a string in code behind in c#/asp.net
I have tried in various way but i got no success.
Basically ,i m Searching and highlighting string in the Label
Currently below code is working and search and highlight single string at a time..
But if i moves style sheet along with function(i.e highlight) in code behind . It is does not work.
I want to do search & highlight on multiple string at a time, which is not working it out. Kindly advice and a sample code would be preferred
Aspx page:
<head runat="server">
<title></title>
<style type="text/css">
.highlight {text-decoration:none; font-weight:bold; color:black; background:yellow;}
</style>
</head>
<%--<body bgcolor="#FFFFFF" topmarg ...
Go to the complete details ...