Create Proper ICalendar Files With .ics Extension?

Feb 8, 2011

How can I create an icalendar file with minimum data, I try to make it as the following but somethings wrong,

when I try to import to my Google calendar, it says Events successfully imported but I cant see those event on my calendar


View 3 Replies

Similar Messages:

Can Server .html Files Using Razor As If They Were .cshtml Files Without Changing The Extension Of All My Pages

Feb 24, 2011

I manage a large site which has previously been converted from static html site to For several reasons (mainly SEO) we decided not to rename all the files to .aspx back when we originally converted the site. This was very easy to do by simply adding the buildProvider and httpHandler to the web.config.

<add extension=".html" type="System.Web.Compilation.PageBuildProvider"/>
<add path="*.html" verb="*" type="System.Web.UI.PageHandlerFactory"/>

Now I am upgrading the site to use WebPages with Razor cshtml files. I can rename all the files if necessary, and use url rewriting to make the urls stay the same, however it would be much easier if I could just configure the web.config to tell it to parse .html files as if they were .cshtml. I have searched around quite a bit, and could not find anything equivalent to the PageHandlerFactory for razor pages. It appears as though it is just an internal mechanism in the .net 4.0 ISAPI handler.

The site is currently running on Windows 2003 server and IIS 6. We will be upgrading to 2008/IIS 7.5 in the near future, but I'd prefer not to wait for that. Is there any way to get the .html files to be parsed by razor as if they were .cshtml files?

View 2 Replies

Visual Studio :: TT Template Files Not Proper Generated In Website?

Jun 5, 2010

When I use TT files to generate code, output files within Websites ar never properly generated. The resut is always some "Chinese character garbage", and the generated extension is always .cs (whatever the given outputextension may be)Generating text files works fine in class libraries, MVC websites and other "projects".Just not in plain websites. Is this a known issue, am I forgetting some swith or doing something wrong, can or can I not fix this?UPDATE: It seems to be a problem with the Tangible T4 Editor, after uninstalling this tool, it seems to work fine. However, I've lost syntax highlighting and intellisense then.Since this is an external tool, I don't think this forum covers that scope.

View 4 Replies

How To Get All Files Without File Extension Into An Array

Oct 26, 2010

How can i get all files without file extension into an array. I will supply the folder path.

Is this possible using Directory.GetFiles() or DirectoryInfo.GetFiles()?? Is there any alternative way?

I am using ASP.NET C#.

View 2 Replies

Trying To Create A Proper Directory Structure For A New Website?

Jul 9, 2010

Can you point me to a url for the proper directory structure to create for a new website?I can create a website project and add class library projects to the solution to create a fully functional website.My grey area is that I need to zip up the web site solution and hand it over to the client.I'd like to make sure that I hand over a solution with the most proper directory structure.I'll run you through a scenario:

1. Select File > New > Web Site > ASP.NET Web Site from the main menu
2. Save with a path of C:ProjectsTestWebSite
3. Right-click the solution in VS and select Add > New Project > Class Library
4. The new class library is added with an automatic path of C:ProjectsTestWebSite (2)MyClassLib1

It seems like there should be a way to create a better structure for this but I'm just not following the correct process. Can you point me to a url with instructions for managing a proper structure for this?

View 1 Replies

C# - Proper Procedure To Create A N-tier Website?

Dec 8, 2010

What is the correct procedure to create an n-tier Website in ASP.NET? Can this be done without setting up a server farm, and how would you be able to test it?

View 3 Replies

Proper Way Of Using FormCollection In .NET MVC2 Create Method?

Jan 28, 2010

I am currently developing an application with the new ASP.NET MVC2 framework. Originally I started writing this application in the ASP.NET MVC1 and I'm basically just updating it to MVC2.My problem here is, that I don't really get the concept of the FormCollection object vs. the old Typed object. This is my current code:

public ActionResult Create(FormCollection collection)

What are the benefits of switching to FormCollection in MVC2 and more importantly - how is it used properly?

View 2 Replies

Using The .GetFiles Method To Return Files With More Than One Extension?

Jul 9, 2010

VWD 2008 Express. Visual Basic.

I am using the Directory.GetFiles method as follows:


As expected, it returns files with the ".pdf" extension. I would like to be able to specify more than one extension (like "*.doc*" and "*.txt*", etc.). How can I use GetFiles to return files with more than one desired extension, without returning all files?

View 2 Replies

C# - Ignore Routes For Files With Specific Extension?

Jul 12, 2010

I want to remove any mapped routes for files with a certain file extension.


Works for any file that has the extension .hello in the root directory, however as soon as i go into any subfolders the 'ignore' rule isn't applied.

Ive tried lots of different combination's, but can't seem to get one that doesn't throw a compiler exception, or not work?

View 2 Replies

C# - Sending ICalendar Event To Client While Still Continue Running Code?

Oct 26, 2010

I have built a basic calendar event using DDay.iCal, when I click "Add to calendar" link I produce an event and then sends this to the client.Basically, my application works like this.

A User logs in.
Selects a specific date.
Books a specific timeslot
Clicks the "Add to calendar" link

Sending the event is done by using Response.Write() which sends the following to the client:

Response.ContentType = "text/calendar";
Response.AddHeader("Content-disposition", "attachment; filename=appointment.ics");

The above works fins but it requires me to first book the event then manually and then click the "Add to calendar" link.I want to merge the steps 3 and 4. But when trying to do so the event booking gets saved to the database but the screen does not get refreshed.Is there a "simple" way to get around this?

View 2 Replies

How To Create A CheckBoxListFor Extension Method In MVC

Oct 8, 2010

I know there is a ListBoxFor extension method among the ASP.NET MVC Html helper extension methods, but I always thought that a checkbox list is more user-friendly than a list box.

There was a very convenient CheckBoxList control in good old WebForms, but obviously that is out of the picture now. The question is, why is there no way in ASP.NET MVC to create a check box list? How can I write my own extension method that creates a check box list and behaves in a similar way ListBoxFor behaves?

View 3 Replies

MVC :: How To Create An Extension To Extend The HtmlTextbox Methods

Sep 16, 2010

I am trying to create an extension to extend the HtmlTextbox methods to allow our developers to add onkeydown inline javascript to auto click a button with a name they specify.


View 6 Replies

C# - How To Create A Extension Method To Sum Up A Column Of A Generic Constrained Type In A Datatable

Oct 1, 2010

Is something like the below possible?

public static T Sum<T>(this DataTable dt, string columnName)
where T : IEnumerable<decimal>, IComparable<decimal>[code]....

It feels like i'm almost there, but not quite :/

Just trying to sum up either decimal or int values in a column in datatable. Currently getting a compile error, however think this is due to the incorrect generic constraint.

View 3 Replies

Configuration :: Create MSI Files Or Setup Files Programmatically?

May 24, 2010

How to create MSI Files or setup files programmatically using MSBuild in VS 2008

View 1 Replies

How To Create Files In Internet Temp Files

Jul 15, 2010

I need to create temp file on the clint side So, i read that files can be created on the folder of internet temp file. how I can do that?how I can get the path of the temp folder?I need VB code

View 10 Replies

MVC :: Create A Customized Dropdownlist Using "HtmlHelper" Extension Method?

Jun 8, 2010

i have defined a dropdown list in the controller


then i can show this dropdownlist in my "about" view <%=Html.DropDownList("a") %>.

BUT, now i want to define this dropdown list at my back end. what i want to do is to create a new "Helper".cs file in my project, and create a function within it. so every time if i want to show this dropdown list, i can just simply call this function instead of Add new SelectListItems one by one. is there anyone tell me how to do it?? and is it a good way to create a dropdownlist at the back end?

View 3 Replies

SQL Server :: How To Save Pdf Files In Database And Create A Search Engine To Search For Pdf Files

Sep 28, 2010

in my project i would like to save pdf files in database, how to save pdf files in database ? along with that i would like to create create a search page to search for pdf files with PDF file names , how to accoplish these things

View 3 Replies

Create XML Files - Using LINO?

Jan 8, 2010

I've had a crack at creating a windows desktop application to convert a csv into an xml file, and for a beginner I think I did a pretty good job. I tried to use LINQ which building the structure, but noticed that it only worked on complete tags, it didn't seem to let me specify part of a document. So instead, I used LINQ on complete tags, but where I had to leave it open to perform some loops and if statements, I had to create a string that looked like xml, not really ideal as I had to manually do all of the indentations and open and close speech marks all over the place. I should point out that I'm not trying to create a static xml file. If the structure is something like the following:


I don't know in advance how many "forthTag"s will appear between the "thirdTag"s, so I know that from "root" to "thirdTag" is static, but beyond that, I need to run a lot of code to see how many times I should repeat the forthTag. I'm not sure if I've put forward my question very well, but in summary, I want to create xml using LINQ but without being forced to close my tags. I've got the program working perfectly well, but I'd like to learn to do it the most efficient way possible.

View 3 Replies

Web Forms :: How To Create Log Files

Jun 2, 2010

I want to create a log file and it should have information about the application like error occured at the line. If it is success then should log success message.

View 6 Replies

Create .pdf , .excel , .doc , .csv Files In MVC?

Aug 24, 2010

I need to create .pdf , .excel , .doc , .csv files in MVC.

View 1 Replies

Web Forms :: Create Compressed RAR Zip Files?

Sep 20, 2015

is there any library to rar&unrar files in C#?

if there isn't, any compression libraries for c#?

View 1 Replies

MVC :: Is Better To Create An 2 Project And Copy 1 Relevant Files

Mar 13, 2010

I followed the instructions from the release notes, except for one thing. I did not include the following in my web.config. Thas the the "bindingRedirect oldversion to newVersion". I got an error message to the effect that I could not have 2 configuration sections in the web.config. I was told that as long as I had the system.web.mvc in my BIN and, I was refereincing this same version dll that I should be fine? I am wondering if I should just create a new MVC2 project and copy my MVC1 relevent files into this MVC2 project, not sure.

View 1 Replies

How To Create A HttpHandler For Downloading Files From The Server

Sep 22, 2010

I created a HttpHandler for downloading files from the server. It seems it is not handling anything...I put a breakpoint in the ProcessRequest, it never goes there.

public class DownloadHandler : IHttpHandler
public void ProcessRequest(HttpContext context)
//download stuff and break point

It never stops there, as mentioned. I also registered it in the web.config.

<add verb="*" path="????" type="DownloadHandler" />

I am not sure about the path part of that entry. What do I have to enter there? I am downloading txt files, but the URL does not contain the filename, I somehow have to pass it to the handler. How would I do this? Session maybe?

View 3 Replies

Installation :: Create Installer To Register OCX Files?

Nov 15, 2010

I am working in application and need to download an installer package from the webserver to the client machine.My installer would contain..

1.Drivers(i.e exe file) for one hardware machine.[IT shouuld automatically run and install in the program file]

2.I have to register MSCOMM32.ocx.Its entry would go into the registry.(like manually we do Regsvr32 path of OCX to register it)

And, I want that above both should done within a single installer package.

But,how to do these things within .Net applications.

View 1 Replies

SQL Reporting :: Create RS 2008 RDL Files Programatically?

Jan 13, 2011

I am trying to create a ad-hoc reporting system and plan to create the report rdl programatically using a wizard where user selects the attributes of the report.

point me to any documentation, sample application that I can refer to on how to create the rdl file programatically?

View 1 Replies

Copyrights 2005-15, All rights reserved