Click here to Skip to main content
15,891,253 members
Home / Discussions / C#
   

C#

 
GeneralRe: clean up resource in HttpListenerContext Pin
George_George4-Jun-08 2:58
George_George4-Jun-08 2:58 
GeneralRe: clean up resource in HttpListenerContext Pin
leppie4-Jun-08 3:17
leppie4-Jun-08 3:17 
GeneralRe: clean up resource in HttpListenerContext Pin
George_George4-Jun-08 20:23
George_George4-Jun-08 20:23 
Question[DllImport("pssdk.dll", EntryPoint = "AdpCfgGetAdapterNameW", CharSet = CharSet.Unicode)] Pin
Farhantariq3-Jun-08 22:07
Farhantariq3-Jun-08 22:07 
AnswerRe: [DllImport("pssdk.dll", EntryPoint = "AdpCfgGetAdapterNameW", CharSet = CharSet.Unicode)] Pin
leppie3-Jun-08 22:37
leppie3-Jun-08 22:37 
GeneralRe: [DllImport("pssdk.dll", EntryPoint = "AdpCfgGetAdapterNameW", CharSet = CharSet.Unicode)] Pin
Farhantariq3-Jun-08 23:59
Farhantariq3-Jun-08 23:59 
GeneralRe: [DllImport("pssdk.dll", EntryPoint = "AdpCfgGetAdapterNameW", CharSet = CharSet.Unicode)] Pin
leppie4-Jun-08 0:49
leppie4-Jun-08 0:49 
Questionhow to pass paramters in an httprequest Pin
priy@3-Jun-08 21:20
priy@3-Jun-08 21:20 
Hi,
I have created a webservice and on the client side i want to access it using Httprequest and httpresponse classes.
There are two methods in that webservice.1 method returns a string.the 2nd method requires two integers as input parameters.how do i pass these parameters in the request from the client.
call to Merthod1 from client:
HttpWebRequest myreq = (HttpWebRequest)WebRequest.Create("http://localhost:2054/my_ws/MY_WebService.asmx/HelloWorld");
            myreq.Method = "POST";
            myreq.ContentType = "application/x-www-form-urlencoded";



call to method2 from client:
HttpWebRequest myreq = (HttpWebRequest)WebRequest.Create("http://localhost:2054/my_ws/MY_WebService.asmx/Add");
            myreq.Method = "POST";
            myreq.ContentType = "application/x-www-form-urlencoded";


server side for method2:
[WebMethod]
public int Add(int a, int b) {
    return (a + b);
}

QuestionRe: how to pass paramters in an httprequest Pin
sunspeed3-Jun-08 22:01
sunspeed3-Jun-08 22:01 
AnswerRe: how to pass paramters in an httprequest Pin
priy@3-Jun-08 23:19
priy@3-Jun-08 23:19 
GeneralRe: how to pass paramters in an httprequest Pin
leppie3-Jun-08 23:38
leppie3-Jun-08 23:38 
QuestionHow i can download file from server Pin
wasimsharp3-Jun-08 21:18
wasimsharp3-Jun-08 21:18 
AnswerRe: How i can download file from server Pin
Giorgi Dalakishvili3-Jun-08 21:22
mentorGiorgi Dalakishvili3-Jun-08 21:22 
Questionusercontrol and control and form events Pin
Marcel Vreuls (www.agentbase.nl)3-Jun-08 21:13
Marcel Vreuls (www.agentbase.nl)3-Jun-08 21:13 
AnswerRe: usercontrol and control and form events Pin
sunspeed3-Jun-08 22:13
sunspeed3-Jun-08 22:13 
QuestionImage Comparision.. Pin
tasumisra3-Jun-08 20:07
tasumisra3-Jun-08 20:07 
AnswerRe: Image Comparision.. Pin
John Ad3-Jun-08 20:41
John Ad3-Jun-08 20:41 
GeneralRe: Image Comparision.. Pin
tasumisra3-Jun-08 20:48
tasumisra3-Jun-08 20:48 
GeneralRe: Image Comparision.. Pin
John Ad3-Jun-08 20:51
John Ad3-Jun-08 20:51 
QuestionHow to call a method in every specific seconds? Pin
YAI3-Jun-08 19:52
YAI3-Jun-08 19:52 
AnswerRe: How to call a method in every specific seconds? Pin
Guffa3-Jun-08 20:13
Guffa3-Jun-08 20:13 
AnswerRe: How to call a method in every specific seconds? Pin
dan!sh 3-Jun-08 21:08
professional dan!sh 3-Jun-08 21:08 
Questionttyrywrewe Pin
anujarya_20013-Jun-08 19:34
anujarya_20013-Jun-08 19:34 
AnswerRe: ttyrywrewe Pin
Shree3-Jun-08 19:39
Shree3-Jun-08 19:39 
QuestionFingerprint Reader Pin
Member 47748683-Jun-08 19:08
Member 47748683-Jun-08 19:08 

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.