C# - Due Date Set Via EWS Is Wrong In Reminder Popup?
Apr 21, 2010
I'm having some trouble using EWS with tasks and reminders, specifically, the due date.
When I run my code, shown below, the task is added to my exchange account and I can see it fine in outlook. All the data in it looks fine too. However, if I specify to have a reminder for the task, the due date it shows is very wrong.
It's usually 17 hours in the future, but the screenshot I've provided shows it being 19 hours in the future. I'm finding it very strange that if I open the task, the due date looks fine, but the reminder is saying it is due well into the future.
Screenshot: http://s970.photobucket.com/albums/ae187/paulehn/?action=view¤t=ewstask.jpg
ExchangeVersion exchVersion = new ExchangeVersion();
exchVersion = ExchangeVersion.Exchange2007_SP1;
ExchangeService service = new ExchangeService(exchVersion);
service.UseDefaultCredentials = true;
service.Url = new Uri("https://mail.domain.com.au/ews/exchange.asmx");
Task task = new Task(service);
task.Subject = "Subject";
task.Body = new MessageBody(BodyType.HTML, "Body");
task.StartDate = DateTime.Today;
task.DueDate = DateTime.Now.AddHours(2);
task.ReminderDueBy = DateTime.Now;
task.ReminderMinutesBeforeStart = 15;
task.IsReminderSet = true;
task.Save();
View 1 Replies
Similar Messages:
Aug 1, 2010
I have a weird thing happening. I have two identical databases installed on one virtual machine but under two different instances of SQLServer. For some reason, periodically when saving from one it will save to the other instead. Using debug, I have verified that the connection string is correct and when the item saves, it still saves to the wrong database.I use session variable, and am of the belief that it might have something to do with it...and t hat when I go from one to the other it is still getting the connection string form the other for some reason.To make sure that it isn't a problem, I make sure that I completely close out one database before opening the other in a new IE window.I assume that when I completely close out an internet explorer window that it abandons all session states. Is that true?
View 7 Replies
Dec 15, 2010
i am working in the vb.net and inserting the date into DATETIME field sql db. During duging am checking it shows correct date but when insert into db it show "1/1/1900 00:00:00" . I dont know whats the problem. Code:
Dim ObjDob As DateTime = CDate(Me.ddlDates.SelectedValue & "/" & Me.ddlMonths.SelectedValue & "/" & Me.ddlYears.SelectedValue).ToString("dd/MM/yyyy")
View 6 Replies
Dec 9, 2010
am developing an application using asp.net+ajax.i used calender extender control to select date and showing that date in a text box.my requirement is when select date from the previous year (i.e 2009) from the calender extender control...then a message should show like"you should not select the previous year date" and immediately current day date should fill in textbox.
View 4 Replies
Feb 18, 2011
After deploying our web application, one of the user was not able to login to the application. After checking, we could realize that his system date was worng, It was a greater than current date. If the system data was less than the current date we can still login. We are using asp.net membership
View 2 Replies
Nov 28, 2010
I have a problem using the calendar control on asp.net. Whenever I pick a date from the calendar to input it on my table which is from sql server 2005, I the wrong time. For example the time today is 6pm, 12 AM will be shown on my table. What do you think is the problem?
Do you think I have a problem with my timezone on mysql server 2005 or with my asp.net application. I'm doing a web-based program.
View 1 Replies
Aug 1, 2010
I have a very weird thing happening. I have two databases that have exactly the same tables but different database names on the same virtual machine, but in different instances of SQL Server. For some reason, when using one of them, it will save to the other. In debug, looking at my connection string..I have verified that it is correct, yet when I allow the save, I look in the table and it isn't there, it is in the other database that is in a table with a completely different name and in a different instance of SQL Server.
View 1 Replies
Nov 10, 2010
to create automated sms reminder.
View 2 Replies
Feb 9, 2010
iam new to sending automatic email reminders can anyone tell me how to do that, and plus i have never used sms technology , but i want to implement this one in my current project can you give me any idea how to do this together, sending automatic email n sms by checking today's date , you kno the reminder part,
View 3 Replies
Feb 16, 2011
I store 'projects' in a database table (sql 2008), and each one has a deadline (datetime field). The projects are accessed through a public website which runs on two load balanced servers, independent of the database server. Can anyone recommend some good ways to automatically e-mail reminders once a deadline date is approaching? I would like to find all projects that are due within, say, 5 days, grabs all the user's email addresses associated with each project id, and send them a reminder e-mail, so the solution would need to allow code to find the e-mail addresses and obviously send the e-mail.
View 4 Replies
May 12, 2010
i am making a brithday reminder for my project i need to know can i m gonna proceed for further funcationality as i have already have table frnds with their name,lastname and dateofbirthand how i gonna display on my home pagealso i m trying to make it in Asp.net C# but i don't think c# don't support Datediff :(
View 5 Replies
May 7, 2015
i have created one web application.
i think can i show notification in windows operating systems like some kind of Remainder.
View 1 Replies
May 30, 2012
I want to make a reminder or alert.It send email on which reminder date is fixed by user.
How can i do it in asp.net 4.0?
View 1 Replies
Jan 17, 2011
I have a Calendar control on a page. I want to open a popup window when a user clicks on a date.
What event on the calendar can I hook up the javascript window.showModalDialog to?? There is no onClientClick...
View 3 Replies
Jan 27, 2011
How i display the details of event in popup on mouse over of any calendar date. I am populating the calanedar control from database and want to display the details of event in Popup on mouse over on particular date if there is an event.
View 3 Replies
Mar 18, 2011
I d like to send bulk emails as part of custom reminder service for my website (500 emails approximately).Which is the better way to send all these emails without spamming? I was thinking of sending 15-20 emails per minute, to avoid overloading mail server. Is it better to use multiple TO recipients or use BCC?The reminder service will run on a background task.
View 5 Replies
Feb 25, 2010
I have a homepage.aspx i would like to display the upcoming birthday and the BIRTHDATE AND THE NAME OF THE PERSON should be displayed on the homepage before 1 week of the birthday untill the BIRTH DAY
This is the structure of the table i created:
Table name : Brithday
Column datatype
id int PRIMARY KEY
name varchar(Max)
birthday datetime
now please provide me code in order to get this peice on my homepage and for storing i want to have textboxes on home page saying "Enter your name" another textbox saying " enter your birthdate" and once anyone clicks on submit it should be saved in the birthday table in the database.
View 12 Replies
Apr 16, 2010
suppose I have appointments and events on certain dates.I want to show this on a calendar that shows all 30 days by having the date bold.Further more, I want the user to be able to hover over that bolded date, and have a popout that will display the appointment/event name and details.
View 3 Replies
Sep 3, 2010
i have a gridview in each row of gridview row i hve 2 columns. in each row i need a button to enter date, when i click button one calender shld popup and data shld be display at end of the row
View 7 Replies
Jan 17, 2010
I am trying to get a modal popup inside a modal popup?, also i want to fire the modal popup on a condition in a text change event of a textbox?...is this possible and can anyone give me directon on this
View 5 Replies
Jul 10, 2010
i used below code for date time picker validation but it's not working.
Actually I want a date time picker which date dd/mm/yyyy format date. With validation for start and end date. Also for manual entry it should take only no. and for date rest like / or, will be auto formatted.means user should not be able to enter it.
I m using c# .net 2008.
[code]....
View 2 Replies
Mar 24, 2010
I need to send emails based on users input time and day (based on their time zone)? Kind of a reminder.
For Example: User input 2:00pm Eastern Time on my server I have different time zone, how to calculate the time and send the email at users time-zone. Its a web application. What is the best way to accomplish it using asp.net c#? If somebody already done it in the past I will be glad to take a look at source code.
View 1 Replies
Feb 18, 2010
I want to authenticate a user using model popup extender. So I wrote a program to do this. Everything OK when user enter the correct details. But user enters the wrong detail, it should shows in a lablel in a popup panel. It shows; but the problem is it close the popup . But I want to keep the popup if the user enters the wrong details. How can I do this?
View 5 Replies
Jul 27, 2010
I'm using modal popup extender and panel with calendar in it. Click the "Next / Previous Month" closes the modal popup. How do I tell the modal popup to ignore click events in a calendar control inside the panel targeted for popup? I'm confused because when using extender before, you had to click OkButton or Cancel to close popup. I have update panel for reason. I just minimized the code for easy review.
[Code]....
View 5 Replies
Aug 7, 2010
any modal popup controls whereas I can interact with the controls, causing callbacks and asynchronous calls without losing the popup.
I tried with the modalpopupextender, but the popup will disappear with the call and re-rendering the popup like many people will cause massive flashes of the popup which i want to try and avoid.
View 1 Replies