Click here to Skip to main content
15,912,977 members
Home / Discussions / WPF
   

WPF

 
QuestionDrag and Drop Feature in Silverlight Media Player Control Pin
pavanip20-Mar-09 21:39
pavanip20-Mar-09 21:39 
QuestionRe: Drag and Drop Feature in Silverlight Media Player Control Pin
Mark Salsbery22-Mar-09 6:32
Mark Salsbery22-Mar-09 6:32 
AnswerRe: Drag and Drop Feature in Silverlight Media Player Control Pin
pavanip22-Mar-09 18:31
pavanip22-Mar-09 18:31 
GeneralRe: Drag and Drop Feature in Silverlight Media Player Control Pin
Mark Salsbery22-Mar-09 19:32
Mark Salsbery22-Mar-09 19:32 
GeneralRe: Drag and Drop Feature in Silverlight Media Player Control Pin
pavanip22-Mar-09 20:04
pavanip22-Mar-09 20:04 
GeneralRe: Drag and Drop Feature in Silverlight Media Player Control Pin
Mark Salsbery23-Mar-09 9:43
Mark Salsbery23-Mar-09 9:43 
Questionwpf Pin
M.Ambigai20-Mar-09 11:52
M.Ambigai20-Mar-09 11:52 
AnswerRe: wpf Pin
Mark Salsbery20-Mar-09 12:38
Mark Salsbery20-Mar-09 12:38 
AnswerRe: wpf [modified] Pin
ABitSmart20-Mar-09 21:40
ABitSmart20-Mar-09 21:40 
AnswerRe: wpf Pin
ramz_g28-Mar-09 0:59
ramz_g28-Mar-09 0:59 
QuestionMediaElement ? Pin
Christian Graus20-Mar-09 10:44
protectorChristian Graus20-Mar-09 10:44 
AnswerRe: MediaElement ? Pin
Pete O'Hanlon20-Mar-09 11:00
mvePete O'Hanlon20-Mar-09 11:00 
GeneralRe: MediaElement ? Pin
Christian Graus20-Mar-09 11:13
protectorChristian Graus20-Mar-09 11:13 
GeneralRe: MediaElement ? Pin
Christian Graus20-Mar-09 11:23
protectorChristian Graus20-Mar-09 11:23 
AnswerRe: MediaElement ? Pin
Mark Salsbery20-Mar-09 13:17
Mark Salsbery20-Mar-09 13:17 
GeneralRe: MediaElement ? Pin
Christian Graus20-Mar-09 15:48
protectorChristian Graus20-Mar-09 15:48 
GeneralRe: MediaElement ? Pin
Mark Salsbery22-Mar-09 6:39
Mark Salsbery22-Mar-09 6:39 
GeneralRe: MediaElement ? Pin
Christian Graus22-Mar-09 10:07
protectorChristian Graus22-Mar-09 10:07 
GeneralRe: MediaElement ? Pin
Pete O'Hanlon23-Mar-09 1:02
mvePete O'Hanlon23-Mar-09 1:02 
Questionneed solution for "Dynamic invocation of Webmethods" Pin
ramakrishnamakkena20-Mar-09 2:59
ramakrishnamakkena20-Mar-09 2:59 
AnswerRe: need solution for "Dynamic invocation of Webmethods" Pin
Pete O'Hanlon20-Mar-09 3:15
mvePete O'Hanlon20-Mar-09 3:15 
While I wouldn't normally call the web service without a service reference in place, it's a simple enough process. Basically, you have to build the web request yourself and then call it. The following snippet should give you an idea of how it works. I'll leave it to you to work out what your data will be and what your response will be, but this should be a useful starting point:
string data = "xmldocument";
string url = "myurl";
string response = string.Empty;
// Build request objects to pass the xml to the web method
byte[] buffer = Encoding.ASCII.GetBytes(data);
HttpWebRequest request = WebRequest.Create(url) as HttpWebRequest;
request.Method = "POST";
request.ContentType = "text/xml";
request.ContentLength = buffer.Length;
using (Stream post = request.GetRequestStream())
{
  // post the data and close connection
  post.Write(buffer, 0, buffer.Length);
  post.Close();
  // Build response object
  HttpWebResponse response = request.GetResponse() as HttpWebResponse;
  using (Stream responsedata = response.GetResponseStream())
  {
    using (StreamReader responsereader = new StreamReader(responsedata))
    {
      response = responsereader.ReadToEnd();
    }
  }
}


"WPF has many lovers. It's a veritable porn star!" - Josh Smith

As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.


My blog | My articles | MoXAML PowerToys



QuestionWPF Scroll bar in frame control [modified] Pin
prl_pt20-Mar-09 0:38
prl_pt20-Mar-09 0:38 
AnswerRe: WPF Scroll bar in frame control Pin
Mark Salsbery20-Mar-09 6:51
Mark Salsbery20-Mar-09 6:51 
QuestionSilverlight and Asp.Net Pin
Jason Wilczak19-Mar-09 14:05
Jason Wilczak19-Mar-09 14:05 
AnswerRe: Silverlight and Asp.Net Pin
Mark Salsbery20-Mar-09 6:18
Mark Salsbery20-Mar-09 6:18 

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.