in

Stuart Manning

Belfast Web Development | C# | ASP.NET | CCS | Ajax | LINQ

Browse by Tags

  • Convert html image to cid - Embedding email images on the fly.

    Ever needed to convert html image link on your site to cid to embed on email public ArrayList arr_image_path = new ArrayList(); //image array (for embedding images) public string _html, _plain; public string RootDirectory = HttpRuntime.AppDomainAppPath.ToString(); public void covert_image_to_embedded_cid...
    Posted to ASP.NET (Weblog) by Stuart Manning on 07-21-2008
  • Call asp:updatepanel from Javascript

    Javascript __doPostBack ('UpdatePanel1', ''); If your using UserControls the ClientId can be harder to find. Inline .aspx Javascript __doPostBack('<%= UpdatePanel1.ClientID =%>', ''); or var panel = '<%= UpdatePanel1.ClientID =%>' __doPostBack(panel...
    Posted to ASP.NET (Weblog) by Stuart Manning on 07-20-2008
  • Large File upload. SwfUpload & C#

    Follow up to SwfUpload - ASP.NET Flash uploader SwfUpload works by placing a simple 1x1px flash application onto the page, which is highly degradable. The C# example on the main site only works with single uploads at the time of writing. So below is a quick adaption of to get the multiple large file...
    Posted to ASP.NET (Weblog) by Stuart Manning on 07-19-2008
  • SwfUpload - ASP.NET Flash uploader

    Large browser based file uploads via HTTP can be cumbersome. Recently I had to find an alternative to a Java based uploader. SwfUpload combines Flash & JavaScript and is highly degradable. It places a 1x1px Flash application in the page and then the actual interface is CSS and JavaScript (which polls...
    Posted to Ajax (Weblog) by Stuart Manning on 07-19-2008
  • Accessing a Hyperlink (or other server control) inside a usercontrol - Custom Server Control Example for JavaScript reference

    Need to shorten a server control ClientId to be accessible from JavaScript. This example creates a custom hyperlink control with shorted ClientID sans control id. using System; using System.ComponentModel; using System.Security.Permissions; using System.Web; using System.Web.UI; using System.Web.UI.WebControls;...
    Posted to ASP.NET (Weblog) by Stuart Manning on 07-18-2008
  • Client Side problem with maximum characters for multiline asp:textbox

    I was asked recently as to how best handle client side cut & pastes using asp:textbox. The main problem was when the TextMode is set to multiline the MaxLenght parameter is ignored. Client side: JavaScript solution function textCounter(field, countfield, maxlimit) { var thisfield = $get(field); var...
    Posted to ASP.NET (Weblog) by Stuart Manning on 04-09-2008
  • AjaxToolkit - problems rendering in VS2008 - eg. TabContainer

    Never fear, if you like me are having a few problems with the AjaxControl toolkit after installing the VS2008 hotfix, then you can still get VS2005 express editions @ http://msdn2.microsoft.com/en-us/express/aa975050.aspx Link provides downloads for complete express range and required SP1 where required
    Posted to ASP.NET (Weblog) by Stuart Manning on 03-27-2008
  • LINQ RSS Writer

    LINQ makes everyday tasks a joy and not a chore. This simple code example was implemented and deployed on http://www.causewaydesign.co.uk/ in 15 mins. using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security;...
    Posted to ASP.NET (Weblog) by Stuart Manning on 03-26-2008
  • RSS Reader with LINQ to XML

    What joy, LINQ to XML . This code example shows how you can use LINQ to XML to painlessly extract content from an RSS feed. No more XPathDocument and etc, coded in minutes. StringBuilder sb = new StringBuilder(); //test read XNamespace slashNamespace = "http://www.w3.org/2005/Atom"; XDocument...
    Posted to ASP.NET (Weblog) by Stuart Manning on 02-27-2008
  • Using the LinqDataSource

    I admit that at first I really didn't like the LinqDataSource, it has it own particularities that with the next iteration might be removed. Also, I thought it didn't find related table data (so wrong!). But that was more down to trusting Visual Studio to bind the correct details for those ( quick...
    Posted to ASP.NET (Weblog) by Stuart Manning on 02-27-2008
Page 1 of 2 (17 items) 1 2 Next >