944,123 Members | Top Members by Rank

Ad:
Oct 21st, 2009
0

dissapearing blanks in textbox

Expand Post »
HTML and CSS Syntax (Toggle Plain Text)
  1. <%@ Page Language = "VB" aspcompat=true Explicit="True"%>
  2. <%Dim src As String = " bet "%>
  3.  
  4. <html>
  5. <head ></head>
  6. <body >
  7.  
  8. <form name=loc action=testsac.aspx method=get>
  9. <table class=s0 width=100% cellpadding=1 cellspacing=1 align=center border=1>
  10. <tr class=s0 align=center>
  11. <td>
  12. Search For:
  13. <input class=s0 size=50 name=src value=<%=src%>>
  14. <input class=s0 type=submit value=Search />
  15. <td></td>
  16. </tr>
  17. </table>
  18. </form>
  19.  
  20. </body>
  21. </html>

on the screen, "bet" is the search string, but I want " bet "
any ideas?
Similar Threads
Reputation Points: 10
Solved Threads: 1
Newbie Poster
jimib is offline Offline
23 posts
since May 2009
Oct 23rd, 2009
0
Re: dissapearing blanks in textbox
HTML and CSS Syntax (Toggle Plain Text)
  1. <%@ Page Language = "VB" aspcompat=true Explicit="True"%>
  2. <%Dim src As String = " bet "%>
you knew to quote values up there , , , but, ,
HTML and CSS Syntax (Toggle Plain Text)
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. </head>
  5. <body >
  6. <form name='loc' action='testsac.aspx' method='get'>
  7. <table class='s0' width='100%' cellpadding='1px' cellspacing='1em' align='center' border='1px'>
  8. <tr class='s0' align='center'>
  9. <td>
  10. Search For:
  11. <input class='s0' size='50' name='src' value='<% =src %> '>
  12. <input class='s0' type='submit' value='Search'>
  13. <td> </td>
  14. </tr>
  15. </table>
  16. </form>
  17. </body>
  18. </html>
Values are quoted in html,
measurements other than zero have a dimension
/> is Xhtml and may cause errors in html

for code problems where the solution doesnt jump out and bite you, plug the code into http://validator.w3.org/ and let it find the problems
Last edited by almostbob; Oct 23rd, 2009 at 12:28 pm.
Reputation Points: 562
Solved Threads: 369
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Background Image for header_inner help!
Next Thread in HTML and CSS Forum Timeline: problem with text field and submit button





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC