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:

Create An ICalendar In Form?

Mar 25, 2009

I just noticed that in facebook event, there is a way to export the event to an iCalendar .ics file format. Will someone redirect me to instructions on how to create events that can be exported out like this?

View 1 Replies

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 :: Creating Lot Of Temporary Files (files With .TMP Extension) In Source Folders?

Jun 26, 2008

VS 2008 is creating lot of temporary files (files with .TMP extension) in my source folders.. Do you know why and is there any solution?

View 3 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

Preventing Uploading Of Files Which Are Actually Exe's But Are Having Different Extension?

Jul 21, 2009

I am doing File Upload.validations are done by checking extension of the posted file using the code


Path.GetExtension(fuResume.PostedFile.FileName);(I am allowing only doc,txt,rtf,xls,xlsx,pdf files to be uploaded)

It's working but if someone changes the extension exe to doc and upload the file,it will be uploaded.For this not to happen i have to read the contents of the file and find out it's real type.

View 5 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

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

Proper Approach To Create Byte Specific Record?

Apr 2, 2009

I need to return a set of values that will be used in a mainframe application. I am using C#. I have a set of record definitions like this:

Header record:

TranCode - 2 bytes - ASCII 00
Filler - 1 byte ASCII SPACE (0x20)
TranName - 26 bytes - ASCII value - Left justified - Pad with ASCII 0x20
DataTypeVal - 2 bytes - ASCII 00 thru 28
DataValue - 18 bytes - ASCII numeric values
RecordDelimiter - 4 bytes - ASCII "END."

Well, you get the idea. There will also be a trailing record to finish things up and the data records can be more than one. Ultimately this will be written to a file that is transmitted to the mainframe and then digested there. I need a reccomended approach to representing this data structure that is byte position specific in C#.

View 4 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

MVC :: Create Extension Methods Of UrlHelper To Generate Url From Route?

May 21, 2009

How would one do the following: [URL]
I mean, where to create this class, how to implement it in your controller.

View 2 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

MVC :: Calling Helper Extension Method Inside Extension?

May 12, 2009

I've got a website that has a graphical main menu across the top. I'd like to create a simple Html helper that will allow me to do something like html.MainMenu(id, linktext, action,controller, current route or url, menuchoice) that will basically render:


My first impulse was to just create an HTML helper that would call ActionLink and build the appropriate link as I've seen a couple examples on the interne, however I can't seem to get it to compile.

View 4 Replies

Unable To Create Type 'live:IDLoginStatus'. Could Not Load File Or Assembly 'System.Web.Extension...

Jan 30, 2008

I try to use a windowslive website in visual studio 2008 with framework 3.5

I have installed the framework 3.5 and i get following error although the site is working perfect in localhost:

Unable to create type 'live:IDLoginStatus'. Could not load file or assembly 'System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

After this i check my gac and i manually (with configuration tool 2.0) installed 3.6 in my gac. I still get the same error.What am i doing wrong?

View 2 Replies

Databases :: Create And Drop User Using .bat Files And Sql Files?

Jul 28, 2009

Below is solution to create and drop use using .bat and .sql files.

There are many ways to create user, this is one process

.BAT file

sqlplus sys/sys@servicename as sysdba @CreateUserScript.sql

.SQL File

grant connect to &&DATABASE_NAME
grant resource to &&DATABASE_NAME
grant create ANY TABLE to &&DATABASE_NAME
grant create ANY sequence to &&DATABASE_NAME
grant create ANY trigger to &&DATABASE_NAME
grant create any index to &&DATABASE_NAME
grant create any procedure to &&DATABASE_NAME

View 2 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

Create A Transactional Operations With Files?

Sep 18, 2009

I need to create a Transactional Operations with files.

I need to move the some files from a folder to another, but if it fails to move one of the files i have to Roolback the Operation

There is anyway to do this?

View 3 Replies

Create Folders / Files In VSS 2005?

Aug 25, 2009

How to create folders/files in VSS2005 (Visual SourceSafe) using 3.5 (2008)? are there any .net classes available? In application, if a user creates a folder then I have to create the folder in specific physical location (C:websiteFolderA) and also have to create "Folder A" in VSS2005. For creating a folder in physical location is easy but for VSS folder/file creation, not sure.

View 6 Replies

Copyrights 2005-15, All rights reserved