programatically

How do I programatically turn off show pages in navigation for sharepoint

I am progamatically creating a SharePoint site using SPWeb spWeb = spSite.AllWebs.Add(...); What code do I need run to set the spWeb to turn off the "Show pages in navigation" option? Answer: publishingWeb.IncludePagesInNavigation = false; ...

How do I programatically set the SharePoint's site collections Search Center property?

I have a site collection and I want to set the search center value to be the same as another site collection. The site collection is created in code, so I need to be able to set the property after the site collection has been created. How can I do this programatically? ...

Duplicate a list

Is there a way to easily duplicate a list code wise? ...

Trim an MP3 Programatically

What is the best way to trim a mp3 file programatically. For example, say I want to get rid of the first 2 minutes or last 2 minutes or both. Is there a good way to do this from .NET? Or .NET calling out to a command line tool? Thanks. ...

Dynamic creation of new lookup tables based on values in main data table

I am working on an application which accepts any uploaded CSV data, stores it alongside other datasets which have been uploaded previously, and then produces output (CSV or HTML) based on the user selecting which columns/values they want returned. The database will be automatically expanded to handle new/different columns and datatypes ...

How can I programatically configure a virtual directory to require SSL using IIS 6?

How can I programatically configure a virtual directory on IIS 6 to require SSL and client certificates from a starting point of having a suitable certificate already in the local certificate store, but, the current website (e.g. Default Web Site) having not been set up to use certificates? I know how to do this using the inetmgr GUI, b...

Call Javascript onchange event by programatically changing textbox value

the problem I'm facing is this: I have a textbox for a date range along side a calendar control. When the user selects a date from the calendar, it fills that date into the textbox When this happens I want to fire a javascript function, however, the 'onchange' event doesn't seem to happen. I'd ideally like to be able to add the eve...

Programatically Fax from Internet form

I'm new to programming, and my only area of expertise is web design/simple development on platforms like wordpress/expression engine. (Yea, you guys can laugh). I have a new client who currently receives medical faxes through an online form (the user fills out a form concerning their prescriptions and once submitted, it faxes the info)...

Is it possible to have a strongly typed GetVirtualPath method?

Hi Folks, based upon an answer from this SO post, i'm trying to tweak it a bit so that i don't need to hardcode the route and route params, but instead (if possible) use a strongly typed controller action method:- string path = RouteTable.Routes.GetVirtualPath( new RequestContext(HttpContext, RouteTable.Route...

TFS : how to programatically detected deleted files?

Hi; In Team Foundation, you can ask Team Explorer to show deleted files by doing this: Tools > Options > Source Control > Visual Team Foundation Server > Show deleted items in the Source Control Explorer. My question is how do you do the same thing programatically? I am developing a synchronisation tool, and I need to detec...

Programmatically administering custom attributes in ADAM

Has everyone ever programatically created a custom attribute? (At the moment I've just used the Scheme snap-in) Ideally I want (admin) users to be able to administer an ADAM instance through a web interface. I'm writing web-services to be able to do things such as create new users but it's also been requested that custom attributes be ...

Dijit widgets don't initialize if they are programatically created on IE6.

I'm using the classical JavaScript way (programatically) to instantiate dijit widgets with dojo-1.3.1, it works OK in Firefox but in IE wont initialize the widgets and it doesn't throw any error. My source code for this is: <html> <head> <title>...</title> <script type="text/javascript" src="lib/dojo/dojo/dojo.js" djconfig="parseOn...

Importing Pantomime for sending email!

Hello, I want to send an email from Cocoa in an asynchronous manner. I have downloaded Pantomime source code and compiled it, then got the framework from the build folder. I have added the Pantomime framework in my app. Now my problem is when I add the import satement like: #import <Pantomime/Pantomime.h> I got these build errors: ...

is it possible to extract dynamic text from a swf (flash application) programatically ?

is it possible to extract dynamic loaded text from a swf (flash application) programatically ? ...

How to press the Windows button programmatically using C# SendKeys

Hi, Basically I want to simulate in code a user clicking on the windows button. I know there is SendKeys which allows me to send key presses to windows if I get a handle to them, but what I can't figure out is what I need to get a handle on in order to send Windows button commands. E.g. Windows Button + L. Having read into this a bit i...

Accept autocorrection after input

My user enter a text in a UITextField then press a UIBarButtonItem to confirm. If there's a autocorrection suggestion when the user tap the UIBarButtonItem, it is not accepted. How do I accept it programmatically? ...

Changing Local Security Policy Programatically

hi i want to change Local Security Policy "Interactive logon: do not require ctlr+alt+del" in c# how can i do this Regards Ehtsham ...

Programatically set WCF timeout in debug mode

I'm using WCF in communciation between a server and client (both written in C#). In release-mode, the timouts should be set to ~20 seconds, but in debug mode I want to set them to a higher value so that I can debug/step in my code without the timeout occuring. I know that I can change the timeouts by modifying the app.config file. How...

MVC Model Validation Programmatic Registration support

Today (15th Jan 2010) Scott blogged about the ASP.NET MVC2 model-validation http://weblogs.asp.net/scottgu/archive/2010/01/15/asp-net-mvc-2-model-validation.aspx Anyone knows how can someone add validation rules at runtime programmatically ? "Programmatic Registration" is a similar functionality supported by ValidationAspects // regi...

add % value programaticaly

Hi all, I have the following code which gives me a error. I want to add the width property programatically and in %: firstcombo.width = 90%; But that gives me the following error: 1084 syntax error expecting rightparen before colon How is the correct syntax? Greetings Markus ...