Click here to Skip to main content
15,867,771 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralQuestion Pin
nithydurai17-Apr-08 0:53
nithydurai17-Apr-08 0:53 
GeneralRe: Question Pin
eyeseetee17-Apr-08 0:56
eyeseetee17-Apr-08 0:56 
GeneralRe: Question Pin
_AK_17-Apr-08 1:18
_AK_17-Apr-08 1:18 
GeneralRe: Question Pin
Vasudevan Deepak Kumar17-Apr-08 21:50
Vasudevan Deepak Kumar17-Apr-08 21:50 
Questionhow is run Pin
sugunavathysubramanian17-Apr-08 0:42
sugunavathysubramanian17-Apr-08 0:42 
AnswerRe: how is run Pin
_AK_17-Apr-08 0:45
_AK_17-Apr-08 0:45 
GeneralRe: how is run Pin
sugunavathysubramanian17-Apr-08 0:53
sugunavathysubramanian17-Apr-08 0:53 
GeneralRe: how is run Pin
J4amieC17-Apr-08 1:46
J4amieC17-Apr-08 1:46 
sugunavathysubramanian wrote:
string month, yearr, datee, systemdate;
month = DateTime.Now.Month.ToString();
yearr = DateTime.Now.Year.ToString();
datee = DateTime.Now.Day.ToString();

systemdate = Convert.ToString(month.ToString()) + "/" + Convert.ToString(datee.ToString()) + "/" + Convert.ToString(yearr.ToString());
SqlConnection con = new SqlConnection("server=.;initial catalog=master;user id=sa;password=sa;");
con.Open();
SqlCommand cmd = new SqlCommand("delete from no where date='" + systemdate + "'", con);
cmd.ExecuteNonQuery();
con.Close();


Dead | X| Buy a basic programming book, there are so much chaff in the above that it is impossible to guide you.

eg.

Convert.ToString(yearr.ToString()); <-- anything strike you as redundant in this snippet?
GeneralRe: how is run Pin
Vasudevan Deepak Kumar17-Apr-08 21:53
Vasudevan Deepak Kumar17-Apr-08 21:53 
AnswerRe: how is run Pin
Ariel Kazeed17-Apr-08 0:54
Ariel Kazeed17-Apr-08 0:54 
GeneralRe: how is run Pin
sugunavathysubramanian17-Apr-08 1:03
sugunavathysubramanian17-Apr-08 1:03 
GeneralRe: how is run Pin
pmarfleet17-Apr-08 1:09
pmarfleet17-Apr-08 1:09 
AnswerRe: how is run Pin
Ariel Kazeed17-Apr-08 1:11
Ariel Kazeed17-Apr-08 1:11 
AnswerRe: how is run Pin
Vasudevan Deepak Kumar17-Apr-08 21:51
Vasudevan Deepak Kumar17-Apr-08 21:51 
GeneralCreating a Word Document Pin
Jaya Prakash Rao17-Apr-08 0:31
Jaya Prakash Rao17-Apr-08 0:31 
GeneralRe: Creating a Word Document Pin
pmarfleet17-Apr-08 0:41
pmarfleet17-Apr-08 0:41 
GeneralRe: Creating a Word Document Pin
Jaya Prakash Rao17-Apr-08 0:50
Jaya Prakash Rao17-Apr-08 0:50 
GeneralRe: Creating a Word Document Pin
Ariel Kazeed17-Apr-08 0:58
Ariel Kazeed17-Apr-08 0:58 
Generalquestion Pin
nithydurai17-Apr-08 0:12
nithydurai17-Apr-08 0:12 
GeneralRe: question Pin
_AK_17-Apr-08 0:33
_AK_17-Apr-08 0:33 
GeneralRe: question Pin
pmarfleet17-Apr-08 0:40
pmarfleet17-Apr-08 0:40 
GeneralRe: question Pin
eyeseetee17-Apr-08 0:44
eyeseetee17-Apr-08 0:44 
GeneralRe: question Pin
_AK_17-Apr-08 0:46
_AK_17-Apr-08 0:46 
GeneralRe: question Pin
eyeseetee17-Apr-08 0:48
eyeseetee17-Apr-08 0:48 
GeneralRe: question Pin
_AK_17-Apr-08 0:52
_AK_17-Apr-08 0:52 

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.