Sreenish

Sreenish

  • NA
  • 249
  • 33k

how to write code for ondblclick for datecell of calendar ?

Jul 14 2015 1:22 AM
Hello EveryOne,


I have stuck in my coding.....in my webform i have Calendar in that ondblclick of date cell gridview should display...i have no idea how to do that...


Source Code::
 
<asp:Calendar ID="Calendar1" runat="server" Width="98%" Height="100%" OnSelectionChanged="Calendar1_SelectionChanged"
OnDayRender="Calendar1_DayRender" BackColor="White" BorderColor="Black" DayNameFormat="Shortest" ondblclick="Cal1()"
Font-Names="Times New Roman" Font-Size="10pt" ForeColor="Black" NextPrevFormat="FullMonth"
TitleFormat="Month" OnVisibleMonthChanged="Calendar1_VisibleMonthChanged">
<DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" ForeColor="#333333"
Height="10pt" />
<DayStyle Width="14%" />
<NextPrevStyle Font-Size="8pt" ForeColor="White" />
<OtherMonthDayStyle ForeColor="#999999" />
<SelectedDayStyle BackColor="#CC3333" ForeColor="White" />
<SelectorStyle BackColor="#CCCCCC" Font-Bold="True" Font-Names="Verdana" Font-Size="8pt"
ForeColor="#333333" Width="1%" />
<TitleStyle BackColor="Black" Font-Bold="True" Font-Size="13pt" ForeColor="White"
Height="14pt" />
<TodayDayStyle BackColor="#CCCC99" />
</asp:Calendar>
</div>
<div style="width: 27%; float: left" id="Gvdiv">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%"
Height="5%" >
<Columns>
<asp:BoundField DataField="Name" HeaderText="Name" />
<asp:BoundField DataField="Event" HeaderText="Event" />
<asp:BoundField DataField="AddedOn" HeaderText="AddedOn" />
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="Link1" runat="server" Text="Delete" OnClick="Link1_Click"></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
 

Answers (1)