dissapearing blanks in textbox

Thread Solved

Join Date: May 2009
Posts: 18
Reputation: jimib is an unknown quantity at this point 
Solved Threads: 1
jimib jimib is offline Offline
Newbie Poster

dissapearing blanks in textbox

 
0
  #1
Oct 21st, 2009
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?
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,326
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 162
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso
 
0
  #2
Oct 23rd, 2009
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.
Failure is not an option It's included free
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC