Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8444665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:27:07+00:00 2026-06-10T09:27:07+00:00

I am using C# ASP MVC3 and I am making a generated menu with

  • 0

I am using C# ASP MVC3 and I am making a generated menu with parameters passed through castle windsor.

When I was developing and tested locally, the urls generated from this code were fine:

  @foreach(var menuItem in Model.MenuItems)
        {
            var dic = new RouteValueDictionary();



            foreach (var item in menuItem.QueryValues)
            {
                dic.Add(item.Key, item.Value);
            }


            <li>@Html.ActionLink(menuItem.Name, menuItem.ControllerAction, dic)</li>

            }

But when it was pushed to the test server, the URL decided to add:

%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20

in between each parameter that was being passed through with the URL.

Not totally sure which areas to show to help with a solving the problem. Could it be the xdt:Transform:Replace used within the web.config or something totally different. Any help you can provide would be appreciated.

Thanks.

UPDATE: I found what was causing all of these spaces in the link that was being generated. The XML replace was adding in returns and spaces in the XML file when it was doing the replace. I’m going to leave this question open for now, as it’s not ideal that this is happening, so the question has sort of changed to how do we stop the xdt:Replace from adding in these unwanted spaces and returns?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T09:27:09+00:00Added an answer on June 10, 2026 at 9:27 am

    After speaking to a few people and doing a LOT of searching, I have found that this is a bug within visual studio 2010 before SP1. As the machine that is building and publishing the app hasn’t got SP1 installed (It is due for an upgrade though) that this was the problem.

    To make the bug a none factor, I added a TrimEnd for the characters ” “, “\r”, “\n” to remove any white space from the items that are being replaced.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a dashboard using ASP.NET MVC3 and need to have two divs which
I'm developing a web service using ASP.NET MVC3. One of the methods of the
In ASP.NET MVC3, when a view model is passed into a view using return
I am using asp.net mvc3. I am making a bitmap using text by system.drawing.
I am an application development intern. I'm making an application using ASP.NET MVC3 that
Using ASP.NET MVC3 C# AND MS SQL 2008 I'm developing a Software As Service
I'm currently developing a site using ASP.Net MVC3 with Razor. Inside the View/Shared folder,
I'm using ASP.NET MVC3 with Razor and C#. I am making a form builder
I am using Asp.Net MVC3, for a project. In one of the page, I
I am using ASP.NET MVC3 with EF Code First. I have not worked previously

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.