namespace myConctrol
{

    [ToolboxData("<{0}:webGridView runat=server></{0}:webGridView>")]
    public class webGridView : WebControl
    {
        [Bindable(true)]
        [Category("Appearance")]
        [DefaultValue("")]
        [Localizable(true)]
       public string Text
       {
               get
            {
                string s = (string)ViewState["Text"];
                return ((s == null) ? String.Empty : s);
            }

            set
            {
                ViewState["Text"] = value;
            }
        }

        [AjaxPro.AjaxMethod()]
        public string GetTime()
        {
                  return DateTime.Now.ToString();
         }
        protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        AjaxPro.Utility.RegisterTypeForAjax(typeof(myConctrol));
    }
}

in aspx page:
function test()
{
       myControl.GetTime(test_callback)   <========== this line does
not work !
}

who can tell me how to do ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info/

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---

Reply via email to