pavanik,
how about [html]<body onClick="document.all.form3.calendarControl.style. visibility='hidden'">[/html]Jared
hey
calendar.aspx.cs: server side
public partial class calendar : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
TextBox1.Text = Calendar1.SelectedDate.ToShortDateString();
}
protected void Button1_ServerClick(object sender, EventArgs e)
{
Calendar1.Visible = true;
}
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
TextBox1.Text = Calendar1.SelectedDate.ToShortDateString();
Calendar1.Visible = false;
}
}
this is my server side code,in client side just i have taken a button,text box,calendar control.
calendar.aspx: client side
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<input type="button" id="Button1" runat="server" value="..." onserverclick="Button1_ServerClick" /><br />
<asp:Panel ID="pnlCalendar" runat="server" Style="position: absolute">
<asp:Calendar ID="Calendar1" runat="server" CellPadding="0" Font-Names="Verdana"
Font-Size="8pt" Height="160px" DayNameFormat="FirstLetter" Width="160px" ShowGridLines="True" OnSelectionChanged="Calendar1_SelectionChanged" SelectedDate="2007-08-07" Visible="False" VisibleDate="2007-08-08">
<NextPrevStyle VerticalAlign="Bottom"></NextPrevStyle>
<DayHeaderStyle Font-Size="7pt" Font-Bold="True"></DayHeaderStyle>
<SelectedDayStyle Font-Bold="True"></SelectedDayStyle>
<TitleStyle Font-Bold="True"></TitleStyle>
</asp:Calendar>
</asp:Panel>
</div>
</form>
</body>
</html>
so now the calendar control is visible in design part.i want some thing different that calendar cntrl must not be in design but when i run it and when i click the button it should display the calendar.by doing like this the remaining controls will not be disturbed.
i think u can understand my issue.
thanks 4 reply,
pavani.k.