Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a label .label text property contain "E&O.E" text
but when run my windows page then it look. EO.E
but i want to show actual data.
Posted

hiii,

type label text as "E&&O.E"
 
Share this answer
 
Comments
Shambhoo kumar 10-Sep-12 1:56am    
Thanks....
:)

Regard
Sham
Ganesh Nikam 10-Sep-12 3:11am    
always Welcome
HI,

Escape it with another ampersand (&&).

C#
private void button1_Click(object sender, EventArgs e)
       {
           label1.Text = "E&&O.E";
       }





Thanks!!!
 
Share this answer
 
Comments
Shambhoo kumar 10-Sep-12 1:56am    
Thanks....
:)

Regard
Sham
Try:
C#
private void button1_Click(object sender, EventArgs e)
{
     label1.Text = @"E&O.E";
}

OR
C#
private void button1_Click(object sender, EventArgs e)
{
     label1.Text = "E&O.E";
}
 
Share this answer
 
v2
Comments
Shambhoo kumar 10-Sep-12 1:56am    
Thanks....
:)

Regard
Sham
Sandeep Mewara 10-Sep-12 2:16am    
Welcome.

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