Burman@cool blog's(ASP.NET,SQL SERVER,JavaScript,XML,sharepoint,WCF,SSIS)
Friday, March 1, 2013
How to make textbox Readonly and getting their value
1.On Page Load use code like this
txtyears.Attributes.Add("readonly", "readonly");
txtMonths.Attributes.Add("readonly", "readonly");
2.Now you ca use textbox value simply as u always do
string test=txtyears.text
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment