Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have two Problem related with Web Services by using visual studio..

[WebMethod(Description = "Matrix")]
public decimal[] matrixMethod(decimal num1, decimal num2, decimal num3, decimal num4, decimal num5)
{

    decimal[] a;
    a = new decimal[5];

    a[0] = 1 / num1;
    a[1] = 1 / num2;
    a[2] = 1 / num3;
    a[3] = 1 / num4;
    a[4] = 1 / num5;

    return a;
}
  1. How can we use result comes out from a WebMethod ("Matrix") used in another WebMethod for further calculation.

  2. Is there is any way two create a dynamic text-boxes in Web Services for use input as i know in ASP.Net Web Services we have to pass a parameter in method for user input, but i want if user enter 4 then 4 text-boxes should be created and if he/she enter 8 then 8 text-boxes are created and the values entered in these text-boxes produces some result.

share|improve this question

2 Answers 2

  1. Use the result of a web service exactly like you would use the result of any other method.

  2. Web services have nothing to do with text boxes. You have to do text box stuff in a web page.

share|improve this answer

1) you can use ppublic variables for multiple functions.

2) you can create any number of textboxes using javascript. If you need it only for storing values you can use arrays for dynamic storage.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.