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

[Code]....



ADVERTISEMENT

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

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 asp.net site which has previously been converted from static html site to asp.net. 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.

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

Now I am upgrading the site to use Asp.net 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 View Related

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

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

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

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

System.IO.

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

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:

[Code]....

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

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.

RouteTable.Routes.Ignore("{root}.hello");

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

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

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

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:

[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Create(FormCollection collection)
{[code]....

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

View 2 Replies View Related

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
DataRecord:
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 View Related

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");
Response.Write(iCalString);

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

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

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.

[Code]....

View 6 Replies View Related

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

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

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:

[Code]....

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

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=3.6.0.0, 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 View Related

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

UNDEFINE DATABASE_NAME
DROP USER &&DATABASE_NAME CASCADE
/
DROP TABLESPACE &&DATABASE_NAME INCLUDING CONTENTS AND DATAFILES
/
CREATE TABLESPACE &&DATABASE_NAME DATAFILE '&&DATABASE_NAME' SIZE 20M REUSE AUTOEXTEND ON NEXT 2M
/
CREATE USER &&DATABASE_NAME IDENTIFIED BY &&DATABASE_NAME DEFAULT TABLESPACE &&DATABASE_NAME
/
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 view to &&DATABASE_NAME
/
grant create any index to &&DATABASE_NAME
/
grant create any procedure to &&DATABASE_NAME
/
grant CREATE ANY TYPE to &&DATABASE_NAME
/

View 2 Replies View Related

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

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

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

Jun 8, 2010

i have defined a dropdown list in the controller

[Code]....

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

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

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:

<root>
<firstTag></firstTag>
<secondTag></secondTag>
<thirdTag>
<forthTag></forthTag>
<forthTag></forthTag>
<forthTag></forthTag>
</thirdTag>
</root>

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

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

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

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

Create Folders / Files In VSS 2005?

Aug 25, 2009

How to create folders/files in VSS2005 (Visual SourceSafe) using asp.net 3.5 (2008)? are there any .net classes available? In asp.net 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 View Related

Web Forms :: Create Excel Files In C#?

Sep 3, 2009

I want to query something from database and dump it into excel. What's the best way to do it?

View 3 Replies View Related

Create Thumbnail Images For .doc - Image - .pdf Files

Nov 18, 2008

dear friends i have a task that i need to create thumbnail images for all types(image, .doc . .pdf etc) how can i do these I am able to create thumbnail images for image files only from this [URL] but i needed for all types of files in a web form

View 1 Replies View Related

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 1.0.0.0 to newVersion 2.0.0.0". 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 2.0.0.0 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 View Related

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

Installation :: Create Installer To Register OCX Files?

Nov 15, 2010

I am working in asp.net 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 View Related

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

Configuration :: How To Use Msbuild To Create MSI Files Or Setup

May 27, 2010

I want to Use MSBUILD to create MSI Files or setup. Can I do it programetically.

View 1 Replies View Related

MVC :: Dynamically Create Views (.aspx Files)

Dec 4, 2009

I have written a very small and simple CMS. I simply re-write views, .aspx files. This work on local server, but I get error on web server:

[Code]....

I can create files in other directory, like /Temp, but when I try to write in Views dir error!

View 9 Replies View Related

ADO.NET :: Create Class Files When Connection To SQL Database?

Mar 14, 2011

I am new to Visual Studio 2010 and ASP.Net, and when I first connected my SQL Server to Visual Studio it created huge files full of my SQL classes (maybe this was LINQ classes), and I accidently deleted/corrupted those files, and now I want it to create those classes again. Can someone tell me how I can do that?

View 5 Replies View Related

Architecture :: Subprojects Create Several Web.config Files?

Jul 25, 2010

my subprojects creates serveral web.config files? I have solution that consists of 10 projects and I want everyone to compalie but the one in the top root. Now my problem is that my subprojects are all located inside folders in the root and my subprojects generates each a web.config. Thhis doesn├Ąt work very good so what should I reconfigure would you say?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved