Showing posts from June, 2011

IIS - Server Issue - Flash not showing or Flv not showing or other media not showing.

If you have an issue with certain media not showing on a web site, it may be because IIS needs to be informed of the type of file. Test: If you can download the site to a local machine, disconnect it from the Internet and still view the videos without issue, this proves that the files are being either: 1) blocked by a firewall 2) a  proxy issue - if it's a proxy issue add the details to the web config 3) Because IIS does not know about the File Types/ This example shows how to add .flv files in to IIS so that the run from the server. Adding .flv MIME type in IIS 1) Select the site to configure in IIS, right click and select "Properties" 2) Under HTTP Headers Tab, select "File Types" under the MIME Map section and select "New Type" 3) Type ".flv" as the associated extension and "video/x-flv" as the content type. 4) Select "OK" Update: IIS 6 not displaying Office 2007 files, .docx ect. HTTP Error 404 – File

.net User Control - Exporting to Umbraco

1) In Visual Studio Build the Application 2) Copy The .User Cotrol .ascx and .dll from your Application to the dll folder of your Umbraco install 3) In Umbraco in your Master Template, surroind your Content Placeholder a Form declaration: <form runat="server" id="frmMain">                 <asp:ContentPlaceHolder Id="masterContent" runat="server">                 <!-- Insert default "masterContent" markup here -->                 </asp:ContentPlaceHolder> </form> 4) In Umbraco Developer Section Create a new Macro 5) Inset the Macro in to your Template Code and/or as a Macro for the User

.Net User Control Part 2 - Redirect on Drop Down Selection

1) On your User control .ascx, change the first line: <%@ Control Language="C#" AutoEventWireup="true" CodeBehind ="DropDownUserControl.ascx.cs" Inherits="WebApplication1.DropDownUserControl.WebUserControl1" %> to: <%@ Control Language="C#" AutoEventWireup="true" CodeFile ="DropDownUserControl.ascx.cs" Inherits="WebApplication1.DropDownUserControl.WebUserControl1" %> 2) Add a Function call for example "goToCourses" to the Code Behind page of the User Control: (I'll redirect to Yahoo just to test it) namespace WebApplication1.DropDownUserControl {     public partial class WebUserControl1 : System.Web.UI.UserControl     {         protected void Page_Load(object sender, EventArgs e)         {         }         public void Click(Object s, EventArgs e)         {             Response.Redirect(" ");         }     } } 3) In your User

.Net - Creating a User Control Part 1

1) Open your .Net Application. 2) in the SOLUTION EXPLORER create a New Folder (give it the name of the User Contro: DropDownUserControll) 3) in the New Folder, create a .Net User Control (give it the name of the User Control: DropDownUserControl) 4) Reference the User Control in your Default.ascx: <%@ Register TagPrefix="CDDM" TagName="MDDropDown" Src="~/DropDownUserControl/DropDownUserControl.ascx" %>@ Register TagPrefix="CDDM" TagName="MDDropDown" Src="~/DropDownUserControl/DropDownUserControl.ascx" %> 5) Add the following code to the User Control ascx <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DropDownUserControl.ascx.cs"Inherits="WebApplication1.DropDownUserControl.WebUserControl1" %> <asp:DropDownList ID="DropDownList1" runat="server"  AutoPostBack="True" OnSelectedIndexChanged="Click">      &