Click here to Skip to main content
15,888,113 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: insert only date Pin
Christian Graus21-Oct-09 22:01
protectorChristian Graus21-Oct-09 22:01 
GeneralRe: insert only date Pin
m@dhu21-Oct-09 22:59
m@dhu21-Oct-09 22:59 
GeneralRe: insert only date Pin
Christian Graus22-Oct-09 0:51
protectorChristian Graus22-Oct-09 0:51 
AnswerRe: insert only date Pin
Nisha Agrawal22-Oct-09 0:34
Nisha Agrawal22-Oct-09 0:34 
GeneralRe: insert only date Pin
m@dhu22-Oct-09 1:11
m@dhu22-Oct-09 1:11 
GeneralRe: insert only date Pin
Richard MacCutchan22-Oct-09 1:30
mveRichard MacCutchan22-Oct-09 1:30 
GeneralRe: insert only date Pin
m@dhu22-Oct-09 3:26
m@dhu22-Oct-09 3:26 
GeneralRe: insert only date Pin
Richard MacCutchan22-Oct-09 4:20
mveRichard MacCutchan22-Oct-09 4:20 
madhukk wrote:
what im i doing wrong????


Well your main problem suggests that either DropDownList5 or its SelectedItem property do not have a valid reference.

Also you have dt.Minute where you want the month.

Lastly, you still seem to be wasting processing on converting DateTime values to and from String values when it is not necessary. I would be tempted to rewrite the above (assuming Session["startdate"] returns a DateTime value) :
       DateTime dt = Session["startdate"];
       TextBox1.Text = dt.ToString("dd/MM/yy");

DropDownList5.SelectedItem.Text = dt.Day.ToString();

Questionerror in my projects please need help its urgent Pin
AjitMourya21-Oct-09 21:40
AjitMourya21-Oct-09 21:40 
AnswerRe: error in my projects please need help its urgent Pin
nagendrathecoder21-Oct-09 21:53
nagendrathecoder21-Oct-09 21:53 
AnswerRe: error in my projects please need help its urgent Pin
Christian Graus21-Oct-09 21:59
protectorChristian Graus21-Oct-09 21:59 
QuestionIs there any other difference between AND & OR Pin
meeram39521-Oct-09 20:45
meeram39521-Oct-09 20:45 
AnswerRe: Is there any other difference between AND & OR Pin
Nuri Ismail21-Oct-09 20:55
Nuri Ismail21-Oct-09 20:55 
GeneralRe: Is there any other difference between AND & OR Pin
meeram39521-Oct-09 21:49
meeram39521-Oct-09 21:49 
AnswerRe: Is there any other difference between AND & OR Pin
Christian Graus21-Oct-09 21:39
protectorChristian Graus21-Oct-09 21:39 
QuestionBuilt Setup of ASP.net application Pin
S.Aijaz21-Oct-09 20:20
S.Aijaz21-Oct-09 20:20 
AnswerRe: Built Setup of ASP.net application Pin
Christian Graus21-Oct-09 20:21
protectorChristian Graus21-Oct-09 20:21 
GeneralRe: Built Setup of ASP.net application Pin
S.Aijaz21-Oct-09 20:39
S.Aijaz21-Oct-09 20:39 
GeneralRe: Built Setup of ASP.net application Pin
Christian Graus21-Oct-09 22:01
protectorChristian Graus21-Oct-09 22:01 
GeneralRe: Built Setup of ASP.net application Pin
S.Aijaz22-Oct-09 0:07
S.Aijaz22-Oct-09 0:07 
QuestionBrowser close issue Pin
yrishi21-Oct-09 19:29
yrishi21-Oct-09 19:29 
AnswerRe: Browser close issue Pin
Christian Graus21-Oct-09 20:24
protectorChristian Graus21-Oct-09 20:24 
GeneralRe: Browser close issue Pin
yrishi21-Oct-09 21:28
yrishi21-Oct-09 21:28 
GeneralRe: Browser close issue Pin
Christian Graus21-Oct-09 21:40
protectorChristian Graus21-Oct-09 21:40 
GeneralRe: Browser close issue Pin
yrishi21-Oct-09 22:28
yrishi21-Oct-09 22:28 

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.