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
Aman Jen
NA
141
40.6k
Writing And Calling functions with in a form
Aug 27 2013 12:35 AM
Hi,
I am switching from VB to C# and facing a Problem for writing and calling function with in a form.
below is my code:
two textboxes which accepts value to be added and result in third textbox on button click event.
public int Add(int i, int j)
{
int result = i + j;
return result;
}
protected void btnResult_Click(object sender, EventArgs e)
{
int result = Add(tb1.Text, tb2.Text);
tb3.Text =(result);
}
But showing error invalid argument...
Plz help...
Reply
Answers (
2
)
if else logic error
game programming