Private [date] As String = DateTime.Now.ToString StrQry = "" Conn.Open() StrQry = "insert into csproject(projectname,projectcode,duration,CreatedBy,CreatedDate) values ('" & txtProjName.Text & "','" & txtProjCode.Text & "','" & Session("EmpNo") & "','" & [date] & "')" Cmd.Connection = Conn Cmd.CommandText = StrQry Cmd.ExecuteNonQuery() Cmd.Dispose() Conn.Close()
Private [date] As String = DateTime.Now.ToString
Private [date] As DateTime = DateTime.Now.ToString
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)