Click here to Skip to main content
15,890,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hiiiiii....


error

Label1.Text="Name":+ TextBox1.Text+
Date Of Birth:+Calender1.Selected Date.ToString("dd/mm/yyyy");
Posted
Updated 12-Feb-14 19:09pm
v2
Comments
JoCodes 13-Feb-14 1:11am    
Whats the error?
harshavardhan12345678 13-Feb-14 1:12am    
Label1.Text="Name":+ TextBox1.Text+<br/> "Date Of Birth:"+Calender1.Selected Date.ToString("dd/mm/yyyy");
JoCodes 13-Feb-14 1:17am    
Check the solution added.

Date Of Birth: is not enclosed in quotation marks like this: "Date Of Birth:"
 
Share this answer
 
Change it like

Label1.Text="Name:"+ TextBox1.Text+
"Date Of Birth:"+Calender1.SelectedDate.ToString("dd/mm/yyyy");
 
Share this answer
 
Change the code to...
C#
Label1.Text = "Name:" + TextBox1.Text + "<br/>Date Of Birth:" + Calender1.Selected Date.ToString("dd/mm/yyyy");
 
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