hey guys i have a text box named txtunits in which i want to set a default value 1 in that text box
can u help me guyz?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Najjaf ShujaPosted Jun 5, 2015, 3:31 AM
Pankaj Kumar ChoudharyPosted Jun 4, 2015, 8:08 PM
{
textBox1.Text = "12345";
}
{ if(textBox1.Text.Length==0)
textBox1.Text = "12345";
}
Manoj BhoirPosted Jun 4, 2015, 1:34 PM
{
if (((Telerik.WinControls.UI.RadTextBoxControl)sender).Text == "")
{
((Telerik.WinControls.UI.RadTextBoxControl)sender).Text = "1";
}
}
Abhay SinghaniaPosted Jun 4, 2015, 1:12 PM
Manoj BhoirPosted Jun 4, 2015, 1:07 PM
{
if (((TextBox)sender).Text == "")
{
((TextBox)sender).Text = "1";
}
}