I am having a Grid view in that i wanna select the date and saved into SQL database Table.
its fr monthly record,ex: date start from April 28th- May 27th. as like fr next month May 28th- June 27th... so in between days cannot be selected and its go on next month also..its should save in the database
how to get dat? plz help me...
send a full design view code plz..how to get date's continously.
Thank you.
SELECT THE CALENDAR TO ENTER THE DATE
<asp:Label ID="lb" runat="server" Text="DATE" Width="109px" Height="25px" style=" color: #000000; " ></asp:Label>
<asp:ImageButton ID="imh" runat="server" Height="20px"
ImageUrl="D:\Dev\App\Vaayuprj090116\images\Calendar_ICON.png" onclick="img_Click" AlternateText =" Click me" Width="30px" style="background-color: #66CCFF; color: #66FF99;" />
<asp:Label ID="lbb" runat="server" Text="TIME" style="color: #000000; "></asp:Label>
<asp:Label ID="lbd" runat="server" Text="DAY" style="color: #000000; "></asp:Label>
<br />
<asp:Calendar ID="cal" runat="server" Height="200px" Width="220px" Format="dd/MM/yyyy" Visible="False" OnSelectionChanged="cal_SelectionChanged" BackColor="#FFFFCC" BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" ForeColor="#663399" ShowGridLines="True">
<DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
<NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
<OtherMonthDayStyle ForeColor="#CC9966" />
<SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
<SelectorStyle BackColor="#FFCC66" />
<TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" ForeColor="#FFFFCC" />
<TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
</asp:Calendar>
<br />
<asp:Label ID="lbusr" runat="server" Width="68px" Height="24px" style="color: #000000; background-color: #FFFFFF;"></asp:Label>
<asp:CheckBox ID="ckval" runat="server" OnCheckedChanged="ckval_CheckedChanged" Width="73px" Height="24px" style=" color: #000000; "/>
<asp:Button ID="btnf" runat="server" Text="Enter" Width="68px" Height="24px" OnClick="btnf_Click" style="color: #000000" />
<table ID="myt1" runat="server" border="2" style="border-style:inset; " >
<tr>
<th >Block01(00.00:00.15)</th>
<td ><asp:TextBox ID="txtb1" runat="server" onkeypress="return validate(event)" onkeyup="movetoNext(this, 'second')" size="5" maxlength="4" Width="154px" style="text-align: center"></asp:TextBox></td>
</tr>
<tr>
<th >Block02(00.15:00.30)</th>
<td ><asp:TextBox ID="txtb2" runat="server" Width="154px" size="5" maxlength="4" style="text-align: center"></asp:TextBox></td>
</tr>
<tr>
<th>Block03(00.30:00.45)</th>
<td ><asp:TextBox ID="txtb3" runat="server" Width="154px" size="5" maxlength="4" style="text-align: center"></asp:TextBox></td>
</tr>
<tr>
<th >Block04(00.45:01.00)</th>
<td><asp:TextBox ID="txtb4" runat="server" Width="154px" size="5" maxlength="4" style="text-align: center"></asp:TextBox></td>
</tr>
like dis with or without using calendar i need dates in grid view ....