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
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