Click here to Skip to main content
15,891,657 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Birthday date problems Pin
matjame13-Nov-07 2:26
matjame13-Nov-07 2:26 
GeneralRe: Birthday date problems Pin
Jintal Patel13-Nov-07 2:40
Jintal Patel13-Nov-07 2:40 
GeneralRe: Birthday date problems Pin
matjame13-Nov-07 2:47
matjame13-Nov-07 2:47 
GeneralRe: Birthday date problems Pin
matjame13-Nov-07 2:50
matjame13-Nov-07 2:50 
GeneralRe: Birthday date problems Pin
Jintal Patel13-Nov-07 17:59
Jintal Patel13-Nov-07 17:59 
GeneralRe: Birthday date problems Pin
matjame13-Nov-07 19:44
matjame13-Nov-07 19:44 
GeneralRe: Birthday date problems Pin
Jintal Patel13-Nov-07 19:53
Jintal Patel13-Nov-07 19:53 
GeneralRe: Birthday date problems Pin
matjame13-Nov-07 20:06
matjame13-Nov-07 20:06 
Imports System.Data
Imports System.Web.UI.Control
Imports System.Web.UI.WebControls.WebControl
Imports System.Web.UI.WebControls.LinkButton
Imports System.Data.oledb
Imports Microsoft.VisualBasic.ApplicationServices
Imports Microsoft.VisualBasic.OpenShare
Partial Class Birthdays
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim comx As New OleDbCommand
Dim conx As New OleDbConnection
Dim con As New OleDbConnection


Dim str1 As String = "Provider = Microsoft.Jet.oledb.4.0; Data source =C:\Documents and Settings\kagisho.mashiloane\My Documents\Visual Studio 2005\Projects\Search AL\TelephoneList.mdb"
Dim cm As OleDbCommand
Dim str2 As String

con = New OleDbConnection(str1)
con.Open()
str2 = " Select * from Bithdays WHERE (DATEPART(Month, BirthDate)) ='" & Date.Today.Month & "' And (DATEPART(Day, BirthDate)) = '" & Date.Today.Day & "'"
cm = New OleDbCommand(str2, con)

GridView1.DataSource = cm.ExecuteReader(CommandBehavior.CloseConnection)
GridView1.DataBind()

If con.State = ConnectionState.Open Then
con.Close()
End If
con.Open()
End Sub

Again, thank you very much for ur time and effort

kagiso

GeneralRe: Birthday date problems Pin
Jintal Patel13-Nov-07 23:48
Jintal Patel13-Nov-07 23:48 
GeneralRe: Birthday date problems Pin
matjame14-Nov-07 0:00
matjame14-Nov-07 0:00 
GeneralRe: Birthday date problems Pin
Jintal Patel14-Nov-07 0:37
Jintal Patel14-Nov-07 0:37 
AnswerRe: Birthday date problems Pin
Guffa13-Nov-07 6:14
Guffa13-Nov-07 6:14 
Questioncall javascript from ContentPlaceHolder Pin
yesu prakash12-Nov-07 23:47
yesu prakash12-Nov-07 23:47 
AnswerRe: call javascript from ContentPlaceHolder Pin
N a v a n e e t h13-Nov-07 0:01
N a v a n e e t h13-Nov-07 0:01 
GeneralRe: call javascript from ContentPlaceHolder Pin
yesu prakash13-Nov-07 0:05
yesu prakash13-Nov-07 0:05 
GeneralRe: call javascript from ContentPlaceHolder Pin
N a v a n e e t h13-Nov-07 0:28
N a v a n e e t h13-Nov-07 0:28 
AnswerRe: call javascript from ContentPlaceHolder Pin
Sun Rays13-Nov-07 0:13
Sun Rays13-Nov-07 0:13 
QuestionTo clear textboxes in the content page Pin
SunithaNallana12-Nov-07 23:00
SunithaNallana12-Nov-07 23:00 
AnswerRe: To clear textboxes in the content page Pin
N a v a n e e t h12-Nov-07 23:09
N a v a n e e t h12-Nov-07 23:09 
GeneralRe: To clear textboxes in the content page Pin
SunithaNallana12-Nov-07 23:17
SunithaNallana12-Nov-07 23:17 
GeneralRe: To clear textboxes in the content page Pin
N a v a n e e t h12-Nov-07 23:45
N a v a n e e t h12-Nov-07 23:45 
GeneralRe: To clear textboxes in the content page Pin
SunithaNallana13-Nov-07 0:46
SunithaNallana13-Nov-07 0:46 
AnswerRe: To clear textboxes in the content page Pin
Prateek G12-Nov-07 23:34
Prateek G12-Nov-07 23:34 
GeneralRe: To clear textboxes in the content page Pin
Sun Rays12-Nov-07 23:36
Sun Rays12-Nov-07 23:36 
GeneralRe: To clear textboxes in the content page Pin
N a v a n e e t h12-Nov-07 23:53
N a v a n e e t h12-Nov-07 23:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.