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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:32:45+00:00 2026-05-19T11:32:45+00:00

On my page (root folder) I am opening a dialog with ajax loaded content

  • 0

On my page (root folder) I am opening a dialog with ajax loaded content (jQuery) taken from ~/ajax/WebPage.aspx?id=1. The content has an asp.net server control (a button). The problem is when I click on the button a postback happens, but instead of posting to ~/ajax/WebPage.aspx?id=1 it goes to ~/WebPage.aspx?id=1 which of course does not exist.

What is a fix, I don’t want to move my ajax page to the root folder, because it may be called from multiple places.

  • 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-19T11:32:45+00:00Added an answer on May 19, 2026 at 11:32 am

    Set the Button.PostBackUrl Property to ~/ajax/WebPage.aspx?id=1

    Edit
    Since you are using jQuery to load and not the UpdatePanel, use a HTML button and wire up the click event to a Javascript function that can use jQuery to do the server communication.

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

Sidebar

Related Questions

I have a page that sites in a first level folder from my root
I've got a master page in a root folder of an asp.net application and
I'm using WAMP and the root folder of my page is: http://localhost/projects/bp/ In a
I have a simple single page setup. Under a root folder, I have 3
I've tried to run ZF Quickstart app not from the root folder, but from
This page from Adobe says to add a wmode parameter and set its value
My page deals with many Store objects, each of them has a field called
Each page of my site has 10 (almost) identical divs, varying only in the
I have a page where there is a column and a content div, somewhat
I've added a .htaccess file to my root folder for the purposes of rewriting

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.