How to sync ASP.NET MVC calendar control to Outlook - asp.net

Does anyone know of a way to sync outlook calendar to custom control? The custom control is shared by all users on a web page, but each user has access to his meeting using outlook. I have searched a couple of controls and the only way to do this was by using ics files, I would like to have all this done programmatically.

Assuming your organization uses MS Exchange and your version supports it you could look at using the Exchange web service api. Here's a link for the Exchange 2010 SDK docs.

Related

ASP.NET VB Web app using azure authentication

I have a basic website created using VB.NET. I need to add authentication and, as we use Azure Active Directory, I thought I could connect it to that.
All I need to do is be able to have the username of the current user, so I can then turn on or off buttons etc depending who they are.
All the examples I can find are for ASP.NET Web applications.
How do I add to a standard site?
Thanks
Gareth

Create Calendar Item WIth SOAP / Exchange EWS

I want to create an appointment on a Public Calendar in Exchange 2010 using an ASP.Net 4.5 WebForm and C#. I've found some resources on EWS and SOAP, but I don't know how to get started creating it. I've never worked with XML files before and don't know how to send them to the Exchange server from my ASP.Net app.
Are there any simple examples of this?
You don't need a huge knowledge of SOAP/XML when using the EWS Managed API - http://msdn.microsoft.com/en-us/library/office/dd633709(v=exchg.80).aspx
The link above provides example of how to create a link to the exchange service, as well as create and edit appointments.
It's a good starting block.

How to use SharePoint only as a Content Management tool from a custom web application?

We have many custom built web applications (both external & internal) written in Classic ASP and ASP.NET 2.0 technologies. Internal users can upload files to these websites, which can then be viewed by External Users. In some cases, external users can upload documents as well.
Screenshot #1 gives a brief idea about the existing architecture.
Internal users upload documents to custom web applications. These documents are stored in a folder structure defined under the web application.
Meta data and user permissions like who can access the documents are stored in SQL Server database.
The same set of documents that are being uploaded to custom web applications also exist in SharePoint. However, the custom web applications are unaware of SharePoint. So, users have to download them from SharePoint and then Upload it to the custom web applications. We are currently using SharePoint 2010.
External users can also upload documents to the custom web applications. The meta data and user permissions of the document are saved into database based on the user who is uploading the document.
Screenshot #1:
Screenshot #2 shows the architecture that I am trying to achieve. I have done very little SharePoint development. Mostly, I have used the SharePoint web services to retrieve some list content but nothing more than that. Our future Custom Web Applications might be written using ASP.NET MVC. Please find the questions after the screenshot.
Screenshot #2:
Here are my questions:
I would like to have internal users continue to upload and maintain their documents in SharePoint. User security model is already defined in the SQL Server database. This security permissions should be available in the SharePoint document properties so users can choose who can view the document from the custom web applications. How can I achieve this? Should I have to copy the SQL Server user permissions info to SharePoint?
I believe that SharePoint Web Services or Business Connectivity Services (BCS) can help in retrieving the document and its related info from SharePoint. Which one of these would better suit this scenario?
Custom web app should display only the committed versions of the documents. If a user has checked out a document in SharePoint to make any changes, that checked out version of the document should not be visible to External users. Is that possible?
Has anyone tried this approach? Are there any pitfalls with this model? Are there any performance concerns with this design?
Will this design be of any hindrance if I rewrite our existing applications using ASP.NET MVC?
Is it possible to make use of SharePoint search feature within the custom web application (ASP.NET Web Forms / ASP.NET MVC)? In other words, can I send search criteria from custom web app and have SharePoint do the search and return the results back to custom web app?
I really appreciate your inputs.
Thanks in advance.
Question 1
Hard to say without having more details. So I'm going to assume that you currently use Active Directory for your authentication store. So this means that your SQL Server defines a list of roles and then has assigned memberships to these roles. I'm going to assume that your assigned membership is to AD users or groups. If this is true then I think your on the right path to push your permissions from SQL Server into SharePoint. SharePoint's API will accommodate what you need to do, however SharePoint has no built into mechanism for syncing your permission changes so that means you end up writing a whole lot of plumbing code. I would recommend that you research products that can handle the synchronization for you. Microsoft MIIS (I believe it is called Forefront Identity Management now) offer a set of architecture patterns that you should investigate.
Question 2
SharePoint Web Services or the SharePoint Client Access Services should work fine. I would highly recommend that use a proxy pattern to isolate your application from SharePoint calls (so you can isolate your application from SharePoint upgrades and potential content management server changes).
Question 3
Yes, that is possible. If you are using the publishing features of SharePoint Server (NOT SharePoint Foundation) you will have an easy way of identifying the current published version. Otherwise the service account you query with should be setup so it can only read published versions then SharePoint will automatically trim your query.
Question 4
I have not personally tried this design, but I really like the concept of creating a content management domain and then putting an abstract service layer on top of it. Will you have scale problems, depends on how you configure SharePoint and your applications. You can do it right or wrong. An depth answer between the two cannot be covered here. My one piece of advice is to make sure you plan for caching in your service interfaces (cache, cache, cache).
Question 5
Not if you implement it as a Service Layer. You would just use a repository pattern to call the service and return back entities for your model.
Question 6
Yes, Search is exposed via an API so it can be wrapped in a service layer too.
Good luck and feel free to contact me directly for more in depth discussion.

Developing MS Outlook Plugin using .NET

I am currently building 3-tired ASP.NET 3.5 Web application which has workflows built in for manager approvals. Currently there is a dashboard on the homepage of the website where all the pending approvals are displayed in a webpart. I want to build a plugin for MS Outlook so that whenever there is a new request for approval I want that request to show up in MS outlook. Where do I start with this? Do I have to expose my business logic layer through webservices? Can anyone please point me towards some useful material or books?
It's been a while, but I can give you a quick heads up.
Have built a single add-on to Outlook 2007. between 2003 and 2007 you develop the add-ons differently. Since the introduction of the Ribbon 2007.
I used WCF to setup Web Services (a simple API) within my web application. Then, connected to that API from an Outlook application. If I remember correctly, there is a template in visual studio to use for building Office Add-ins.
I just did some google searching and this was nearly 2 years ago. there was very limited info then. Now there should be more.
Hope that helps.
I've done some VBA (Visual Basic for Applications) code in the past, but I think you should check out this video on the Microsoft site.

Create Outlook Task Request from ASP.NET

I'm looking for a way to create Outlook Task Request from ASP.NET. I'm using Exchange Server 2003 for email server. Basically, user of my ASP.NET application will do something that will create Outlook Task based on some logic. Is this natively supported in .NET or must I use third party component?
You can use WebDav for Exchange. Here is an example how to do this.
Are you using Outlook with an Exchange Server? If so, you can use Exchange Web Services.
Exchange Web Services are an easy way of doing pretty much anything within an Exchange mailbox, so if you're going to be doing more than just Outlook Tasks, then it may be worth looking at. Otherwise, AFAIK, there are no native .Net classes (that ship with the framework).
I have also not seen any 3rd party components out there so far...

Resources