Click here to Skip to main content
16,011,947 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i used calender extender control to display date and now i need to show the information by selected date whenever cursor moves into date that should display information from the database.
Posted
Comments
[no name] 10-Jul-12 5:26am    
explain briefly
or paste what you done to achive this..

C#
FStdate = Convert.ToDateTime(Session["Financial-StartDate"].ToString());
          
           txtstartDate.Text = Convert.ToString(FStdate.ToString(CalendarExtender1.Format

));

Hop this help you
 
Share this answer
 
Comments
amperayani 10-Jul-12 6:28am    
i have data on database front end aspx ,codebehind we are using vb.net
...
i have aspx page that contain only label and texbox,calender extender control eg. whenever a person to see on particular past day what he done so he need to put cursor on date that selected date should display what he done on that day. iam using vb.net please tell me vb.net
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim connetionString As String
Dim sqlCnn As SqlConnection
Dim sqlCmd As SqlCommand
Dim adapter As New SqlDataAdapter
Dim ds As New DataSet
Dim i As Integer
Dim sql As String

connetionString = "Data Source=ServerName;Initial Catalog=DatabaseName;User ID=UserNamePassword=Password"
sql = "Select * from table where datecolumn="+ txtDate.Text

sqlCnn = New SqlConnection(connetionString)
sqlCnn.Open()
sqlCmd = New SqlCommand(sql, sqlCnn)
adapter.SelectCommand = sqlCmd
adapter.Fill(ds)
For i = 0 To ds.Tables(0).Rows.Count - 1
ds.Tables(0).Rows(i).Item(1))
Next
adapter.Dispose()
sqlCmd.Dispose()
sqlCnn.Close()

End Sub
 
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