Click here to Skip to main content
15,913,685 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionLinkButton onclick event is firing twice Pin
indian14316-Apr-12 7:07
indian14316-Apr-12 7:07 
AnswerRe: LinkButton onclick event is firing twice Pin
Not Active16-Apr-12 7:45
mentorNot Active16-Apr-12 7:45 
GeneralRe: LinkButton onclick event is firing twice Pin
indian14316-Apr-12 9:45
indian14316-Apr-12 9:45 
GeneralRe: LinkButton onclick event is firing twice Pin
Not Active17-Apr-12 12:46
mentorNot Active17-Apr-12 12:46 
QuestionAvoid page rendering multiple times Pin
indian14316-Apr-12 6:00
indian14316-Apr-12 6:00 
AnswerRe: Avoid page rendering multiple times Pin
Not Active16-Apr-12 7:43
mentorNot Active16-Apr-12 7:43 
Questionsoap headers are not added Pin
anandsurya16-Apr-12 0:04
anandsurya16-Apr-12 0:04 
Questionhow to add soap headers to the xml generated from webservice Pin
anandsurya16-Apr-12 0:00
anandsurya16-Apr-12 0:00 
---mycode webservice code is---
XML
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(Name = "TestService", ConformsTo = WsiProfiles.BasicProfile1_1)]
public class WebService : System.Web.Services.WebService {
    // Add a member variable of the type deriving from SoapHeader.
    public MyHeader timeStamp;

    // Apply a SoapHeader attribute.
    [WebMethod(Description = "A method that requires authentication")]
    [SoapDocumentMethod(Binding = "TestService")]
    [SoapHeader("timeStamp", Direction = SoapHeaderDirection.In)]
    public string HelloWorld()
    {
        if (timeStamp == null)
            timeStamp = new MyHeader();

        //timeStamp.MustUnderstand = true;
        //timeStamp.Expires = 60000;
        //timeStamp.Created = DateTime.UtcNow;

        return "Hello World";
    }

    [WebMethod(Description = "A method that requires authentication")]
    [SoapDocumentMethod(Binding = "TestService")]
    [SoapHeaderAttribute("timeStamp", Direction = SoapHeaderDirection.InOut)]
    public XmlNode GetXML()
    {
        XmlDocument doc = new XmlDocument();
        doc.LoadXml("<bookstore>" +
                    "<book genre='novel' ISBN='1-861001-57-5'>" +
                    "<title>Pride And Prejudice</title>" +
                    "</book>" +
                    "</bookstore>");
        return doc;
    }

=---client call ----
protected void Page_Load(object sender, EventArgs e)
    {
        localhost.MyHeader header = new localhost.MyHeader();
        header.UserName = "test";
        header.Password = "test";
        localhost.WebService proxy = new localhost.WebService();
        proxy.MyHeaderValue = header;
        XmlDocument xmlDoc = new XmlDocument();
        XmlNode elem = proxy.GetXML();
        XmlNodeReader nodeReader = new XmlNodeReader(elem);
        xmlDoc.InnerXml = elem.InnerXml;
        string strXML = xmlDoc.InnerXml;
}
---output is---
<book>book genre='novel' ISBN='1-861001-57

---i want output in---

<soap:envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:header>
    <myheader xmlns="http://tempuri.org/">
      <username>string
      <password>string
    
  
  <soap:body>
    <getxml xmlns="http://tempuri.org/">

QuestionHow to get values from Ajax Editor control inside the Details view??? Pin
Shivanand Arur15-Apr-12 21:23
Shivanand Arur15-Apr-12 21:23 
AnswerRe: How to get values from Ajax Editor control inside the Details view??? Pin
Not Active16-Apr-12 1:43
mentorNot Active16-Apr-12 1:43 
QuestionTelerik Rad Menu Data Sources Pin
Karthik Harve15-Apr-12 19:17
professionalKarthik Harve15-Apr-12 19:17 
QuestionWhere to set language and culture Pin
Priya Prk15-Apr-12 9:18
Priya Prk15-Apr-12 9:18 
AnswerRe: Where to set language and culture Pin
Bernhard Hiller15-Apr-12 21:51
Bernhard Hiller15-Apr-12 21:51 
AnswerRe: Where to set language and culture Pin
Vipin_Arora16-Apr-12 20:09
Vipin_Arora16-Apr-12 20:09 
AnswerRe: Where to set language and culture Pin
Grace Daniel16-Apr-12 23:51
Grace Daniel16-Apr-12 23:51 
AnswerRe: Where to set language and culture Pin
mitnick5625-Apr-12 3:51
mitnick5625-Apr-12 3:51 
QuestionJSON and C# Pin
xy000114-Apr-12 20:49
xy000114-Apr-12 20:49 
AnswerRe: JSON and C# Pin
Ali Al Omairi(Abu AlHassan)15-Apr-12 2:14
professionalAli Al Omairi(Abu AlHassan)15-Apr-12 2:14 
Questionretrieving blob data(image) and display in a picture box Pin
amSherihan13-Apr-12 23:24
amSherihan13-Apr-12 23:24 
AnswerRe: retrieving blob data(image) and display in a picture box Pin
Ali Al Omairi(Abu AlHassan)14-Apr-12 4:11
professionalAli Al Omairi(Abu AlHassan)14-Apr-12 4:11 
Questionhow to handle error Pin
Member 868940013-Apr-12 8:35
Member 868940013-Apr-12 8:35 
AnswerRe: how to handle error Pin
Not Active13-Apr-12 9:15
mentorNot Active13-Apr-12 9:15 
AnswerRe: how to handle error Pin
jkirkerx13-Apr-12 10:06
professionaljkirkerx13-Apr-12 10:06 
QuestionProblem with Forms Authentication Provider Pin
Flum02113-Apr-12 7:39
Flum02113-Apr-12 7:39 
AnswerRe: Problem with Forms Authentication Provider Pin
Leonardo Metelis13-Apr-12 9:02
Leonardo Metelis13-Apr-12 9:02 

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.