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 181477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:46:14+00:00 2026-05-11T14:46:14+00:00

In my master pages I have <form … action= …> , in pre SP1,

  • 0

In my master pages I have <form ... action='' ...>, in pre SP1, if I viewed the source the action attribute would be an empty string. In SP1 the action attribute is overridden ‘MyPage.aspx?MyParams’, unfortunately, this causes my postbacks to fail as I have additional pathinfo in the URL (ie. MyPage.aspx\CustomerData?MyParams). I have checked the action attribute in the OnLoad event and it is still blank at this time, so somewhere SP1 is overriding this :(.

Sorry, I just realized that part of my post was missing since I did not use the markdown correctly.

  • 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. 2026-05-11T14:46:14+00:00Added an answer on May 11, 2026 at 2:46 pm

    Great solution from MrJavaGuy but there is a typo in the code because pasting code in the box here doesn’t always work correctly. There is a duplication on the WriteAttribute method, corrected code is as follows –

    public class HtmlFormAdapter : ControlAdapter  {     protected override void Render(HtmlTextWriter writer)     {         HtmlForm form = this.Control as HtmlForm;          if (form == null)         {             throw new InvalidOperationException('Can only use HtmlFormAdapter as an adapter for an HtmlForm control');         }         base.Render(new CustomActionTextWriter(writer));     }       public class CustomActionTextWriter : HtmlTextWriter     {         public CustomActionTextWriter(HtmlTextWriter writer) : base(writer)         {             this.InnerWriter = writer.InnerWriter;         }          public override void WriteAttribute(string name, string value, bool fEncode)         {             if (name == 'action')             {                 value = '';             }             base.WriteAttribute(name, value, fEncode);               }     } } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a master page with a form element and the defaultbutton attribute set
I have some ASP.NET Master Pages located in one assembly. I need to use
I have the requirement to support different Master pages on my application (ASP.NET MVC).
ASP.NET master pages - essential things. However, I have a lot of very similar
I have a git repository (at github.com) with two branches: master and gh-pages. I
I have one master page which applies to all pages in this website. On
the problem i have is that i have multiple nested master pages: level 1
I have multiple master pages in my asp.net mvc web application... Each of the
In web programming you have one or more master pages and some content pages
I have some .aspx pages with one master pages. I want to give client

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.