Text box values clearing in Best way Example


Text box values clearing in Best way Example code


texbox1.clear()

don't use textbox1.text=""




If one can use textbox1.text="" then it clears cell but it fill with some empty string which doesn't view by us but whenever storing in to databases that empty string will store in case of NULL value.


Regards
Narayana


Comments

Author: Nisar15 Aug 2010 Member Level: Gold   Points : 1

Normally programmers do the same mistake and then ask why database do not show null values, good raised a solid point. keep posting

Author: Ultimaterengan26 Aug 2010 Member Level: Gold   Points : 0

HI
Really good stuff....

Author: Pal (Parthiv) Patel31 Aug 2010 Member Level: Gold   Points : 1

----------1111111111-------------------
hey
this one is awesome code snippet
keep it up
put good codes and earn money and points
------------!!!!!!!!!!-------------------



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: