Click here to Skip to main content
14,634,310 members
Home » Discussions » ASP.NET
   

ASP.NET

 
QuestionHow to read app config in a class library? Pin
Cenk KIZILDAĞ28-Jun-19 4:37
MemberCenk KIZILDAĞ28-Jun-19 4:37 
AnswerRe: How to read app config in a class library? Pin
F-ES Sitecore28-Jun-19 4:50
mveF-ES Sitecore28-Jun-19 4:50 
QuestionI am having issues with getting results using dates as parameters Pin
samflex26-Jun-19 3:38
Membersamflex26-Jun-19 3:38 
QuestionRe: I am having issues with getting results using dates as parameters Pin
Richard MacCutchan26-Jun-19 6:51
mveRichard MacCutchan26-Jun-19 6:51 
AnswerRe: I am having issues with getting results using dates as parameters Pin
samflex26-Jun-19 7:12
Membersamflex26-Jun-19 7:12 
GeneralRe: I am having issues with getting results using dates as parameters Pin
Richard MacCutchan26-Jun-19 7:27
mveRichard MacCutchan26-Jun-19 7:27 
GeneralRe: I am having issues with getting results using dates as parameters Pin
samflex26-Jun-19 7:41
Membersamflex26-Jun-19 7:41 
GeneralRe: I am having issues with getting results using dates as parameters Pin
Richard Deeming26-Jun-19 8:35
mveRichard Deeming26-Jun-19 8:35 
Try something like:
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 10:40
Membersamflex26-Jun-19 10:40 
GeneralRe: I am having issues with getting results using dates as parameters Pin
Richard Deeming27-Jun-19 2:14
mveRichard Deeming27-Jun-19 2:14 
GeneralRe: I am having issues with getting results using dates as parameters Pin
samflex27-Jun-19 3:27
Membersamflex27-Jun-19 3:27 
GeneralRe: I am having issues with getting results using dates as parameters Pin
Richard Deeming27-Jun-19 3:32
mveRichard Deeming27-Jun-19 3:32 
GeneralRe: I am having issues with getting results using dates as parameters Pin
samflex27-Jun-19 4:30
Membersamflex27-Jun-19 4:30 
GeneralRe: I am having issues with getting results using dates as parameters Pin
Richard Deeming27-Jun-19 4:33
mveRichard Deeming27-Jun-19 4:33 
GeneralRe: I am having issues with getting results using dates as parameters Pin
Richard Deeming27-Jun-19 4:39
mveRichard Deeming27-Jun-19 4:39 
GeneralRe: I am having issues with getting results using dates as parameters Pin
samflex27-Jun-19 4:54
Membersamflex27-Jun-19 4:54 
GeneralRe: I am having issues with getting results using dates as parameters Pin
Richard Deeming27-Jun-19 4:58
mveRichard Deeming27-Jun-19 4:58 
AnswerRe: I am having issues with getting results using dates as parameters Pin
ZurdoDev26-Jun-19 8:23
mveZurdoDev26-Jun-19 8:23 
Questionopen word file in client side Pin
Member 1447396626-Jun-19 1:34
MemberMember 1447396626-Jun-19 1:34 
AnswerRe: open word file in client side Pin
Richard MacCutchan26-Jun-19 1:44
mveRichard MacCutchan26-Jun-19 1:44 
GeneralRe: open word file in client side Pin
Member 1447396626-Jun-19 17:48
MemberMember 1447396626-Jun-19 17:48 
GeneralRe: open word file in client side Pin
Richard MacCutchan26-Jun-19 21:14
mveRichard MacCutchan26-Jun-19 21:14 
QuestionSafe Storage of Secrets in .NET Pin
Ger Hayden24-Jun-19 21:58
MemberGer Hayden24-Jun-19 21:58 
AnswerRe: Safe Storage of Secrets in .NET Pin
Richard Deeming25-Jun-19 1:25
mveRichard Deeming25-Jun-19 1:25 
GeneralRe: Safe Storage of Secrets in .NET Pin
Ger Hayden25-Jun-19 6:55
MemberGer Hayden25-Jun-19 6:55 

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.