Mangling and HtmlAnchor in User controls

    Date: 08/12/05 (Asp Dot Net)    Keywords: html, asp, web

    Is there any way to prevent HtmlAnchor from mangling your URLs? I want it to render exactly what I put there.

    I have /trail.ascx, which renders an and exposes the properties Href and InnerText. I'm using it in /admin/user.aspx. Unfortunately, HtmlAnchor thinks it's going to be "smart" and prepend all my URLs with "../". Apparently it thinks links should be relative to the user control, not the web form. Which is bogus.

    It won't even let me attempt to treat the a element as an HtmlGenericControl!
    The base class includes the field 'mylink', but its type (System.Web.UI.HtmlControls.HtmlGenericControl) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlAnchor).

    I'm more ranting than asking for help, but it would be nice if they fixed this.

    Source: http://www.livejournal.com/community/aspdotnet/39459.html

« huh. || Formatting the DataGrid... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home