Bellow is the code i am using to connect to a webservice that i created that has basic math web methods like add, subtract, etc... this is the button for my windowsform app that connects to the webservice it has 2 text boxes a label to display the answer and a button thus the code below. I am getting the dreaded cannot convert from 'string' to 'int' I tried using convert or int.parse but i am having trouble how i would properly do this.
private void addbutton_Click(object sender, System.EventArgs e)
{
iis.useractive.rsummey.Service1 theWebService = new iis.useractive.rsummey.Service1();
int results = theWebService.Add(textBoxAddNum1.Text, textBoxAddNum2.Text);
labelAddAnswer.Text = results.ToString();
}
Thank you !