Results 1 to 6 of 6

Thread: Ajax and Web-based services in ASP.Net 3.5

  1. #1
    Join Date
    Feb 2010
    Posts
    173

    Ajax and Web-based services in ASP.Net 3.5

    Hi all,

    I want to know that how to use of ASP.NET 3.5 continue in the AJAX environment, how client-side JavaScript call the Web service method. The purpose of knowing that is to let me a deep understanding of ASP.Net3.5 of Ajax and Web-based services, although with the examples. Please suggest. Thanks in advance.

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    Ajax and Web-based services in ASP.Net 3.5

    In the AJAX call Web service methods can improve the Web user experience, Microsoft's AJAX adding ASP.NET3.5 its new features, new features can be invoked from the JavaScript client-side Web service method without refreshing the entire page. AJAX technology enables you to call server-side approach, there is no post back. Client-side script can request a Web method, and data as input parameters by the methods and data can also be sent back from the server to the client browser. Check and reply.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,852

    Ajax and Web-based services in ASP.Net 3.5

    In order to make your application calls the ASP.NET Web service using the client-side scripting, server asynchronous communication layer automatically generates JavaScript proxy class. Agent class health of every Web Service.
    Code:
    <asp:ServiceReference> element is included in the <asp:ScriptManager> control page.
    <asp: ScriptManager runat="server"ID="scriptManagerId123">
         <Services>
                <asp: ServiceReference Path="WebService123.asmx" />
         </Services>
    </asp: ScriptManager>
    check and reply.

  4. #4
    Join Date
    May 2008
    Posts
    2,389

    Ajax and Web-based services in ASP.Net 3.5

    You can use <asp : ScriptReference> element that specifies register a JavaScript file, is used in Web pages. Only registered Call Web Service Method.js file, you can call the method on, call the script Web service method is asynchronous. To obtain the return value, or in order to determine when the return request, you must provide a successful callback function. Callback function is called when the request has been successfully completed, and it contains the return value from the Web method call. You can also provide a failed callback function to handle errors. In addition, you can also the user's background information, the use of the callback function.

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Ajax and Web-based services in ASP.Net 3.5

    You can disable all currently enabled protocols such as HTTP-GET, HTTP-POST, or SOAP in XML format used in early forms of Web services. The following settings in the Web.config file is also used this way.
    Code:
    <system.web>
        <webServices>
            <protocols>
              <clear/>
            </protocols>
          </webServices>
    </system.web>
    Request a Web service method through these levels. You can see also use method requires an available proxy objects and Web requests by a XMLHttp object on the client browser is running. On the server side, your request is as usual is an HTTP handler, issued by the XML / JSON serialization. Check and reply.

  6. #6
    Join Date
    May 2008
    Posts
    2,297

    Ajax and Web-based services in ASP.Net 3.5

    In the AJAX using Web service method consists of two steps: The first step is to create and define Web services. The second step is to use client-side script from a web service method calls. Creating a Web service:
    The System.Web.Scripts.Services namespace, you may find a property class "ScriptSrvice", which requires the application to Web service class, so that Web service method can be called from the client-side scripts. This will allow proxy generation script to generate a proxy object that corresponds to Web service class. Best of luck.

Similar Threads

  1. Top Web Based Email Services.
    By TamburaA in forum Technology & Internet
    Replies: 5
    Last Post: 02-04-2011, 10:42 PM
  2. jQuery AJAX vs. Adobe AIR AJAX Class
    By Agaev in forum Windows Software
    Replies: 5
    Last Post: 06-07-2010, 01:59 PM
  3. parsing of an AJAX-based HTTP request
    By javascNoob in forum Software Development
    Replies: 1
    Last Post: 26-03-2009, 07:54 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,281,399.80504 seconds with 17 queries