Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HTML in User Input - Handling the Exception
Message
De
29/06/2005 16:26:07
 
 
À
29/06/2005 15:07:26
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
ASP.NET
OS:
Windows 2000 SP4
Database:
MS SQL Server
Divers
Thread ID:
01027271
Message ID:
01027506
Vues:
10
>Al,
>
>You can identify text that resembles a URL with the .NET regular expression parser RegEx. You can find a regular expression that matches URLs at www.regexlib.com. Once you identify the URL, you can enclose it in an href tag and insert the HTML into the .Text of a Label control to render the hyperlink.

Thanks for the RegEx info and the Label technique. That will probably be useful in future. However my users were asking if it could be done for URLs in a read-write TextBox. They're entering research data; at the end of a couple of K of text they're entering references to other research papers, which may include URLs. They were just asking if these could be rendered as hyperlinks within the TextBox.

I don't think it's possible in Read-Write mode, and I don't want to have to manage separate Read-Write and ReadOnly versions of my data entry forms so I'm telling them "no" < g > It's not a big deal for them, anyways.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform