Hi all,
I am converting an ASP.Net 1.1 project to 2.0. I am using master pages to
standardize the look and feel of my pages. I have posted several snags I have
had on here and you guys have been great getting me going. Well I have another
problem. I have several pages that use a popup calendar. The popup calendar
is called from a hyperlink using some javascript. The popup calendar does
actually popup on my page. But when I click on a date, nothing happens. It is
supposed to populate my textbox with the selected date. Like I said, this
works fine in ASP.Net 1.1
The problem appears to be in the javascript code, specifically the form name.
The form name is in this code. There is no form tag on my page though since I
am using a master page and my html is between the asp:content tag. I did a
View Source when I ran my page and the form name is aspnetForm. So I used this
in the javascript but it still doesn't work. Any ideas how to fix this? Here
is the exact code:
<asp:TextBox runat="server" ID="StartDate" Width="100" Font-Size="12"
SkinID="RegularTextBox"></asp:TextBox>
<a
href="javascript:calendar_window=window.open('calendar.aspx?formname=aspnetForm.StartDate','calendar_window','width=174,height=215,top=250,left=750');calendar_window.focus()"><asp:Image
ID="Image2" runat="server" ImageUrl="Images/SmallCalendar.gif" /></a>
Thanks,
Bob
[Non-text portions of this message have been removed]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNet2/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/AspNet2/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/