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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:30:03+00:00 2026-05-26T03:30:03+00:00

I have a master page and on the other asp.net form I need to

  • 0

I have a master page and on the other asp.net form I need to call a method to .ashx file something as shown below:

As I am having problem with the buttons as whatever the button I click its Posting back the content which I don’t want to.

 <form id="Form1" action="Upload.ashx" method="POST" enctype="multipart/form-data"
    runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="fileupload" style="border: thin solid #666666; width: 600px; height: 520px;
        z-index: 1; left: 18px; top: 22px; position: absolute; overflow: auto;">
        <div class="fileupload-buttonbar">
            <label class="fileinput-button">
                <span>Add files...</span>
                <input type="file" name="files[]" multiple="multiple" />
            </label>
            <button type="submit" class="start">
                Start upload</button>
            <button type="reset" class="cancel">
                Cancel upload</button>
            <button type="button" class="delete">
                Delete all files</button>
            <div class="fileupload-progressbar">
            </div>
        </div>
        <div class="fileupload-content" style="border-style: none">
            <table class="files">
            </table>
            </div>
        </div>
</form>

which is not possible as I have a content page.

So how do I do that within the content of the asp.net form which is based on the masterpage.

  • 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-26T03:30:03+00:00Added an answer on May 26, 2026 at 3:30 am

    You cannot have server side form tag posting to a different page. Server side form control is designed to post-back to self (it ignores the action attribute) – that’s why you see your page getting posted to (content) page. Master page is not really a page but rather a template/layout – content page denotes the actual page (master page is really a control whose control tree get merged into the content page tree).

    You can also have cross-page posting in ASP.NET using server side button controls.

    However, I believe for whatever you are trying to achieve, you need creating a separate html form tag. For example,

    ...
    
    <!-- server side form - do not touch -->
    <form id="Form1" runat="server">
    ... 
    </form>
    
    ...
    
    <!-- you can have multiple html form tags but you cannot use server controls -->
    <form action="Upload.ashx" method="POST" enctype="multipart/form-data">
    ...
    </form>
    
    ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ASP.NET restricts using more than 1 runat=server form. I have a Master Page ,
I have a Master Page with nested pages in ASP.NET. Fairly simply I want
I have a master page in my asp.net MVC project, which has code like
I have created a master page in asp.net which dont have any server side
I have a Master Page for all my ASP.NET pages. It works fine for
I have a web site in asp.net that uses a master page. In this
using ASP.NET MVC 2 I have a navigation menu inside my Master Page. In
VS2005, ASP.NET, C#, IIS6 Hello friends, I have a master page divided into three
In my ASP.NET app I have a control in the master page that raises
On an ASP.NET 4.0 website I am working on I have a master page

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.