Click here to Skip to main content
15,886,067 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Captcha Image on HTML by ASP code Pin
Christian Graus1-Oct-09 12:26
protectorChristian Graus1-Oct-09 12:26 
AnswerFound Solution, through forums.asp.net Pin
11Developer2-Oct-09 22:35
11Developer2-Oct-09 22:35 
QuestionASP and C# codes work in Visual Stadio, but not work on http (IIS) !! Pin
Hamid Khezeli30-Sep-09 18:52
Hamid Khezeli30-Sep-09 18:52 
GeneralSame Question Posted. Pin
nagendrathecoder30-Sep-09 19:01
nagendrathecoder30-Sep-09 19:01 
GeneralRe: Same Question Posted. Pin
Hamid Khezeli30-Sep-09 19:24
Hamid Khezeli30-Sep-09 19:24 
GeneralRe: Same Question Posted. Pin
nagendrathecoder30-Sep-09 19:26
nagendrathecoder30-Sep-09 19:26 
GeneralRe: Same Question Posted. Pin
Richard MacCutchan30-Sep-09 22:35
mveRichard MacCutchan30-Sep-09 22:35 
QuestionWhy Don't Change Server Time? (Please Help, It is very urgent) Pin
Hamid Khezeli30-Sep-09 3:00
Hamid Khezeli30-Sep-09 3:00 
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>
AnswerAnother Crosspost Pin
Richard MacCutchan30-Sep-09 3:46
mveRichard MacCutchan30-Sep-09 3:46 
Question[Message Deleted] Pin
Bizit30-Sep-09 1:32
Bizit30-Sep-09 1:32 
AnswerRe: Javascript,JSp and AJAX Pin
Richard MacCutchan30-Sep-09 1:49
mveRichard MacCutchan30-Sep-09 1:49 
GeneralRe: Javascript,JSp and AJAX Pin
Bizit30-Sep-09 2:06
Bizit30-Sep-09 2:06 
GeneralRe: Javascript,JSp and AJAX Pin
Richard MacCutchan30-Sep-09 3:15
mveRichard MacCutchan30-Sep-09 3:15 
GeneralRe: Javascript,JSp and AJAX Pin
Richard MacCutchan30-Sep-09 3:41
mveRichard MacCutchan30-Sep-09 3:41 
General[Message Deleted] Pin
Bizit30-Sep-09 5:16
Bizit30-Sep-09 5:16 
GeneralRe: Javascript,JSp and AJAX Pin
Richard MacCutchan30-Sep-09 5:46
mveRichard MacCutchan30-Sep-09 5:46 
General[Message Deleted] Pin
Bizit1-Oct-09 1:25
Bizit1-Oct-09 1:25 
GeneralRe: Javascript,JSp and AJAX Pin
Richard MacCutchan1-Oct-09 2:53
mveRichard MacCutchan1-Oct-09 2:53 
GeneralRe: Javascript,JSp and AJAX [modified] Pin
Bizit1-Oct-09 4:54
Bizit1-Oct-09 4:54 
GeneralRe: Javascript,JSp and AJAX Pin
Richard MacCutchan1-Oct-09 5:35
mveRichard MacCutchan1-Oct-09 5:35 
QuestionPost a Comment with JavaScript Pin
wartotojas29-Sep-09 10:08
wartotojas29-Sep-09 10:08 
AnswerRe: Post a Comment with JavaScript Pin
Joe Simes29-Sep-09 10:23
Joe Simes29-Sep-09 10:23 
QuestionHTML Email CC and Autoreply Help Required Pin
Dalek Dave28-Sep-09 7:26
professionalDalek Dave28-Sep-09 7:26 
AnswerRe: HTML Email CC and Autoreply Help Required Pin
Christian Graus28-Sep-09 11:16
protectorChristian Graus28-Sep-09 11:16 
GeneralRe: HTML Email CC and Autoreply Help Required Pin
Dalek Dave28-Sep-09 11:39
professionalDalek Dave28-Sep-09 11:39 

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.