how to set textbox control is editable and non editable in the page load
for example::
if txtname.text.trim().length >0
{
txtname.readonly=false;
}
else
{
txtname.readonly=true;
}
Plz Help me as early as possiable .... urgent guyss help me
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Khargesh RajputRank #616 · 3.9K reputationPosted Feb 5, 2015, 11:12 PM EST
{
txtname.readonly=false;
}
else
{
txtname.readonly=true;
}
or
if (txtname.text!="")
{
txtname.enabled=true;
}
else
{
txtname.enabled=false;
}
Khargesh RajputRank #616 · 3.9K reputationPosted Feb 5, 2015, 10:15 PM EST
now what is the question ,i am not getting you.
krishna angirekula59 reputationPosted Feb 5, 2015, 10:39 PM EST
krishna angirekula59 reputationPosted Feb 5, 2015, 10:39 PM EST
krishna angirekula59 reputationPosted Feb 5, 2015, 10:39 PM EST