| | |
dissapearing leading and trailing blanks in textbox
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: May 2009
Posts: 18
Reputation:
Solved Threads: 1
could be this is an HTML problem, but I'll take the help anywhere I can find it...
on the screen, "bet" is the search string, but I want " bet "
any ideas?
ASP Syntax (Toggle Plain Text)
<% @ Page Language = "VB" aspcompat=true Explicit="True" Dim src As String = " bet " %> <html> <head ></head> <body > <form name=loc action=testsac.aspx method=get> <table class=s0 width=100% cellpadding=1 cellspacing=1 align=center border=1> <tr class=s0 align=center> <td> Search For: <input class=s0 size=50 name=src value=<%=src%>> <input class=s0 type=submit value=Search /> <td></td> </tr> </table> </form> </body> </html>
on the screen, "bet" is the search string, but I want " bet "
any ideas?
•
•
Join Date: Sep 2009
Posts: 12
Reputation:
Solved Threads: 3
0
#2 Oct 21st, 2009
Try this:
Not sure if it will solve your problem, but it appears as though it is being trimmed (trim())...
ASP Syntax (Toggle Plain Text)
Dim src As String = Chr(32) & "bet" & Chr(32)
Not sure if it will solve your problem, but it appears as though it is being trimmed (trim())...
•
•
Join Date: May 2009
Posts: 18
Reputation:
Solved Threads: 1
0
#3 Oct 21st, 2009
•
•
•
•
Try this:
ASP Syntax (Toggle Plain Text)
Dim src As String = Chr(32) & "bet" & Chr(32)
Not sure if it will solve your problem, but it appears as though it is being trimmed (trim())...
•
•
Join Date: Sep 2009
Posts: 12
Reputation:
Solved Threads: 3
1
#4 Oct 21st, 2009
Okay I see your issue now...
It worked for me in Firefox 3.5
ASP Syntax (Toggle Plain Text)
<html> <head ></head> <body > <form name=loc action=testsac.aspx method=get> <table class=s0 width=100% cellpadding=1 cellspacing=1 align=center border=1> <tr class=s0 align=center> <td> Search For: <input class=s0 size=50 name=src value=" <%=src %> "> <input class=s0 type=submit value=Search /> <td></td> </tr> </table> </form> </body> </html>
It worked for me in Firefox 3.5
Last edited by sinnerFA; Oct 21st, 2009 at 8:14 pm.
•
•
Join Date: May 2009
Posts: 18
Reputation:
Solved Threads: 1
0
#5 Oct 21st, 2009
I solved this problem myself.
The answer is:
instead of
The answer is:
ASP Syntax (Toggle Plain Text)
<input size=50 name=src value="<%=src%>">
ASP Syntax (Toggle Plain Text)
<input size=50 name=src value=<%=src%>>
![]() |
Similar Threads
- javascript not interpreting php return variable (JavaScript / DHTML / AJAX)
- Read a specific value from a file (C)
- How to configure GD (PHP)
- php.ini confusion (PHP)
- Data reading with Python (Python)
- help, large numbers (C++)
- hello i have a problem (VB.NET)
- Wordf Macro for Indexing (Visual Basic 4 / 5 / 6)
Other Threads in the ASP Forum
- Previous Thread: ASP to ASP.NEt
- Next Thread: embedding objects in excel
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection connection database databaseconnection dreamweaver excel fso iis msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption single specfic sqlserver sqlserverconnection windows7





