Can anybody help me on the following problem?
On my asp.net webpages I would like to have certain words created into a hyperlink which when clicked on would pop up a small window to show the definition of that word. As there may be lots of words with definitions, I would like to make this as easy as possible.
Thank you.
Loading
Mubbasher MukhtarPosted Oct 7, 2008, 1:14 AM
string vResult = System.Text.RegularExpressions.Replace("This is is a text", "is", "is");
Javascript option:
document.body.innerHTML.replace("is","is");
C# option is better for security concerns & but javscript option is better to avoid load on server. But client may have Javscript disabled.
Your Choose !
Vijaya KadiyalaPosted Oct 6, 2008, 3:47 PM
Hi
This is can be implemented if you do slight modifications to the data which you are getting from database.
ex: if you are getting "C# is good" from database and if you have one table which has all the for which you want to have Hyperlink in your front end. Now before you display this information look in this table and see if there are any hyperlinks associated with this or not then display. Like
C# is good
Thanks -- Vj
http://dotnetvj.blogspot.com
http://oravj.blogspot.com