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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:30:15+00:00 2026-06-10T00:30:15+00:00

When my page gets hit, is it better practice to have my functionality in

  • 0

When my page gets hit, is it better practice to have my functionality in the page_load of the cs file or in the $(document).ready(function() {}); have an ajax call to a webmethod?

Which way will be more efficient, I am leaning towards the Ajax call, but my mind is saying that it will be double work? (Load the page and then also call the WebMethod)

  • 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-06-10T00:30:16+00:00Added an answer on June 10, 2026 at 12:30 am

    If you are working towards a full scaled JQuery application, I would suggest adding the function in your dom ready. If you do this, you do not have to include the method in the Page_Load. Only declare your jquery function and do a webmethod to return the required data.

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

Sidebar

Related Questions

I have a breakpoint set on a page's Page_Load event that never gets hit.
I have this function in jQuery that gets data from a page with POST,
I have a dynamic page that gets a certain number of results for rooms
I have a page where the user gets directed to if they want to
On my page in IE8, I have got some text which gets changed through
I have django supported web application. when i hit refresh button on a page
I currently have an application that gets hit with over 20,000 users daily and
I want to check if a particular page gets redirected or not. However, whenever
Let's assume an aspx page gets multiple querystrings, for example books.aspx?author=Arthor&level=4&year=2004 . I'd like
I'm trying to write a simple rule such that: /page gets implicitly routed to

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.