Nitrodbz
Nitrodbz

Reputation: 1286

Update listbox in c# sql

Currently I created a wizard with a listbox. The listbox has a next and previous button. The listbox has thousands of items but the next and previous will show them 30 items at a time.

I am not using AJAX so the page reloads each time the button is being clicked. I don't want the page to reload everytime the user clicks next and previous. I thought of using AJAX.

Is there anyway I can prevent the page from reloading either by AJAX or a different way everytime the user presses next. Pressing next triggers a stored procedure which selects the next 30 items.

C#, SQL, ASP.NET, HTML, JavaScript

Upvotes: 1

Views: 326

Answers (1)

Murtuza Kabul
Murtuza Kabul

Reputation: 6514

You can surely use jquery for this purpose. It will allow you to do an ajax request. In fact, ajax request can be done from a .Net page with even plain javascript and it has nothing to do with .Net version.

However, using jquery will make it easy and you will be able to easily populate the listbox using the results from server.

Upvotes: 1

Related Questions