Error with Theme

Last post 08-09-2009 10:30 PM by farmas. 2 replies.

Sort Posts:

  • Error with Theme

    08-06-2009, 11:39 AM
    • Member
      300 point Member
    • cwlaualex
    • Member since 01-17-2006, 2:46 AM
    • HKSAR
    • Posts 97

    I have problem with setting up my test initially. The test page seems not working probably with my default website if theme is enabled. Is there any setting that I've missed?

    Alex Lau
    HKSAR
  • Re: Error with Theme

    08-07-2009, 2:43 AM
    Answer
    • Member
      300 point Member
    • cwlaualex
    • Member since 01-17-2006, 2:46 AM
    • HKSAR
    • Posts 97

    I've solved the above problem with a little code change in top of TestDriverPage.GenerateInterface().

                HtmlLink styleSheetLink = (HtmlLink)_aspNetService.FindControl(this, "driverPageStyleSheet");
    styleSheetLink.Attributes.Add("href", Page.ClientScript.GetWebResourceUrl(typeof(Microsoft.Web.Testing.Light.Engine.TestDriverPage), "Microsoft.Web.Testing.Light.Engine.Resources.driver.css"));

    Moreover, I've change the DriverPage.aspx like below.

    <link id="driverPageStyleSheet" rel="stylesheet" type="text/css" media="screen" />

    This seems working fine for me right now.

    Alex Lau
    HKSAR
  • Re: Error with Theme

    08-09-2009, 10:30 PM
    • Participant
      1,114 point Participant
    • farmas
    • Member since 08-05-2002, 8:19 AM
    • Redmond, WA
    • Posts 249
    • AspNetTeam

    Interesting, so it doesn't work if the link is written out in the page, but it works if you generate the href programmatically. Bizarre.

    Thanks for reporting this, I am glad you found a work around... I'll look into this next week.

    - Federico

Page 1 of 1 (3 items)