Click here to Skip to main content
15,889,527 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,


I have one calendar and one gridview with three columns.
Here i have to select the date in a calendar then one popup should open.How to do that.Helpme.
Posted
Updated 1-Jul-15 1:10am
v2
Comments
What have you tried and where is the issue?
Member 11686116 1-Jul-15 7:53am    
<form id="form1" runat="server">
<div style="width:100%;height:637px" id="MainDiv">
<div style="width:65%; height:100%; float:left" id="CalDiv" >
<asp:Calendar ID="Calendar1" runat="server" Width="98%" Height="100%"
BackColor="White" BorderColor="Black" DayNameFormat="Full"
Font-Names="Times New Roman" Font-Size="12pt" ForeColor="Black"
NextPrevFormat="FullMonth" TitleFormat="MonthYear" >
<dayheaderstyle backcolor="#CCCCCC" font-bold="True" font-size="10pt"
="" forecolor="#333333" height="10pt">
<daystyle width="14%">
<nextprevstyle font-size="10pt" 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">

</div>
<div style="width:30%;height:100%;float:left" id="GvDiv" >
<asp:GridView ID="Gv1" runat="server" Width="100%" AutoGenerateColumns="false"
Height="100%">
<columns>
<asp:BoundField HeaderText="Name" />
<asp:BoundField HeaderText="Events" />
<asp:ButtonField HeaderText="Delete an Event" Text="Delete" />


</div>
</div>
</form>
this is my source code .i have no idea how to do like once i click on that date popup should open.
Member 11686116 1-Jul-15 7:54am    
Once i click on day of month then one popup should open am stuck in that..
Okay let me research on this for sometime. I will get back.
See my answer.

1 solution

The event is - Calendar.SelectionChanged Event[^].

Inside this event, write codes to call a JavaScript Function or something and inside that function, open a popup.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900