Click here to Skip to main content
15,914,111 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionValidation vs Business Rules (client side vs server side) Pin
Rahul Rajat Singh4-Jun-12 1:02
professionalRahul Rajat Singh4-Jun-12 1:02 
AnswerRe: Validation vs Business Rules (client side vs server side) Pin
jkirkerx4-Jun-12 7:59
professionaljkirkerx4-Jun-12 7:59 
Questionasp.net Pin
manoja medaramitla4-Jun-12 0:38
manoja medaramitla4-Jun-12 0:38 
AnswerRe: asp.net Pin
Rahul Rajat Singh4-Jun-12 1:02
professionalRahul Rajat Singh4-Jun-12 1:02 
AnswerRe: asp.net Pin
taha bahraminezhad Jooneghani4-Jun-12 9:52
taha bahraminezhad Jooneghani4-Jun-12 9:52 
AnswerRe: asp.net Pin
vvashishta4-Jun-12 22:13
vvashishta4-Jun-12 22:13 
Generalasp.net and c# Pin
sathik174-Jun-12 0:34
sathik174-Jun-12 0:34 
AnswerRe: asp.net and c# Pin
Rahul Rajat Singh4-Jun-12 1:04
professionalRahul Rajat Singh4-Jun-12 1:04 
GeneralRe: asp.net and c# Pin
Pankaj Nikam4-Jun-12 19:27
professionalPankaj Nikam4-Jun-12 19:27 
QuestionDisplay Excel File in .aspx Page Pin
paas1-Jun-12 4:53
paas1-Jun-12 4:53 
AnswerRe: Display Excel File in .aspx Page Pin
Ravi Sant3-Jun-12 18:29
Ravi Sant3-Jun-12 18:29 
QuestionShow MS Lync presence in aspx web page Pin
meetprabhum1-Jun-12 3:32
meetprabhum1-Jun-12 3:32 
QuestionASP.Net Logout issue Pin
berba1-Jun-12 2:47
berba1-Jun-12 2:47 
AnswerRe: ASP.Net Logout issue Pin
keyur satyadev2-Jun-12 1:10
keyur satyadev2-Jun-12 1:10 
AnswerRe: ASP.Net Logout issue Pin
taha bahraminezhad Jooneghani3-Jun-12 2:19
taha bahraminezhad Jooneghani3-Jun-12 2:19 
AnswerRe: ASP.Net Logout issue Pin
thatraja4-Jun-12 17:13
professionalthatraja4-Jun-12 17:13 
AnswerRe: ASP.Net Logout issue Pin
august_star4-Jun-12 21:28
august_star4-Jun-12 21:28 
Question2010 web form problem Pin
sc steinhayse31-May-12 11:22
sc steinhayse31-May-12 11:22 
AnswerRe: 2010 web form problem Pin
R. Giskard Reventlov31-May-12 15:20
R. Giskard Reventlov31-May-12 15:20 
AnswerRe: 2010 web form problem Pin
taha bahraminezhad Jooneghani3-Jun-12 2:48
taha bahraminezhad Jooneghani3-Jun-12 2:48 
Questioncalling a function from a hyperlink Pin
wiins31-May-12 8:08
wiins31-May-12 8:08 
AnswerRe: calling a function from a hyperlink Pin
jkirkerx31-May-12 13:30
professionaljkirkerx31-May-12 13:30 
GeneralRe: calling a function from a hyperlink Pin
wiins31-May-12 22:15
wiins31-May-12 22:15 
GeneralRe: calling a function from a hyperlink Pin
jkirkerx1-Jun-12 6:57
professionaljkirkerx1-Jun-12 6:57 
I see things like that in news reports, or wikipedia, in which a term will be presented within an article of explanation, and you can click on that term, to go to a detailed explanation of that term.

I don't know if I'm on the right track here, but this is what I know about it.

Example:
<p>Oligarchy (from <a href="/wiki/Greek_language" title="Greek language">Greek</a> <span xml:lang="grc" lang="grc">ὀλιγαρχία</span> (oligarkhía); from ὀλίγος (olígos), meaning "a few", and ἄρχω (archo), meaning "to rule or to command")<sup id="cite_ref-0" class="reference"><a href="#cite_note-0"><span>[</span>1<span>]</span></a></sup><sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span>[</span>2<span>]</span></a></sup><sup id="cite_ref-2" class="reference"><a href="#cite_note-2"><span>[</span>3<span>]</span></a></sup> is a form of <a href="/wiki/Power_structure" title="Power structure">power structure</a> in which <a href="/wiki/Political_power" title="Political power" class="mw-redirect">power</a> effectively rests with a small number of people. These people could be distinguished by royalty, wealth, family ties, education, corporate, or military control. Such states are often controlled by a few prominent families who pass their influence from one generation to the next.</p>

To the best of my knowledge, the example is created in something like ckEditor, in which the content is composed online, and selected words are highlighted, and a custom control button is clicked to wrap the word with a HTML tag, that provides a pre-selected function or formatting feature.

However, it is done in Javascript, inside the editor during creation. To automatically pick out words, and wrap them in HTML tags, it can be done server side, in which you would have to iterate through the words, find the start and stop of the word position number, and replace the word with an HTML tag wrapped version of the word.

If you need to do it on the server side with raw text, you could check for the word, and do a replace.
if (string.contains("raw word") {
    string.replace("raw word", "<a href="word.aspx">raw word</a>)
}

GeneralRe: calling a function from a hyperlink Pin
wiins8-Jun-12 4:46
wiins8-Jun-12 4:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.