473,486 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Object doesn't support this property or method

70 New Member
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>
Apr 18 '08 #1
1 1376
acoder
16,027 Recognized Expert Moderator MVP
What line does the error occur on?
Apr 18 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
3444
by: Matt | last post by:
I tried to display all html control types in the form. But it has run time error "object doesn't support this property or method" on document.write(obj.type); Even I do document.write('hello...
2
8905
by: Olaf | last post by:
I have a frameset page witch contains the myFuc() function. The function is accessed from a page in one of the frames in the frameset. An example is shown below. <input...
3
11442
by: news.onetel.net.uk | last post by:
I and my friend Karl have spent literally all day trying to find out what is causing my error but we are zapped of any further functionality :) I have a form that adds news records. You select...
54
4487
by: tshad | last post by:
I have a function: function SalaryDisplay(me) { var salaryMinLabel = document.getElementById("SalaryMin"); salaryMinLabel.value = 200; alert("after setting salaryMinLabel = " +...
0
4517
by: fniles | last post by:
I created a CAB file for a 3rd party control (StockChartX) it using CABARC.exe that comes from Microsoft SDK. In the CAB file I included the StockChartX.ocx and StockChartX.INF. Then, I signed the...
7
29729
by: stellstarin | last post by:
hi all, I have a HTML page with two forms. While trying to add a hidden element in a first form by the default javascript function, the error message 'object does not support this property or...
5
550
by: John Olbert | last post by:
Subject: Error is Object doesn't support this property or method I am trying to pass a C# string under Vs2005 (Net2) to an Vb6 ActiveX Control. I get the following runtime error-- "Object...
8
4182
by: Kevin Blount | last post by:
I'm tyring to access an object created by using a method from a third party API. The documentation tells me what object should be return, and the properties of that object, but when I try and...
0
8953
ADezii
by: ADezii | last post by:
When you create an ADO Recordset, you should have some idea as to what functionality the Recordset does/does not provide. Some critical questions may, and should, be: Can I add New Records to the...
9
2963
by: Peter Webb | last post by:
I want to animate one object moving in front of another. I cannot re-render the background as the object moves, as it would be extremely time consuming. This is what I would like to do. I draw...
0
7099
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4864
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.