Pop-Up Calendar Control Error - JavaScript Related

P

programmingguru

I've been reading John's article located here:

http://www.dotnetjohn.com/articles.aspx?articleid=67

which explains how to create a pop-up calendar control using JavaScript. I can get it to work as it should on a basic webform but in my web application that I am creating using ASP.NET 2.0, I am receiving the error:

"Microsoft JScript runtime error: 'window.opener.document.forms(...).txtStartDate' is null or not an object"

After looking at this error, the most likely conclusion I can come to is that the reference to the control is incorrect due to my use of a masterpage. My offending line being:

<script>window.opener.document.forms(0)." + control.Value + ".value =

I am guessing that I need something different in the opener.document.forms(0) part.

Any help with this would be great.

___
Newsgroups brought to you courtesy of www.dotnetjohn.com
 

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

Members online

No members online now.

Forum statistics

Threads
474,142
Messages
2,570,820
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top