Connecting Tech Pros Worldwide Help | Site Map

Object doesn't support this property or method

Member
 
Join Date: Feb 2007
Posts: 66
#1: Apr 18 '08
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;

Expand|Select|Wrap|Line Numbers
  1. protected void Page_Load(object sender, EventArgs e)
  2. {
  3.  
  4.  
  5.             Ajax.Utility.RegisterTypeForAjax(typeof(ProceedWorkflowExecution));
  6.  
  7. }
  8.  
  9.  
  10.   [Ajax.AjaxMethod(HttpSessionStateRequirement.ReadWrite)]
  11.         public void GetIncidentAttachment(int moduleRefId , int moduleTypeId)
  12.         {
  13.  
  14.             IncidentWebService.IncidentService incident = new IncidentWebService.IncidentService();
  15.  
  16.             DataSet ds = new DataSet();
  17.  
  18.             try
  19.             {
  20.                 string XmlPath = Server.MapPath(@"~/XML");
  21.  
  22.                 ds = Common.GenerateDataSet(incident.GetAttachmentsDetails(moduleRefId , moduleTypeId, 1));
  23.  
  24.                 if (ds.Tables.Count > 0)
  25.                 {
  26.                     ds.WriteXml(XmlPath + "/IncidentAttachments" + 1 + ".Xml");
  27.                 }
  28.  
  29.             }
  30.             catch (Exception ex)
  31.             {
  32.                 throw ex;
  33.             }
  34.             finally
  35.             {
  36.                 ds = null;
  37.             }
  38.         }
  39.  
  40.  
  41.  
in the .aspx page


Expand|Select|Wrap|Line Numbers
  1.  <script language="javascript" type="text/javascript">
  2.  
  3.     function GetAttachments()
  4.     {
  5.         debugger 
  6.         try
  7.         {
  8.             var mid = '<%=Request.QueryString["mid"].ToString() %>';
  9.             var mtype = '<%=Request.QueryString["mtype"].ToString() %>';
  10.  
  11.  
  12.             ProceedWorkflowExecution.GetIncidentAttachment(mid , mtype);
  13.  
  14.  
  15.  
  16.         }
  17.         catch (ex)
  18.         {
  19.             alert (ex);
  20.         }
  21.     }    
  22.  
  23.     GetAttachments();
  24.  
  25.  
  26.    </script>
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Apr 18 '08

re: Object doesn't support this property or method


What line does the error occur on?
Reply