473,406 Members | 2,336 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Netscape and .net calendar

SS
Hi

I am using .net Calendar control, which works fine in IE but in netscape it
shows up but
when clicking on the date does not close and does not pass date back to
calling window.

ANy help would be appreciated, please

Here is the sample code.

Public Class Calendar

Inherits System.Web.UI.Page

#Region " Web Form Designer Generated Code "

'This call is required by the Web Form Designer.

<System.Diagnostics.DebuggerStepThrough()> Private Sub
InitializeComponent()

End Sub

Protected WithEvents Button1 As System.Web.UI.WebControls.Button

Protected WithEvents Label1 As System.Web.UI.WebControls.Label

Protected WithEvents Calendar1 As System.Web.UI.WebControls.Calendar

Protected WithEvents control As
System.Web.UI.HtmlControls.HtmlInputHidden

'NOTE: The following placeholder declaration is required by the Web Form
Designer.

'Do not delete or move it.

Private designerPlaceholderDeclaration As System.Object

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init

InitializeComponent()

End Sub

#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

control.Value = Request.QueryString("textbox").ToString()

End Sub

Private Sub Calendar1_SelectionChanged(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles Calendar1.SelectionChanged

Dim strScript As String = "<script>window.opener.document.forms(0)." +
control.Value + ".value = '"

strScript += Calendar1.SelectedDate.ToString("MM/dd/yyyy")

strScript += "';self.close()"

strScript += "</" + "script>"

RegisterClientScriptBlock("DueDateScript", strScript)

End Sub

End Class

Here is the html page

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="GetDate.aspx.vb"
Inherits="LifetimeFitness.GetDate" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>

<HEAD>

<title>GetDate</title>

<meta name="GENERATOR" content="Microsoft Visual Studio .NET
7.1">

<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">

<meta name="vs_defaultClientScript" content="JavaScript">

<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">

</HEAD>

<body MS_POSITIONING="GridLayout">

<form id="Form1" method="post" runat="server">

<asp:TextBox id="txtDate" style="Z-INDEX: 101; LEFT: 8px;
POSITION: absolute; TOP: 32px" runat="server"></asp:TextBox>

<a href="javascript:;"
onclick="window.open('Calendar.aspx?textbox=txtDat e','cal','width=225,height
=210,left=270,top=180')">

<img src="images/SmallCalendar.gif" border="0"> </a>

</form>

</body>

</HTML>

Thx

SS
Nov 21 '05 #1
0 804

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Thomas Kemetmüller | last post by:
Hi folks! I'm searching for a cross browser compatible DHTML popup calendar, there are plenty of those on the web, but I need one, which is absolutely free, very simple and good looking, do you...
1
by: LJL | last post by:
Greetings: I have a question regarding the system time and Netscape 7. I am running Win98SE. When Netscape 7 first loads it seems to store the currently set system time zone information. If...
1
by: Dan | last post by:
In response to... DSAsteve@aol.com 6/20/2003 post wc_fl@NOSPAM.hotmail.com 3/26/2003 post ....The javascript event calendar found at http://www.scriptcalendar.com satsifies both...
4
by: Jesse Wade | last post by:
Hello people. Does the world need another DHTML popup calendar? Probably not, but I'm writing one anyway. It's unique in that it allows drag selection of a range of dates. Works great on IE6 but...
4
by: danilo | last post by:
This Javascript + DHTML source code able to show a popup calendar to select one date in your web pages, complete the full sourcecode and its free distribuite (GNU lic)...
2
by: SS | last post by:
Hi I am using .net Calendar control, which works fine in IE but in netscape it shows up but when clicking on the date does not close and does not pass date back to calling window. ANy help...
2
by: Shafiq | last post by:
Hello All, I am using calendar.htc successfully in Internet Explorer 6, but when i try the code to work in Netscape 7.1 it donot show the calendar control at all. A sample of calendar.htc...
5
by: msuk | last post by:
All, I have a calendar control that is at the bottom of a webform, now when the user selects a new date on the control the page refresh's and moves back up to the top. Does anyone know how to...
4
by: Neal | last post by:
Hi All I developed a site in ASP.Net 2003, which is great in IE 5.5 + but a lot of our users at the University use Netscape and it just don't work in Netscape. Hyperlinks (webform) align...
4
by: gubbachchi | last post by:
Hi all, Please anybody help me solve this problem. I am stuck up with this from past 2 weeks. I am developing an application where, when the user selects date from javascript datepicker and enters...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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...

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.