Object doesn't support this property or method

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pankajprakash
    New Member
    • Feb 2007
    • 70

    Object doesn't support this property or method

    Hi,

    I have an asp.net application and I have used Ajax. I have implemented the function in code behind and calling in the javascript function during the form load time then it shows the "Object doesn't support this property or method " error. I have checked type of the function, it is correct and the same thing is working in the other page....I don't know the reason..


    here is the function I implemented in the code behing


    using Ajax;

    Code:
    protected void Page_Load(object sender, EventArgs e)
    {
                
    
                Ajax.Utility.RegisterTypeForAjax(typeof(ProceedWorkflowExecution));
    
    }
    
    
      [Ajax.AjaxMethod(HttpSessionStateRequirement.ReadWrite)]
            public void GetIncidentAttachment(int moduleRefId , int moduleTypeId)
            {
                         
                IncidentWebService.IncidentService incident = new IncidentWebService.IncidentService();
    
                DataSet ds = new DataSet();
    
                try
                {
                    string XmlPath = Server.MapPath(@"~/XML");
    
                    ds = Common.GenerateDataSet(incident.GetAttachmentsDetails(moduleRefId , moduleTypeId, 1));
    
                    if (ds.Tables.Count > 0)
                    {
                        ds.WriteXml(XmlPath + "/IncidentAttachments" + 1 + ".Xml");
                    }
    
                }
                catch (Exception ex)
                {
                    throw ex;
                }
                finally
                {
                    ds = null;
                }
            }
    in the .aspx page


    [CODE=javascript] <script language="javas cript" type="text/javascript">

    function GetAttachments( )
    {
    debugger
    try
    {
    var mid = '<%=Request.Que ryString["mid"].ToString() %>';
    var mtype = '<%=Request.Que ryString["mtype"].ToString() %>';


    ProceedWorkflow Execution.GetIn cidentAttachmen t(mid , mtype);



    }
    catch (ex)
    {
    alert (ex);
    }
    }

    GetAttachments( );


    </script>[/CODE]
    Last edited by gits; Apr 18 '08, 09:03 AM. Reason: added code tags
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    What line does the error occur on?

    Comment

    Working...