Wednesday, 16 January 2013

Retain the value of a Read-Only Textbox after Postback


Tto retain the value of a readonly textbox after postback use the following line of code:

txtBox.attributes.add(“readonly”,”readonly”);

in the back-end code instead of writing "readonly" in HTML.

1 comment:

  1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Front end developer learn from Javascript Online Training from India . or learn thru JavaScript Online Training from India. Nowadays JavaScript has tons of job opportunities on various vertical industry. Javascript Online Training from India

    ReplyDelete