Search

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

Matching Posts

  • Re: How do I stop HyperLink control encoding the NavigationUrl?

    Hi Shengqing, the encoded links that weren't working were supposed to be sending data to a page that added products to a shopping cart. Lots of people were complaining about this process failing and the error log backed this up. After removing all of the Hyperlinks the problem appears to have gone away - hence my conclusion that the encoding was the problem. I personally never saw the error but I won't be using a HyperLink with multiple query string parameters again. With ASP.net routing
    Posted to Getting Started (Forum) by WhatThe12 on 12/4/2009
  • Re: How do I stop HyperLink control encoding the NavigationUrl?

    [quote]i think u r encoding the link using Server.HtmlEncode() in navigation url[/quote] Nope, try it and see for yourself. @ ◦suthish nair [quote]Response.ContentEncoding = System .Text.Encoding.GetEncoding("UTF-8");[/quote] This makes no difference at all. Strange that the guy who mentions it claims that it fixes the problem. [quote]Try, using input anchor tag[/quote] Yes that works! Thanks.
    Posted to Getting Started (Forum) by WhatThe12 on 12/4/2009
  • How do I stop HyperLink control encoding the NavigationUrl?

    Hi there, If I set a HyperLink control's NavigateUrl property to 'mypage.aspx?id=1&p=2' then it outputs something like... 'mypage.aspx?id=1&p=2' which unsurprisingly freaks out some browsers and the 'p' variable gets lost. Is there a way to not encode the output? (If not then that's fairly high on the ridiculous scale!) Cheers, WT.
    Posted to Getting Started (Forum) by WhatThe12 on 11/30/2009
  • IoC instead of Visitor Pattern

    Hi there, I was wondering if anyone has ever used Spring.Net or Unity in order to avoid implementing the visitor pattern? Cheers, WT.
    Posted to Architecture (Forum) by WhatThe12 on 11/14/2009
  • Trying to find a website about bad code

    Hi, Once I found a website with loads of examples of bad code. I can't recall what it was called. Does anyone have any ideas what it might be? I thought it was www.codinghorror.com but it isn't! Cheers, WT.
    Posted to Free For All (Forum) by WhatThe12 on 11/9/2009
  • Re: Trying to find a website about bad code

    It was daily wtf?. Awesome, thanks!
    Posted to Free For All (Forum) by WhatThe12 on 11/9/2009
  • Re: 'Must derive from Viewpage'

    That's good and succinct. Thanks.
    Posted to ASP.NET MVC (Forum) by WhatThe12 on 10/30/2009
  • Re: Better way to do an ASP control property assignment

    Hi, I think the draw back to an array is that you've got to maintain it if you add or remove panels from the page. The draw back to the 'FindControl' method is that the compiler can't check that the panels exist so you have to be careful that the panels have the correct ids and if the panels are placed inside a naming container then you'll have to call FindControl on a different object. WT.
    Posted to Getting Started (Forum) by WhatThe12 on 10/30/2009
  • Re: Better way to do an ASP control property assignment

    How about this... Public Class _Default Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load SubAssinXX(CInt(Request.QueryString("id1"))) End Sub Public Sub SubAssinXX(ByVal iPanel As Integer) Dim arrPanel() As Panel = {Panel1, Panel2, Panel3} Dim myPanel As Panel = arrPanel(iPanel) myPanel.Visible = True myPanel.BackImageUrl = "~/image.png" End Sub End Class
    Posted to Getting Started (Forum) by WhatThe12 on 10/29/2009
  • 'Must derive from Viewpage'

    Hi, My aspx page's directive is... <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %> ...and yet its saying.... [quote] The view at '~/Views/Monthly/Index.aspx' must derive from ViewPage, ViewPage<TViewData>, ViewUserControl, or ViewUserControl<TViewData>. [/quote] Any ideas? (I'm adding MVC to a web forms project by the way.) Cheers, WT.
    Posted to ASP.NET MVC (Forum) by WhatThe12 on 10/28/2009
Page 1 of 89 (884 items) 1 2 3 4 5 Next > ... Last »