TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Estefania Llorente
NA
3
4.8k
Convert string to unknown type
Aug 31 2010 9:08 AM
Hi,
I'm designing a web application and I have a field that comes from a db which has its own type. To show the content of this field on the web, I can type:
this.textbox.Value = MyObject.Field.ToString();
But I don't know how to put the value back from the textbox into the field.... if I try to do this:
MyObject.Field = this.textbox.value
It complains it can't convert from string into MyObject.Field.Type, and it does not allow a cast.
What can I do??
Thanks!!
Reply
Answers (
3
)
Focus Color on Textbox controls
XML serialize multiple classes