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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:08:38+00:00 2026-05-30T13:08:38+00:00

I want to go from the First.aspx page to the second.aspx page without postback.

  • 0

I want to go from the First.aspx page to the second.aspx page without postback. How should I handle this situation? Is it possible or not?
I am doing this, but I don’t know how to get a response from the handler.

Sending a request to handler:

<script type="text/javascript" src="jqure.js"></script>
 function goMoz() { 
      $.post("Handler1.ashx", callback);
      function callback(data) { 
      alert(data);
    }
</script>

In the body of the html I’m using html <a id="buton" onclick="goMoz()">

What must I do in the handler to go to the second.aspx page?

I am also using window.location = "Registration.aspx"; in goMoz().

  • 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-30T13:08:39+00:00Added an answer on May 30, 2026 at 1:08 pm

    A few things: first, your javascript example code has syntax errors, you’re missing a closing }.

    Second: If you want to load the content of a different page and use the content inside the current page, check out the different Ajax functions in jquery, for example the load:

       function goMoz() {
           $.post("Handler1.ashx", callback);
    
           function callback(data) {
               alert(data);
               // Load response of "second.aspx" 
               // into element with ID results.
               $("#results").load("second.aspx");
           }
       }
    

    Note that you should be careful when loading a “whole page” into an element of the current page. If the “whole page” contains full HTML markup with html, body etc. tags then your HTML can easily become invalid. You can however define what part of the page to actually grab and insert in the current page by adding a selector after the url:

    $("#results").load("second.aspx #whatToLoad");
    

    This would only load the content of whatToLoad element in the results element on the current page.

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

Sidebar

Related Questions

want somme help, thank you by advance. I've two page aspx, the first is
I have an aspx (say 1.aspx) page from where first I am downloading a
I want to extract the first word of a variable from a string. For
I'm not fully getting all i want from Google analytics so I'm making my
Want to grab list of players from http://www.atpworldtour.com/Rankings/Singles.aspx There is a table with class
I'm currently investigating whether it's possible to write a html/aspx page which contains an
My URLs http://www.mysite.com/folder1/page1.aspx http://www.mysite.com/folder1/page1.aspx?id=1 http://www.mysite.com/folder1/page1.aspx?id=1&dt=20111128 Redirecting Page http://www.mysite.com/folder1/page2.aspx I want to redirect from page1.aspx
My asp.net site allows users to pick the theme they want from a list
We want migrate from Delphi 7.0 to Delphi 2009, to stay up with a
i have users table and i have posts table i want select from users

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.