Click here to Skip to main content
15,916,941 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: images on gridview Pin
Not Active26-Sep-06 11:00
mentorNot Active26-Sep-06 11:00 
GeneralRe: images on gridview Pin
Britney S. Morales26-Sep-06 11:49
Britney S. Morales26-Sep-06 11:49 
GeneralRe: images on gridview Pin
Not Active26-Sep-06 12:02
mentorNot Active26-Sep-06 12:02 
AnswerRe: images on gridview Pin
Bishoy Labib26-Sep-06 12:35
Bishoy Labib26-Sep-06 12:35 
QuestionNeed GetGlobalResourcesObject (the type+property version) Pin
User 178031526-Sep-06 9:25
User 178031526-Sep-06 9:25 
AnswerRe: Need GetGlobalResourcesObject (the type+property version) Pin
minhpc_bk27-Sep-06 2:33
minhpc_bk27-Sep-06 2:33 
GeneralRe: Need GetGlobalResourcesObject (the type+property version) Pin
User 178031527-Sep-06 2:55
User 178031527-Sep-06 2:55 
QuestionFormatting Dates in Form to Email Pin
hers2keep26-Sep-06 9:15
hers2keep26-Sep-06 9:15 
I have several date fields in an employment application that will be hosted on our intranet at work. The form is set up currently to email the application to our human resources department in HTML format. I'm using a javascript based calendar control that is populating the textboxes correctly. My problem begins when I try to capture that date in the emailed application. They just don't show up at all. I can see the values in the textbox when I click on submit, but when the email is received, the dates just aren't there. Everything else comes across correctly.

Here is what I've got right now (for just two of the dates):

Dim dtmildateto As Date

I tried this formatting from another group's suggestion, but the date always returns "00/01/0001" no matter whether the date textbox is filled or empty.

dtmildateto = IIf(Request.Form("mildateto") = "", DateTime.MinValue, Request.Form("mildateto"))

Then I tried JUST calling the date from the textbox and for these I get an error that says --
"System.InvalidCastException: Conversion from string "" to type 'Date' is not valid" and points to the first line below...

dtmildateto = Request.Form("mildateto")

My append statement is set up as follows:
ebody.Append(dtmildateto & " " & " to " & dtmildateto & " ")

My textbox with the image for the calendar control is set up as follows:



The end result is if the field is populated, I want mm/dd/yyyy as the format for the date in the email; if the field is empty, then I just want   so the tables don't lose their formatting.

What am I missing??




Thanks,
Carla
AnswerRe: Formatting Dates in Form to Email Pin
Guffa26-Sep-06 11:37
Guffa26-Sep-06 11:37 
QuestionEncrypted Emails in ASP.NET Pin
S7626-Sep-06 8:24
S7626-Sep-06 8:24 
QuestionHelp with Regex (Matching words longer than 20 charcaters - to stop long words breaking my layouts) Pin
Dominic Pettifer26-Sep-06 7:53
Dominic Pettifer26-Sep-06 7:53 
QuestionKind of out of place since theis is not an ASP.NET question, but it's ASP & VB script related Pin
RoswellNX26-Sep-06 7:41
RoswellNX26-Sep-06 7:41 
AnswerRe: Kind of out of place since theis is not an ASP.NET question, but it's ASP & VB script related Pin
Guffa26-Sep-06 8:07
Guffa26-Sep-06 8:07 
GeneralRe: Kind of out of place since theis is not an ASP.NET question, but it's ASP & VB script related Pin
RoswellNX26-Sep-06 8:21
RoswellNX26-Sep-06 8:21 
GeneralRe: Kind of out of place since theis is not an ASP.NET question, but it's ASP & VB script related Pin
Guffa26-Sep-06 8:59
Guffa26-Sep-06 8:59 
GeneralRe: Kind of out of place since theis is not an ASP.NET question, but it's ASP & VB script related Pin
RoswellNX26-Sep-06 9:17
RoswellNX26-Sep-06 9:17 
AnswerRe: Kind of out of place since theis is not an ASP.NET question, but it's ASP & VB script related Pin
Guffa26-Sep-06 9:51
Guffa26-Sep-06 9:51 
GeneralRe: Kind of out of place since theis is not an ASP.NET question, but it's ASP & VB script related Pin
RoswellNX26-Sep-06 10:09
RoswellNX26-Sep-06 10:09 
AnswerRe: Kind of out of place since theis is not an ASP.NET question, but it's ASP & VB script related Pin
Guffa26-Sep-06 11:24
Guffa26-Sep-06 11:24 
NewsWorks! Pin
RoswellNX26-Sep-06 10:38
RoswellNX26-Sep-06 10:38 
QuestionEvent Handling Pin
jorsh26-Sep-06 7:06
jorsh26-Sep-06 7:06 
AnswerRe: Event Handling Pin
minhpc_bk26-Sep-06 15:40
minhpc_bk26-Sep-06 15:40 
QuestionAsp.Net 2.0 RSS. Need advice. Pin
shapper26-Sep-06 5:33
shapper26-Sep-06 5:33 
AnswerRe: Asp.Net 2.0 RSS. Need advice. Pin
minhpc_bk26-Sep-06 15:41
minhpc_bk26-Sep-06 15:41 
Question.NET2 Dispay data from SQL2005 Pin
munklefish26-Sep-06 5:09
munklefish26-Sep-06 5:09 

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.