Home > SQL Development > To get the Contents of a TextBox in HTML

To get the Contents of a TextBox in HTML



<i><b>Originally posted by : asif (asifsaud@hotmail.com)</b></i><br /><br />I need to post the contents of a multiline TextBox of ASPX in the form of HTML into the database.To be more Specific, I need to add in a <'br> taq for every new row from the multiline text Box.This is because I need the contents taken back from the database at the time of display to be displayed( Label or Span or anything else) exactly the way it was entered (multiline TextBox).If anyone has a solution for this please let me know.<br /><br />thanx,<br />Asif

    
Guest


<i><b>Originally posted by : klchan (klchan05@hotmail.com)</b></i><br />No need to add in the <BR> tag.<br />Just use this: <br /><br /><%=server.htmlEncode(strTextBox)%><br /><br /><br /><br />------------<br />asif at 4/16/2001 8:03:34 AM<br /><br /><br />I need to post the contents of a multiline TextBox of ASPX in the form of HTML into the database.To be more Specific, I need to add in a <'br> taq for every new row from the multiline text Box.This is because I need the contents taken back from the database at the time of display to be displayed( Label or Span or anything else) exactly the way it was entered (multiline TextBox).If anyone has a solution for this please let me know.<br /><br />thanx,<br />Asif

Was this answer helpful ? Yes No   
Guest
 
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2008 by Infoqu. All rights reserved