Search

You searched for the word(s): userid:751542

Matching Posts

  • Re: Passing connection string to Enterprise Library DAAB 3.1

    If you know that it's definitely an SQL database being used, you can just create a new SqlDatabase rather than GenericDatabase. Worked for me! e.g: Database _db = new SqlDatabase(connectionString);
    Posted to Microsoft Application Blocks (Forum) by GTL on 5/26/2009
  • Re: Round up currency to nearest pence/cent

    Thanks for that. The second link seems to do the trick.
    Posted to Visual Basic .NET (Forum) by GTL on 1/23/2009
  • Round up currency to nearest pence/cent

    I'm trying to find a way to force my calculations to round up currency values to the nearest whole pence/cent. By default, rounding will round to the nearest pence/cent, whether this is up or down. I need it to always round up regardless. E.g. 1.072 to round to 1.08. Currently rounds to 1.07. 1.312 to round to 1.32. Currently rounds to 1.31. My client's back office system rounds in this manner which is rather peculiar to say the least, however the prices on his website need to match and to
    Posted to Visual Basic .NET (Forum) by GTL on 1/23/2009
    Filed under: Round, vb.net, ASP.NET, Currency, Math
  • Re: AJAX, ISAPI UrlRewrite and UpdatePanel problem

    Thank you vladikk! I was also having some bother with my URL Rewrite solution with UpdatePanel and this solution put me on the right track. The URLRewriter I am using is based on Scott Mitchell's article here: http://msdn.microsoft.com/en-us/library/ms972974.aspx Between your suggestion and the article here: http://blog.angrypets.com/2007/01/aspnet_ajax_and.html , I was able to get it working. I didn't need to add the <base> tag to the header as it worked perfectly without it but then
    Posted to ASP.NET AJAX UI (Forum) by GTL on 8/27/2008
  • Re: pass enum object to a method?

    I don't know if anyone is still bothered about this but I came up against a similar problem recently in looking to populate a drop-down from enum. I added the method below to my Globals class: using System.Collections.Generic; /// <summary> /// Methods reads an enum and generates a dictionary ready for use in drop-downs etc /// </summary> /// <typeparam name="MyEnumType">Type of enum to convert to Dictionary</typeparam> /// <returns>Dictionary<int, string>
    Posted to Web Forms (Forum) by GTL on 7/1/2008
  • Re: Accordion Control Events Do Not Fire

    I've been having a similar problem with an Accordion databound from a DataSet (using DefaultView). My Accordion is contained in an AJAX toolkit Tab Control, which is in turn in a User Control on a Content Page! I have 2 asp buttons within the Content Panes and the Accordion.ItemCommand events just wouldn't fire. My Accordion is databound in the Page_Load event (of the User Control). I managed to get around the problem by removing my If isPostBack...End If from the Page_Load and allowing the
    Posted to ASP.NET AJAX Control Toolkit (Forum) by GTL on 8/1/2007
Page 1 of 1 (7 items)