J
Jeff
hi
asp.net 2.0
Here is the markup of a webpage I'm having trouble with. The trouble is that
nothing happens when I click on that button (<input id="Button1).
Any ideas what I do wrong here?
<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="CalendarControl.ascx.cs" Inherits="Controls_CalendarControl" %>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<input id="Button1" type="button" value="..." onclick="OnClick" /><br />
<div id="divCalendar" runat="server" style="display:none;
position:absolute;">
<asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
</div>
<script type="text/javascript" >
function OnClick()
{
if (divCalendar.style.display == "none")
divCalendar.style.display = "";
else
divCalendar.style.display = "none";
}
</script>
asp.net 2.0
Here is the markup of a webpage I'm having trouble with. The trouble is that
nothing happens when I click on that button (<input id="Button1).
Any ideas what I do wrong here?
<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="CalendarControl.ascx.cs" Inherits="Controls_CalendarControl" %>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<input id="Button1" type="button" value="..." onclick="OnClick" /><br />
<div id="divCalendar" runat="server" style="display:none;
position:absolute;">
<asp:Calendar ID="Calendar1" runat="server"></asp:Calendar>
</div>
<script type="text/javascript" >
function OnClick()
{
if (divCalendar.style.display == "none")
divCalendar.style.display = "";
else
divCalendar.style.display = "none";
}
</script>