Copied to clipboard

Flag this post as spam?

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


  • Jörg Hubacher 4 posts 24 karma points
    Jun 13, 2013 @ 11:33
    Jörg Hubacher
    0

    Request.QueryString and Request.Form are empty while Request.RawUrl is fine.

    Hello,

    we just finished our first Umbraco module based on your cool v6 api which works pretty fine. Now we are trying to roll it out to an azure website and are facing the following issue:

    On a dev maschine everythings fine - on azure whenever our package get's called Request.QueryString and Request.Form are empty (Request.RawUrl is fine).

    When the makro is called within umbraco (/umraco/marcoResultWrapper.aspx?...) everythings fine, too. Just every other call to the page ends up with empty values.

    Within the template Request.QueryString & Request.Form are filled. Just the macro doesn't get it.

    @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
    @{
       Layout = null;
    }
    
    QueryString: @Request.QueryString.Count, Form: @Request.Form.Count
    @Html.Raw(Model.Content.GetPropertyValue("pageContent"))

     

    I'm really getting mad with this issue.

    Please help.

    Kind regards
    Jörg

  • Jörg Hubacher 4 posts 24 karma points
    Jun 13, 2013 @ 14:21
    Jörg Hubacher
    0

    Hello,

    I just found a workaround - but I think it's a bug with razor.

    First I used a razor template which looks like that:

    @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
    @{
        Layout = null;
    }
    @Html.Raw(Model.Content.GetPropertyValue("pageContent"))
    

    As I described before the properties Request.QueryString & Request.Form within a makro are empty.
    Afterwords I changed the template to an asp template:

    <%@ Master Language="C#" AutoEventWireup="true" %>
    <umbraco:Item  runat="server" field="bodyText" />

    This works. Now the paramters are available. So, how to make this work with a razor template, too?

    Best Regards

    Jörg

Please Sign in or register to post replies

Write your reply to:

Draft