Click here to Skip to main content
15,498,622 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Getting undefined in Cascading DropDownList In ASP.Core MVC ? Pin
Abdalla Ben Omran17-Jul-19 4:26
MemberAbdalla Ben Omran17-Jul-19 4:26 
GeneralRe: Getting undefined in Cascading DropDownList In ASP.Core MVC ? Pin
Vincent Maverick Durano18-Jul-19 9:00
professionalVincent Maverick Durano18-Jul-19 9:00 
QuestionA Potentially Dangerous Request.form Value Was Detected From The Client Pin
Member 1451693730-Jun-19 20:32
MemberMember 1451693730-Jun-19 20:32 
AnswerRe: A Potentially Dangerous Request.form Value Was Detected From The Client Pin
F-ES Sitecore30-Jun-19 23:01
professionalF-ES Sitecore30-Jun-19 23:01 
GeneralRe: A Potentially Dangerous Request.form Value Was Detected From The Client Pin
Member 1451693730-Jun-19 23:50
MemberMember 1451693730-Jun-19 23:50 
QuestionHow to read app config in a class library? Pin
AstroTheDog28-Jun-19 5:37
MemberAstroTheDog28-Jun-19 5:37 
AnswerRe: How to read app config in a class library? Pin
F-ES Sitecore28-Jun-19 5:50
professionalF-ES Sitecore28-Jun-19 5:50 
QuestionI am having issues with getting results using dates as parameters Pin
samflex26-Jun-19 4:38
Membersamflex26-Jun-19 4:38 
QuestionRe: I am having issues with getting results using dates as parameters Pin
Richard MacCutchan26-Jun-19 7:51
mveRichard MacCutchan26-Jun-19 7:51 
AnswerRe: I am having issues with getting results using dates as parameters Pin
samflex26-Jun-19 8:12
Membersamflex26-Jun-19 8:12 
GeneralRe: I am having issues with getting results using dates as parameters Pin
Richard MacCutchan26-Jun-19 8:27
mveRichard MacCutchan26-Jun-19 8:27 
GeneralRe: I am having issues with getting results using dates as parameters Pin
samflex26-Jun-19 8:41
Membersamflex26-Jun-19 8:41 
GeneralRe: I am having issues with getting results using dates as parameters Pin
Richard Deeming26-Jun-19 9:35
mveRichard Deeming26-Jun-19 9:35 
Try something like:
VB.NET
Dim startDate As DateTime
If DateTime.TryParse(date_start.Text, startDate) Then
    cmd.Parameters.AddWithValue("@start", startDate)
Else
    cmd.Parameters.AddWithValue("@start", DBNull.Value)
End If

DateTime.TryParse Method (System) | Microsoft Docs[^]

If the date picker's format doesn't match the server's regional settings, then you may need to use DateTime.TryParseExact Method[^] instead.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: I am having issues with getting results using dates as parameters Pin
samflex26-Jun-19 11:40
Membersamflex26-Jun-19 11:40 
GeneralRe: I am having issues with getting results using dates as parameters Pin
Richard Deeming27-Jun-19 3:14
mveRichard Deeming27-Jun-19 3:14 
GeneralRe: I am having issues with getting results using dates as parameters Pin
samflex27-Jun-19 4:27
Membersamflex27-Jun-19 4:27 
GeneralRe: I am having issues with getting results using dates as parameters Pin
Richard Deeming27-Jun-19 4:32
mveRichard Deeming27-Jun-19 4:32 
GeneralRe: I am having issues with getting results using dates as parameters Pin
samflex27-Jun-19 5:30
Membersamflex27-Jun-19 5:30 
GeneralRe: I am having issues with getting results using dates as parameters Pin
Richard Deeming27-Jun-19 5:33
mveRichard Deeming27-Jun-19 5:33 
GeneralRe: I am having issues with getting results using dates as parameters Pin
Richard Deeming27-Jun-19 5:39
mveRichard Deeming27-Jun-19 5:39 
GeneralRe: I am having issues with getting results using dates as parameters Pin
samflex27-Jun-19 5:54
Membersamflex27-Jun-19 5:54 
GeneralRe: I am having issues with getting results using dates as parameters Pin
Richard Deeming27-Jun-19 5:58
mveRichard Deeming27-Jun-19 5:58 
AnswerRe: I am having issues with getting results using dates as parameters Pin
ZurdoDev26-Jun-19 9:23
professionalZurdoDev26-Jun-19 9:23 
Questionopen word file in client side Pin
Member 1447396626-Jun-19 2:34
MemberMember 1447396626-Jun-19 2:34 
AnswerRe: open word file in client side Pin
Richard MacCutchan26-Jun-19 2:44
mveRichard MacCutchan26-Jun-19 2:44 

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.