skip to main | skip to sidebar

asp tech blog

Monday, September 12, 2005

retain value of password filed when postback

use this code:

If(IsPostBack)
{
this.txtFedTaxID.Attributes["value"] = txtFedTaxID.Text;
this.txtFedTaxID2.Attributes["value"] = txtFedTaxID2.Text;
}
"txtFedTaxID.Text = txtFedTaxID.Text" won't work for the password field.
Posted by GD_V3 at 7:46 AM

1 comment:

Ymoon Yeemun Oon 温绮雯 said...

are these just your personal notes or are these tips to public? So much effort you put in....

7:57 AM

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Link

  • Avinash's blog

Blog Archive

  • ►  2010 (4)
    • ►  November (1)
    • ►  October (1)
    • ►  August (1)
    • ►  February (1)
  • ►  2009 (6)
    • ►  November (2)
    • ►  May (2)
    • ►  April (2)
  • ►  2008 (3)
    • ►  October (1)
    • ►  April (1)
    • ►  January (1)
  • ►  2007 (10)
    • ►  December (1)
    • ►  November (1)
    • ►  October (2)
    • ►  August (5)
    • ►  July (1)
  • ►  2006 (11)
    • ►  November (1)
    • ►  October (1)
    • ►  May (4)
    • ►  April (2)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ▼  2005 (19)
    • ►  December (1)
    • ►  November (1)
    • ▼  September (4)
      • using C++ dll in C#
      • loop webcontrols in a page, and disable them all
      • add a blank entry to the databind dropdownlist
      • retain value of password filed when postback
    • ►  August (2)
    • ►  July (3)
    • ►  April (1)
    • ►  March (1)
    • ►  February (2)
    • ►  January (4)
  • ►  2004 (15)
    • ►  December (8)
    • ►  November (7)

About Me

GD_V3
View my complete profile