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

ASP.NET

 
QuestionAssigning the SelectedValue of Dropdownlist within Gridview to a datatable field Pin
sheringkapoting22-Jun-12 1:59
sheringkapoting22-Jun-12 1:59 
AnswerRe: Assigning the SelectedValue of Dropdownlist within Gridview to a datatable field Pin
Sanjay Kunjam22-Jun-12 2:57
Sanjay Kunjam22-Jun-12 2:57 
GeneralRe: Assigning the SelectedValue of Dropdownlist within Gridview to a datatable field Pin
sheringkapoting22-Jun-12 3:21
sheringkapoting22-Jun-12 3:21 
GeneralRe: Assigning the SelectedValue of Dropdownlist within Gridview to a datatable field Pin
AshishChaudha29-Jun-12 22:30
AshishChaudha29-Jun-12 22:30 
QuestionC# session variable Pin
sc steinhayse21-Jun-12 12:05
sc steinhayse21-Jun-12 12:05 
AnswerRe: C# session variable Pin
jkirkerx21-Jun-12 12:21
professionaljkirkerx21-Jun-12 12:21 
AnswerRe: C# session variable Pin
AspDotNetDev21-Jun-12 13:02
protectorAspDotNetDev21-Jun-12 13:02 
AnswerRe: C# session variable Pin
Rahul Rajat Singh25-Jun-12 0:56
professionalRahul Rajat Singh25-Jun-12 0:56 
C#
//get the session value in variable
DateTime dt = Session["Date1"] as DateTime;

//check if session value is null or not
if(dt != null)
{
  //we have some value
  Date1.Text = dt.ToString("yyyy-MM-dd"); //OR
  Date1.Text = dt.ToString("yyyy-MM-dd HH:mm:ss"); //which ever format you need
}
else
{
  //there was no value in session so perhaps take some other action or propagate error somewhere
}

Every now and then say, "What the Elephant." "What the Elephant" gives you freedom. Freedom brings opportunity. Opportunity makes your future.

QuestionShowing a single Modal Popup Extender on Click of Multiple Controls. Pin
sheringkapoting21-Jun-12 2:45
sheringkapoting21-Jun-12 2:45 
AnswerRe: Showing a single Modal Popup Extender on Click of Multiple Controls. Pin
jkirkerx21-Jun-12 10:58
professionaljkirkerx21-Jun-12 10:58 
QuestionExpected ')' Pin
Member 911397420-Jun-12 21:47
Member 911397420-Jun-12 21:47 
AnswerRe: Expected ')' Pin
Nagy Vilmos20-Jun-12 22:44
professionalNagy Vilmos20-Jun-12 22:44 
AnswerRe: Expected ')' Pin
ZurdoDev21-Jun-12 2:34
professionalZurdoDev21-Jun-12 2:34 
AnswerRe: Expected ')' Pin
Abhinav S21-Jun-12 20:16
Abhinav S21-Jun-12 20:16 
AnswerRe: Expected ')' Pin
JMummery23-Jun-12 13:34
professionalJMummery23-Jun-12 13:34 
AnswerRe: Expected ')' Pin
Dhyanga9-Jul-12 11:38
Dhyanga9-Jul-12 11:38 
QuestionFormated tooltip Pin
lrsalunkhe20-Jun-12 20:39
lrsalunkhe20-Jun-12 20:39 
AnswerRe: Formated tooltip Pin
ZurdoDev21-Jun-12 2:35
professionalZurdoDev21-Jun-12 2:35 
QuestionCommon error when uploading files? Pin
Member 245846720-Jun-12 18:26
Member 245846720-Jun-12 18:26 
AnswerRe: Common error when uploading files? Pin
Sandeep Mewara20-Jun-12 19:43
mveSandeep Mewara20-Jun-12 19:43 
AnswerRe: Common error when uploading files? Pin
ZurdoDev21-Jun-12 2:37
professionalZurdoDev21-Jun-12 2:37 
Questionasp.net 2010 button Pin
classy_dog20-Jun-12 10:08
classy_dog20-Jun-12 10:08 
AnswerRe: asp.net 2010 button Pin
R. Giskard Reventlov20-Jun-12 10:47
R. Giskard Reventlov20-Jun-12 10:47 
GeneralRe: asp.net 2010 button Pin
classy_dog20-Jun-12 15:53
classy_dog20-Jun-12 15:53 
AnswerRe: asp.net 2010 button Pin
David Mujica20-Jun-12 11:03
David Mujica20-Jun-12 11:03 

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.