Click here to Skip to main content
12,622,675 members (27,630 online)
Click here to Skip to main content

Stats

31.4K views
901 downloads
49 bookmarked
Posted

Events Between Web Forms

, 6 Jul 2007 CPOL
Raise Events Between Web Forms Using CallBacks or Ajax
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class AjaxCallBack : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //the script manager
        ScriptManager objScriptManager = ScriptManager.GetCurrent(this.Page);

        //Set up the Reference
        ServiceReference TestWS = new ServiceReference();
        TestWS.Path = "~/WSUsers.asmx";

        //Add the WS reference  to the script manager
        objScriptManager.Services.Add(TestWS);
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Pramirez
Web Developer
Mexico Mexico
I am Pedro Ramirez from mexico, work for www.sciodev.com, the company is located in Mexico, we do outsourcing and nearshore development, we are focused on SaaS nearshore development, I started with VB.Net, but now I am ambidextrous using VB.Net or C#.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161128.1 | Last Updated 6 Jul 2007
Article Copyright 2007 by Pramirez
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid