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.P age
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnos tics.DebuggerSt epThrough()> Private Sub
InitializeCompo nent()
End Sub
Protected WithEvents Button1 As System.Web.UI.W ebControls.Butt on
Protected WithEvents Label1 As System.Web.UI.W ebControls.Labe l
Protected WithEvents Calendar1 As System.Web.UI.W ebControls.Cale ndar
Protected WithEvents control As
System.Web.UI.H tmlControls.Htm lInputHidden
'NOTE: The following placeholder declaration is required by the Web Form
Designer.
'Do not delete or move it.
Private designerPlaceho lderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Init
InitializeCompo nent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
control.Value = Request.QuerySt ring("textbox") .ToString()
End Sub
Private Sub Calendar1_Selec tionChanged(ByV al sender As System.Object, ByVal
e As System.EventArg s) Handles Calendar1.Selec tionChanged
Dim strScript As String = "<script>window .opener.documen t.forms(0)." +
control.Value + ".value = '"
strScript += Calendar1.Selec tedDate.ToStrin g("MM/dd/yyyy")
strScript += "';self.close() "
strScript += "</" + "script>"
RegisterClientS criptBlock("Due DateScript", strScript)
End Sub
End Class
Here is the html page
<%@ Page Language="vb" AutoEventWireup ="false" Codebehind="Get Date.aspx.vb"
Inherits="Lifet imeFitness.GetD ate" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>GetDat e</title>
<meta name="GENERATOR " content="Micros oft Visual Studio .NET
7.1">
<meta name="CODE_LANG UAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaul tClientScript" content="JavaSc ript">
<meta name="vs_target Schema"
content="http://schemas.microso ft.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="javascrip t:;"
onclick="window .open('Calendar .aspx?textbox=t xtDate','cal',' width=225,heigh t
=210,left=270,t op=180')">
<img src="images/SmallCalendar.g if" border="0"> </a>
</form>
</body>
</HTML>
Thx
SS
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.P age
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnos tics.DebuggerSt epThrough()> Private Sub
InitializeCompo nent()
End Sub
Protected WithEvents Button1 As System.Web.UI.W ebControls.Butt on
Protected WithEvents Label1 As System.Web.UI.W ebControls.Labe l
Protected WithEvents Calendar1 As System.Web.UI.W ebControls.Cale ndar
Protected WithEvents control As
System.Web.UI.H tmlControls.Htm lInputHidden
'NOTE: The following placeholder declaration is required by the Web Form
Designer.
'Do not delete or move it.
Private designerPlaceho lderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Init
InitializeCompo nent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
control.Value = Request.QuerySt ring("textbox") .ToString()
End Sub
Private Sub Calendar1_Selec tionChanged(ByV al sender As System.Object, ByVal
e As System.EventArg s) Handles Calendar1.Selec tionChanged
Dim strScript As String = "<script>window .opener.documen t.forms(0)." +
control.Value + ".value = '"
strScript += Calendar1.Selec tedDate.ToStrin g("MM/dd/yyyy")
strScript += "';self.close() "
strScript += "</" + "script>"
RegisterClientS criptBlock("Due DateScript", strScript)
End Sub
End Class
Here is the html page
<%@ Page Language="vb" AutoEventWireup ="false" Codebehind="Get Date.aspx.vb"
Inherits="Lifet imeFitness.GetD ate" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>GetDat e</title>
<meta name="GENERATOR " content="Micros oft Visual Studio .NET
7.1">
<meta name="CODE_LANG UAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaul tClientScript" content="JavaSc ript">
<meta name="vs_target Schema"
content="http://schemas.microso ft.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="javascrip t:;"
onclick="window .open('Calendar .aspx?textbox=t xtDate','cal',' width=225,heigh t
=210,left=270,t op=180')">
<img src="images/SmallCalendar.g if" border="0"> </a>
</form>
</body>
</HTML>
Thx
SS
Comment