Type Casting of label in to textbox [Resolved]

Posted by Mcadeepuraj under ASP.NET on 3/7/2011 | Points: 10 | Views : 2458 | Status : [Member] | Replies : 8
there is a label and a text box, can we type cast label into textbox, if yes then how, if no then why?

Deepak Kumar


Responses

Posted by: Gsolvers on: 3/7/2011 [Member] Starter | Points: 50

Up
0
Down

Resolved
CType(System.Web.UI.WebControls.Label, System.Web.UI.WebControls.TextBox)

Best Regards,

VG
www.TeacherJi.com

Mcadeepuraj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gsolvers on: 3/7/2011 [Member] Starter | Points: 25

Up
0
Down
What actually want to do? Do you want to get the value of label to textbox? or type cast the control itself?

Best Regards,

VG
www.TeacherJi.com

Mcadeepuraj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Mcadeepuraj on: 3/7/2011 [Member] Starter | Points: 25

Up
0
Down
ype cast the control itself?

Deepak Kumar

Mcadeepuraj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 3/7/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Please post your requirement bit brief!!!

Thanks
Karthik
www.f5Debug.net

Mcadeepuraj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Mcadeepuraj on: 3/7/2011 [Member] Starter | Points: 25

Up
0
Down
type cast the control itself?

Deepak Kumar

Mcadeepuraj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Mcadeepuraj on: 3/7/2011 [Member] Starter | Points: 25

Up
0
Down
Actaully this question is asked in a interview,

Deepak Kumar

Mcadeepuraj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Mcadeepuraj on: 3/7/2011 [Member] Starter | Points: 25

Up
0
Down
what should be the answer

Deepak Kumar

Mcadeepuraj, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gsolvers on: 3/7/2011 [Member] Starter | Points: 25

Up
0
Down
Sounds good!

Best Regards,

VG
www.TeacherJi.com

Mcadeepuraj, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response