undefined is null or not an object

S

shawnZ

I have a submit button that submits to sharepoint even if the form already
exists. Meaning when I go in and open a page I can edit it a change it and
submit it again (I do not want to overright it - I want it posted
separately). I found some code at
http://www.sharepointu.com/forums/m_7453/mpage_2/tm.htm However, when I
implement this I get the following errors:
'undefined' is null or not an object at (mypage.FileName = fileStr;)
Some of the code is shown below:

var mypage = XDocument.DataAdapters["Submit Adoption"];

mypage.FileName = fileStr;

mypage.FolderURL = myLocation;

mypage.Submit();

Can someone please explain what I am doing wrong?
 
S

Scott L. Heim [MSFT]

Hi,

Have you stepped through the code to verify all of your variables have
valid, correct values? For instance, does "fileStr" return what you expect?

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top