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 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

I want to use x[#] from first file and x[#] from second file, I
I want to pass data from second tab to first tab using delegates.But delegate
i want to get first n words from text stored in my database without
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 word after first 'from' in the following string- anti-CD24 from
I have 2 tables which I want to query from. The first table (lets
I want to extract the first word of a variable from a string. For
I want to get data from two tables. I have patient first name and
I want to cache data from a json-webservice in my android app. The first

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.