-
Textbox Question
I have a text box in ASP.NET 2.0 that the user is entering search strings in. The search strings are numbers but they need to have the wildcard ablility.
I take in the text pass it to a stored procedure that does a like to it....
So the user enters %23 to get all the items ending in 23 and ASP sends a # to the procedure.
How do I stop this from happening?
-
How is the data stored in the database? You cannot use wildcards with numeric data, only text. To find numeric values ending in 23, try this:
SELECT columns FROM table
WHERE numericColumn % 100 = 23
Phil Weber
http://www.philweber.com
Please post questions to the forums, where others may benefit.
I do not offer free assistance by e-mail. Thank you!
Similar Threads
-
By Matrix.net in forum ASP.NET
Replies: 2
Last Post: 12-12-2007, 09:03 AM
-
Replies: 1
Last Post: 07-07-2006, 05:37 AM
-
By GRapoza in forum VB Classic
Replies: 2
Last Post: 03-30-2006, 03:14 PM
-
Replies: 4
Last Post: 04-27-2005, 08:20 AM
-
By Marat Musaev in forum XML
Replies: 0
Last Post: 11-02-2000, 08:54 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks