TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sulieman Alkatib
NA
56
4.7k
open a gridview of specific date using calendar
Jan 10 2017 8:36 AM
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
Reply
Answers (
4
)
how to deploy web services on server step by step ?
how to edit multiple images in mvc jquery?