Question: You have created a Web service named 'Service1'. The client application of 'Service1' has a textbox called 'textbox1' and you want to set the value of textbox1.text as UserAgent of 'Service1'. Which code will you apply to accomplish this?
A
B
C
D
localhost.Service1.UserAgent = this.textBox1.Text;
B
localhost.Service1 s = new localhost.Service1();
s.UserAgent = this.textBox1.Text;
C
localhost.Service1.UserAgent ua = new localhost.Service1.UserAgent();
ua.value = this.textBox1.Text;
D
None of these
Note: Answer not sure