Click here to Skip to main content
15,905,144 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i am useing visual studio2008,
and store data
textbox.text=<abc>;

but its throw error, how i add this type data in textbox or if i want to replace or add some other symbol in run time, how i add this

textbox.text=\<abc\>

please help
Posted
Comments
Jignesh Khant 16-Oct-13 2:16am    
You can try place your value in double quotes("") like textbox.text="\<abc\>"

if you want to add any data on runtime then on pageload
textBox1.text="abc";
 
Share this answer
 
v2
hello Professional

Simple Buddy

The Most Important Thing always Use "" quotes for Storing String Values Directly


First Define a String Date type variable and
hold the value on it
like
String Value="\<abc\>";

and then
textbox.text=Value;

Or You Can Directly Hold the value from where u getting like this..

textbox.text="\<abc\>";

any Query Frankly Let me know


Happy To Help!!!
 
Share this answer
 
v3
C#
protected void Page_Load(object sender, EventArgs e)
{
    if(!IsPostBack)
        textbox.Text = "Enter Your Name Here";
}
 
Share this answer
 
You may try your code as:

C#
textbox.text= @"\<abc\>";


Happy to help!!!
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900