Jean-Marc Amiaud

Filter wordpress content to replace link by your player code

par le Nov.30, 2010, catégorie WordPress

When you insert a media into a wordpress article, the media library insert just a simple link into your content. It’s possible to replace this link by your player, for exemple, using the_content wordpress filter function. First step, add your filter function :add_filter(‘the_content’, myFilterFunction); Second step, write your filter function to parse your required link type […]

Laisser un commentaire : Lire la suite...

Getting the absolute path in ASP.NET

par le Nov.30, 2010, catégorie ASP.NET

After too much case of context, i´ve wrote a simple but powerfull function to get the absolute path in ASP.NET. [code lang= »csharp »] public static string GetAbsoluteUrl(string relativeUrl) { return String.Format("{0}://{1}{2}{3}", HttpContext.Current.Request.IsSecureConnection ? "https" : "http", HttpContext.Current.Request.Url.Host, HttpContext.Current.Request.Url.IsDefaultPort ? "" : ":" + HttpContext.Current.Request.Url.Port, VirtualPathUtility.ToAbsolute(relativeUrl, HttpRuntime.AppDomainAppVirtualPath)); } [/code]

Laisser un commentaire Lire la suite...

Upload a binary file through an ASP.NET 2.0 WebService

par le Nov.10, 2010, catégorie ASP.NET, Programmation

It’s possible to upload a large binary file through an ASP.NET 2.0 WebService.  Declare a service method that take a byte array in argument. Change the maximum http request size allowed by IIS. Change the maximum http request size allowed by ASP.NET Service Method [code lang= »csharp »] [WebMethod] public bool FileUpload (string name, int type, byte[] data) { } [/code] […]

Laisser un commentaire :, , , Lire la suite...

Ouverture du blog

par le Nov.09, 2010, catégorie Actualités

La joie du premier article… Que dire si ce n’est que j’espère pouvoir publier sur le blog des choses qui peuvent être utiles aux internautes qui passeront par là !

Laisser un commentaire Lire la suite...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!