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
tom linker
NA
87
76k
Int32.parse method
Aug 27 2012 10:24 AM
private void button1_Click(object sender, EventArgs e)
{
long i = Int64.Parse(textBox1.Text);
MessageBox.Show(i.ToString());
}
In This code, If we pass the textBox value in interger type, It's return integer value just like
textBox1.text=23 return 23.
But if we enter string type value in textBox, it's fire exception, as like
textBox1.text="Tom".
Why?
Reply
Answers (
8
)
Printing from selected printer using javascript?
Need 1.5 years of experience dot net interview questions?