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

  • Home
  • SEARCH
  • 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 6137247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:42:06+00:00 2026-05-23T17:42:06+00:00

i am using mvc 2 and .net 3.5. I have 2 mvc sites. How

  • 0

i am using mvc 2 and .net 3.5.

I have 2 mvc sites.

How can i post an xml message from an action/page in site 1 to a page in site 2?
And at the same time redirect the user from site 1 to the page in site 2.

thank you very much

  • 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-05-23T17:42:06+00:00Added an answer on May 23, 2026 at 5:42 pm

    Probably the easiest way would be to modify site 2 and add a controller action which would accept an application/x-www-form-urlencoded request (a.k.a. simple form POST):

    <form action="http://site2.com/" method="POST">
        <%= Html.HiddenFor(x => x.XmlData) %>
        <input type="submit" value="Go to site 2" />
    </form>
    

    and on site 2 inside the newly created action which would serve as an entry point you could fetch the XML as a string and process it:

    [HttpPost]
    [ValidateInput(false)] // <-- that's necessary as we are POSTing XML
    public ActionResult Index(string xmlData)
    {
        // Do something with the posted XML, and redirect or directly render a view
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using ASP.Net MVC on my Site.Master I have: <head runat=server> <title><asp:ContentPlaceHolder ID=TitleContent runat=server />
I have a ASP.NET MVC site using Membership Provider. I have trouble testing some
I am developing a site using asp.net MVC. I have used AJAX for paging,sorting
Some site I'm programming is using both ASP.NET MVC and WebForms. I have a
I'm using ASP.NET MVC 2 and have a login page that is secured via
I'm using Asp.Net-Mvc, I have this method in my controller: [AcceptVerbs(HttpVerbs.Post)] public ActionResult LinkAccount(string
I'm building an ASP.NET MVC site using the ADO.NET Entity Framework. I have an
I have a form on an ASP.NET MVC site which I've recently changed from
Solved using this post: Can you convert an ASP.NET MVC Application to a Web
I have a site built using asp.net mvc running on IIS 7 using integrated

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.