Click here to Skip to main content
15,881,455 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Need help Pin
S.Dhanasekaran1-Oct-09 3:10
S.Dhanasekaran1-Oct-09 3:10 
QuestionIIS treating .html pages as .aspx pages Pin
laziale30-Sep-09 3:47
laziale30-Sep-09 3:47 
AnswerRe: IIS treating .html pages as .aspx pages Pin
Abhijit Jana30-Sep-09 4:22
professionalAbhijit Jana30-Sep-09 4:22 
AnswerRe: IIS treating .html pages as .aspx pages Pin
Kannan Ar30-Sep-09 4:24
professionalKannan Ar30-Sep-09 4:24 
AnswerRe: IIS treating .html pages as .aspx pages Pin
Abhishek Sur30-Sep-09 10:44
professionalAbhishek Sur30-Sep-09 10:44 
Questionweb.config file maximum size question? Pin
kuyucakli30-Sep-09 3:12
kuyucakli30-Sep-09 3:12 
AnswerRe: web.config file maximum size question? Pin
leckey30-Sep-09 6:13
leckey30-Sep-09 6:13 
QuestionWhy Don't Change Server Time? (Please Help, It is very urgent) Pin
Hamid Khezeli30-Sep-09 2:57
Hamid Khezeli30-Sep-09 2:57 
I wrote a Web application by ASP.NET and C#. I need to change date of my server behind about 1 year ago and after that changing date came back. For example, time is 30/09/2009 and when the program runs, time should be 30/09/2008 and after 3sec time comes back 30/09/2009.
I wrote this rule by ASP.NET and C# and that web application work correctly, but for 5 days, that code can't change date of server, although web application worked correctly and could change date by below codes.
Also these codes work and can change date of server when those are written as WIN application and don't return any error, and those are written as WEB application and run in Visual Studio 2008 don't return any error and works correctly, but when those codes are written as WEB application and run in ISS can't change date of server and return "error: 1314", so I be confused!!!
I will be very glad if somebody helps me.
Thank you very much.


<pre>  
  
   [DllImport("kernel32.dll", SetLastError = true)]
      public static extern int SetLocalTime(ref SystemTime lpSystemTime);
     
      [DllImport("kernel32.dll", SetLastError = true)]
      private static extern uint GetLastError();

      public struct SystemTime
      {
            public short wYear;
            public short wMonth;
            public short wDayOfWeek;
            public short wDay;
            public short wHour;
            public short wMinute;
            public short wSecond;
            public short wMilliseconds;
      }

      private void ChangeDate()
      {
                  SystemTime systNew = new SystemTime();
                  systNew.wDay = (short)dateTime.Day;
                  systNew.wMonth = (short)dateTime.Month;
                  systNew.wYear = (short)2008;
                  systNew.wHour = (short)dateTime.Hour;
                  systNew.wMinute = (short)dateTime.Minute;
                  systNew.wSecond = (short)dateTime.Second;
                  SetLocalTime(ref systNew);
                  uint lastErrCode = GetLastError();

      }</pre>
AnswerRe: Why Don't Change Server Time? (Please Help, It is NOT urgent) - crosspost Pin
Richard MacCutchan30-Sep-09 3:44
mveRichard MacCutchan30-Sep-09 3:44 
GeneralRe: Why Don't Change Server Time? (Please Help, It is NOT urgent) - crosspost Pin
Hamid Khezeli30-Sep-09 4:08
Hamid Khezeli30-Sep-09 4:08 
GeneralRe: Why Don't Change Server Time? (Please Help, It is NOT urgent) - crosspost Pin
Richard MacCutchan30-Sep-09 6:04
mveRichard MacCutchan30-Sep-09 6:04 
GeneralRe: Why Don't Change Server Time? (Please Help, It is NOT urgent) - crosspost Pin
leckey30-Sep-09 6:22
leckey30-Sep-09 6:22 
GeneralRe: Why Don't Change Server Time? (Please Help, It is NOT urgent) - crosspost Pin
Hamid Khezeli30-Sep-09 8:51
Hamid Khezeli30-Sep-09 8:51 
AnswerRe: Why Don't Change Server Time? (Please Help, It is very urgent) Pin
Vasudevan Deepak Kumar1-Oct-09 2:52
Vasudevan Deepak Kumar1-Oct-09 2:52 
QuestionCalculating Web Service Response Time Pin
prabhakar dwivedi30-Sep-09 1:25
prabhakar dwivedi30-Sep-09 1:25 
AnswerRe: Calculating Web Service Response Time Pin
Abhishek Sur30-Sep-09 2:41
professionalAbhishek Sur30-Sep-09 2:41 
GeneralRe: Calculating Web Service Response Time Pin
prabhakar dwivedi30-Sep-09 3:01
prabhakar dwivedi30-Sep-09 3:01 
GeneralRe: Calculating Web Service Response Time Pin
Abhishek Sur30-Sep-09 5:16
professionalAbhishek Sur30-Sep-09 5:16 
GeneralRe: Calculating Web Service Response Time Pin
prabhakar dwivedi30-Sep-09 21:38
prabhakar dwivedi30-Sep-09 21:38 
GeneralRe: Calculating Web Service Response Time Pin
Abhishek Sur30-Sep-09 22:25
professionalAbhishek Sur30-Sep-09 22:25 
QuestionRe: Calculating Web Service Response Time Pin
prabhakar dwivedi30-Sep-09 23:12
prabhakar dwivedi30-Sep-09 23:12 
Questionwindow.open() --&gt; modify title bar Url Pin
Hemant Thaker30-Sep-09 1:16
Hemant Thaker30-Sep-09 1:16 
AnswerRe: window.open() --&gt; modify title bar Url Pin
Abhishek Sur30-Sep-09 2:39
professionalAbhishek Sur30-Sep-09 2:39 
GeneralRe: window.open() --&gt; modify title bar Url Pin
Abhijit Jana30-Sep-09 2:47
professionalAbhijit Jana30-Sep-09 2:47 
GeneralRe: window.open() --&gt; modify title bar Url Pin
Abhishek Sur30-Sep-09 22:07
professionalAbhishek Sur30-Sep-09 22:07 

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.