Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HTML in User Input - Handling the Exception
Message
From
29/06/2005 16:26:07
 
 
To
29/06/2005 15:07:26
Keith Payne
Technical Marketing Solutions
Florida, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
OS:
Windows 2000 SP4
Database:
MS SQL Server
Miscellaneous
Thread ID:
01027271
Message ID:
01027506
Views:
11
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform