Click here to Skip to main content
15,887,746 members
Home / Discussions / ASP.NET
   

ASP.NET

 
SuggestionRe: asp.net C# Pin
Richard MacCutchan18-Oct-12 2:57
mveRichard MacCutchan18-Oct-12 2:57 
AnswerRe: asp.net C# Pin
jkirkerx18-Oct-12 9:02
professionaljkirkerx18-Oct-12 9:02 
GeneralRe: asp.net C# Pin
Don_329-Oct-12 0:00
Don_329-Oct-12 0:00 
Questionpopulating textBox without postback Pin
byka17-Oct-12 5:25
byka17-Oct-12 5:25 
AnswerRe: populating textBox without postback Pin
jkirkerx17-Oct-12 12:17
professionaljkirkerx17-Oct-12 12:17 
AnswerRe: populating textBox without postback Pin
Mr. Tapan Kumar18-Oct-12 1:31
Mr. Tapan Kumar18-Oct-12 1:31 
AnswerRe: populating textBox without postback Pin
Mayank_Gupta_24-Oct-12 22:53
professionalMayank_Gupta_24-Oct-12 22:53 
QuestionWeb.config appsetting issue Pin
Blikkies16-Oct-12 20:48
professionalBlikkies16-Oct-12 20:48 
Hey guys,

I got a strange issue with appsettings in my webconfig.

What im trying to do is to set open date and a close date for my application using the following code:

Web.config
XML
<add key="VisitorApplicationOpenDate" value="#2012/10/01 00:00#"/>
<add key="VisitorApplicationCloseDate" value="#2013/05/23 23:59#"/>


Custom class
VB
Public Shared VisitorApplicationOpenDate As DateTime = CDate(ConfigurationManager.AppSettings("VisitorApplicationOpenDate"))

 Public Shared VisitorApplicationCloseDate As DateTime = CDate(ConfigurationManager.AppSettings("VisitorApplicationCloseDate"))

 Public Shared VisitorApplicationsIsOpen As Boolean = (Now >= VisitorApplicationOpenDate) And (Now <= VisitorApplicationCloseDate)


I uses the VisitorApplicationsIsOpen in the application form to check if the application is open.

But the problem is, it works but not always.

For example the application should of opened this morning but it dit not, when I opened the web.config and saved the file without doing any changes, the application was opened. And it is not the first time it has happened.

Any Idea what the problem can be?
AnswerRe: Web.config appsetting issue Pin
Richard Deeming17-Oct-12 3:43
mveRichard Deeming17-Oct-12 3:43 
Questionopen new windo without address bar Pin
ptvce16-Oct-12 3:43
ptvce16-Oct-12 3:43 
AnswerRe: open new windo without address bar Pin
Parwej Ahamad16-Oct-12 7:51
professionalParwej Ahamad16-Oct-12 7:51 
AnswerRe: open new windo without address bar Pin
liuguozhu201517-Oct-12 17:54
liuguozhu201517-Oct-12 17:54 
AnswerRe: open new windo without address bar Pin
KiranKumar Roy17-Oct-12 19:17
KiranKumar Roy17-Oct-12 19:17 
Questionhow to store the search results Pin
PP from bangalore16-Oct-12 3:23
PP from bangalore16-Oct-12 3:23 
AnswerRe: how to store the search results Pin
David Mujica16-Oct-12 3:58
David Mujica16-Oct-12 3:58 
GeneralRe: how to store the search results Pin
PP from bangalore16-Oct-12 4:30
PP from bangalore16-Oct-12 4:30 
QuestionRe: how to store the search results Pin
PP from bangalore16-Oct-12 5:05
PP from bangalore16-Oct-12 5:05 
AnswerRe: how to store the search results Pin
David Mujica16-Oct-12 8:45
David Mujica16-Oct-12 8:45 
QuestionRe: how to store the search results Pin
PP from bangalore17-Oct-12 2:32
PP from bangalore17-Oct-12 2:32 
Questioncrystal report for beginners Pin
abdul subhan mohammed15-Oct-12 0:04
professionalabdul subhan mohammed15-Oct-12 0:04 
AnswerRe: crystal report for beginners Pin
Richard MacCutchan15-Oct-12 4:50
mveRichard MacCutchan15-Oct-12 4:50 
GeneralSend a attachment(file) through mail Pin
Abhay .S. Patil14-Oct-12 23:27
Abhay .S. Patil14-Oct-12 23:27 
GeneralRe: Send a attachment(file) through mail Pin
Richard Deeming15-Oct-12 3:16
mveRichard Deeming15-Oct-12 3:16 
GeneralRe: Send a attachment(file) through mail Pin
Abhay .S. Patil15-Oct-12 19:14
Abhay .S. Patil15-Oct-12 19:14 
QuestionTiny MCE save problem Pin
leone14-Oct-12 3:17
leone14-Oct-12 3:17 

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.