Tech
Forums
Jobs
Books
Events
Live
Interviews Prep
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
open a gridview of specific date using calendar
Sulieman Alkatib
Jan 10 2017 8:36 AM
258
Reply
I have problem to extract attendance information of selected date on calendar so I make a triky code which assign selected date from calendar to a textbox and then a gridview should appear that have a column value = textbox value or something like this
Public
Class
Attendance
Inherits
System.Web.UI.Page
Protected
Sub
Page_Load(
ByVal
sender
As
Object
,
ByVal
e
As
System.EventArgs)
Handles
Me
.Load
Calendar1.Visible =
False
End
Sub
Protected
Sub
Button1_Click(
ByVal
sender
As
Object
,
ByVal
e
As
EventArgs)
Handles
Button1.Click
Calendar1.Visible =
True
End
Sub
Protected
Sub
Calendar1_SelectionChanged(
ByVal
sender
As
Object
,
ByVal
e
As
EventArgs)
Handles
Calendar1.SelectionChanged
TextBox1.Text = Calendar1.SelectedDate
End
Sub
End
Class
<asp:GridView ID=
"GridView1"
runat=
"server"
AutoGenerateColumns=
"False"
DataSourceID=
"SqlDataSource2"
EnableModelValidation=
"True"
>
<Columns>
<asp:BoundField DataField=
"EID"
HeaderText=
"EID"
SortExpression=
"EID"
/>
<asp:BoundField DataField=
"DateOfDay"
HeaderText=
"DateOfDay"
SortExpression=
"DateOfDay"
/>
<asp:CheckBoxField DataField=
"Present"
HeaderText=
"Present"
SortExpression=
"Present"
/>
</Columns>
</asp:GridView>
so now I need to filter the result of gridview by selected date
thanks developers
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
how to deploy web services on server step by step ?
how to edit multiple images in mvc jquery?