Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Martin 2 posts 22 karma points
    Feb 10, 2010 @ 17:54
    Martin
    0

    viewstateMoverModule

    I am attempting to use the viewstateMoverModule by enabling it in the umbracoSettings.config (http://umbraco.org/apiDocs/html/AllMembers_T_umbraco_UmbracoSettings.htm).

    When I turn it on the viewstate doesn't move to the bottom of the page but does this instead to the following blocks.

    Before:

    <!--[if IE 6]>
    <link href="/css/ie6.css?v1" type="text/css" media="screen, tv, projection" rel="stylesheet" />
    <script type="text/javascript" src="/scripts/DD_belatedPNG_0.0.8a-min.js?v1"></script>
    <![endif]-->

    After:

    <!--[if IE 6]>
        <link href="/css/ie6.css?v1" type="text/css" med<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/" />ia="screen, tv, projection" rel="stylesheet" />
        <script type="text/javascript" src="/scripts/DD_belatedPNG_0.0.8a-min.js?v1"></script>
    <![endif]-->

    value of the viewstate removed to protect the innocent! ;)

    Anyone got any ideas about this?

  • Martin 2 posts 22 karma points
    Feb 10, 2010 @ 18:45
    Martin
    0

    Ah I worked out my problem, I have a form at the top of the page for 'search' which sends people off to google (its outside the asp.net form element so is valid).

    The viewstateMoverModule does not work with multiple form elements because of the line:

    int num3 = this.html.IndexOf("</form>");

    changing this to

    int num3 = this.html.IndexOf("</form>", index);

    would fix the problem and mean that it will only 'target' the asp.net form (well the next </form> after the viewstate...).

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies