Click here to Skip to main content
15,903,012 members
Home / Discussions / C#
   

C#

 
AnswerRe: c# binary to decimal code -new- Pin
KP Lee10-Oct-11 14:51
KP Lee10-Oct-11 14:51 
GeneralRe: c# binary to decimal code -new- Pin
Peter_in_278011-Oct-11 12:41
professionalPeter_in_278011-Oct-11 12:41 
GeneralRe: c# binary to decimal code -new- Pin
KP Lee11-Oct-11 13:55
KP Lee11-Oct-11 13:55 
QuestionGood reporting and database tools for C# ? Pin
Stan Moong5-Oct-11 18:22
Stan Moong5-Oct-11 18:22 
AnswerRe: Good reporting and database tools for C# ? Pin
Eddy Vluggen6-Oct-11 6:55
professionalEddy Vluggen6-Oct-11 6:55 
GeneralRe: Good reporting and database tools for C# ? Pin
Stan Moong6-Oct-11 14:31
Stan Moong6-Oct-11 14:31 
QuestionCall Methods Across ActiveSync Connection Pin
namelkcip5-Oct-11 17:02
namelkcip5-Oct-11 17:02 
QuestionBasic c# question Pin
SFORavi5-Oct-11 13:22
SFORavi5-Oct-11 13:22 
Hi

I am trying to build a calculator and use a WCF web service to do the math part. I need to pass the two integer arguments to my web service.

I defined the numbers on calculator as buttons.

Now I need to pass input to web service based on the two values clicked on calculator.

Can you please tell me how do I get the values into the button1 click event based on button4 and bitton 2. ( For now I just have two numbers on calculator..)

C#
public partial class Calculator : System.Web.UI.Page
    {
        private int i, j;

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {

            MathClient client = new MathClient();


            try
            {
                int ii = client.Add(5, 6);
                Result.Text = Convert.ToString(ii);
            }
            catch (Exception ex)
            {
                Result.Text = ex.Message;
            }


        }

        protected void Button3_Click(object sender, EventArgs e)
        {
            int i, j;
            i = 4;
            j = 4;
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            int i, j = 4;
        }
    }

AnswerRe: Basic c# question Pin
BillWoodruff5-Oct-11 14:08
professionalBillWoodruff5-Oct-11 14:08 
QuestionGetting system specs without WMI Pin
CCodeNewbie5-Oct-11 9:30
CCodeNewbie5-Oct-11 9:30 
AnswerRe: Getting system specs without WMI Pin
Luc Pattyn5-Oct-11 10:26
sitebuilderLuc Pattyn5-Oct-11 10:26 
GeneralRe: Getting system specs without WMI Pin
CCodeNewbie5-Oct-11 11:03
CCodeNewbie5-Oct-11 11:03 
GeneralRe: Getting system specs without WMI Pin
Dave Kreskowiak5-Oct-11 15:44
mveDave Kreskowiak5-Oct-11 15:44 
GeneralRe: Getting system specs without WMI Pin
CCodeNewbie5-Oct-11 19:25
CCodeNewbie5-Oct-11 19:25 
GeneralRe: Getting system specs without WMI Pin
Dave Kreskowiak6-Oct-11 3:39
mveDave Kreskowiak6-Oct-11 3:39 
QuestionFor Remote Connection -SQL Server Pin
Paramu19735-Oct-11 4:21
Paramu19735-Oct-11 4:21 
AnswerRe: For Remote Connection -SQL Server Pin
PIEBALDconsult5-Oct-11 5:22
mvePIEBALDconsult5-Oct-11 5:22 
GeneralRe: For Remote Connection -SQL Server Pin
Paramu19735-Oct-11 19:30
Paramu19735-Oct-11 19:30 
QuestionAccessing the controls in selected area Pin
teknolog1235-Oct-11 3:59
teknolog1235-Oct-11 3:59 
AnswerRe: Accessing the controls in selected area PinPopular
Pete O'Hanlon5-Oct-11 4:16
mvePete O'Hanlon5-Oct-11 4:16 
GeneralRe: Accessing the controls in selected area Pin
teknolog1235-Oct-11 4:49
teknolog1235-Oct-11 4:49 
GeneralRe: Accessing the controls in selected area Pin
Pete O'Hanlon5-Oct-11 4:52
mvePete O'Hanlon5-Oct-11 4:52 
QuestionAbout Control panel functions Pin
ugdjan5-Oct-11 3:10
ugdjan5-Oct-11 3:10 
AnswerRe: About Control panel functions Pin
Luc Pattyn5-Oct-11 4:08
sitebuilderLuc Pattyn5-Oct-11 4:08 
QuestionFingerprint Capture / dialog Pin
Member 76779895-Oct-11 2:29
Member 76779895-Oct-11 2:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.