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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:18:17+00:00 2026-05-24T01:18:17+00:00

In my aspx page I have a element prefilled with 50 options displaying the

  • 0

In my aspx page I have a element prefilled with 50 options displaying the first 50 clients).
In order to implement paging for this control (in total there would be 5000 clients) I have then developed a stored procedure (SQL Server). Passing the current index, the sp returns the next/previous 50 records.

 <asp:ListBox runat="server" ID="contactsList" SelectionMode="Multiple" />    

 <input type="button" id="PrevButton" value="Prev"/>
 <input type="button" id="NextButton" value="Next"/>

Now using Ajax/JSON to invoke a web method I would like to call such sp and replace the current options with the new 50s returned from the DB.

If I return the resultset with the web method, how could I then be able to use it within a jQuery script to replace the options and avoiding a postBack?

  • 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-24T01:18:18+00:00Added an answer on May 24, 2026 at 1:18 am
    var request = $.ajax({
    
        url: your_request_url,
        data: anyDataYouWishToPass,
        success: function( data ) {
    
            $('#contactsList').html(data);
    
        }
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASPX page .In the Top i am displaying 5 categories (Ex
I have an aspx page that uses a master page. On this page I
I have this html code for embedding a video in an aspx page: <OBJECT
Let's say I have this HTML markup on an aspx page: <div id =
I have a listbox element in aspx page which id is attributesList. I want
I have the following control on my ASPX page: <asp:TextBox ID=txtISBN13 runat=server ClientIDMode=Static />
I have a tag element in .aspx page: <a id=loginLink runat=server class=loginLink href=# onclick=$('registerform').hide();
I have an aspx page and a asp textbox control which has ajax autoCompleteExtender.
I have a composite control on an ASPX page. There is Javascript on the
In my aspx page I have a tr which is set visible=false by default.

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.