.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Alphabetical Paging forASP.NET AJAX Combobox asp.net c#

Posted By:      Posted Date: April 14, 2011    Points: 0   Category :ASP.Net

Hi All,

I have a form in which I will have aasp.net AJAX ComboBox which will load 5000+ names & ID { Name --> Text , ID --> Value}.

Question is, it is taking long time to load the data. Is there any way like Alphabetical Paging in Association to ComboBox or list so that when user Selects an Alphabet she will get the list loaded with records having that Alphabet as the first ( name like 'alphabet%') in the record.

As there is huge data, for Auto Complete I am using AJAX COMBOBOX but is there any way to achieve Alphabetical Paging ?

Is this achievable ?


View Complete Post

More Related Resource Links

AJAX GridView Paging and Sorting using C# in ASP.Net

To enable the GridView Paging and Sorting to update the GridView Data without refreshing the ASP.Net web page AJAX Extension controls are used. UpdatePanel is used to hold the GridView control that triggers the events for the controls placed inside it. By Default UpdatePanel triggers the asynchronous postbacks for its child controls.

GridView Paging Using Ajax in ASP.Net

To enable the GridView Paging and Sorting to update the GridView Data without refreshing the ASP.Net web page AJAX Extension controls are used. UpdatePanel is used to hold the GridView control that triggers the events for the controls placed inside it. By Default UpdatePanel triggers the asynchronous postbacks for its child controls.

GridView Sorting/Paging : 'REAL' AJAX with Asp.Net Series

This is a continuation of my 'REAL' AJAX with Asp.Net (not Asp.Net AJAX) series posts for those of us trying to stop relying on Asp.Net 'AJAX'.

Ok, nothing too dramatic to start things off, we are going to make some tabled data sortable and pagable all without using a bit of postback. Not only that, but it is going to be incredibly easy!

ajax combobox having problem in binding data

Hi i am using ajaxtoolkit:combobox and i tried to bind data to this control in code behind file. but it is taking 3 to 4 mints to bind data and display the page. what is the problem? I am providing my aspx code and code behind code here<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="TestPage.aspx.cs" Inherits="Dashboards_TestPage" Title="Untitled Page" %> <asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server"> <asp:ScriptManager runat="server" ID="scriptMgr"> </asp:ScriptManager> <table border="1"> <tr> <td> <ajaxToolkit:ComboBox ID="ddlProgram" runat="server" DropDownStyle="DropDownList" AutoCompleteMode="SuggestAppend" CaseSensitive="False" MaxLength="10"> </ajaxToolkit:ComboBox> </td> </tr> </table> </asp:Content>  Code behind code:public partial class Programs_TestPage : System.Web.UI.Page { ProgramData programData = new ProgramData(); protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack)

AJAX ComboBox - required field validator

Hi All, I want to put validation on a combobox to ensure user selects/enters a value. I've tried using a the standard required field validator which doesn't work. So I would like to do the validation using javascript/jquery. Not sure how to approach. When I look at how the combo box is rendered, it appears as a unordered html list. There is also a hidden field but this always seems to be set to 0. So is it possible to do this validation client side. I've read so many posts about this but I havn't got an answer yet. Am I on the wrong path here? Any ideas? Thanks

AJAX, Data Form Web Part, and Paging

I've placed a Data Form Web Part into an Update Panel, and it works great.  This particular use of the web part requires Single Item mode with paging.  My problem is that the "Previous" button for paging calls a javascript function for "history.back()".  Well, the only history to go back to since I am using AJAX around the web part is whatever page (if any) that the user was on before navigating to the page with the AJAX functionality.  It does not go to the previous list item.I've copied the function from the "Next" button, and created my own xslt variables to pass into it for the previous item:<xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_firstrow={',$PreviousRow,'};dvt_startposition={',$PreviousPageData,'}'))" />This works fine UNLESS items are deleted from the List that is providing that data to the Web Part. Then my idea doesn't work because it is trying to look for ID numbers that do not exist in the list anymore.  Does anyone know of a way, or a built in variable from the ddwrt namespace, that will pass the previous list item to the "Previous" button no matter if there are deleted items (missing ID numbers) in the providing list? I would greatly appreciate some help.Thanks. Jason A. Graham http://jasonAgraham.spaces.live.com

highlighting the text of the selected item in Ajax Combobox


Is there a way to programmatically select the entire string of the selected item in the AJAX Combobox?

What I'm trying to do is bascially on a State/City selection.

1.  User selects a State from the first combobox.  This triggers the City combobox to be populated.  The item(0) is "Select One:".

2.  I want the entire "Select One:" to be hightlight as if the user had used their mouse and highlighted all the text.

The reason for this that I'd like the user to be able to start typing the city without needing to clear out the "Select One:" manually.

Can this be done?

ajax control toolkit combobox produces an error 800a025e


I have a ajax combobox in my page, when i try to select an item from it i can select by typing in text and its selectedindexchanged event fires, but when that event is complete and when i try to select another item from the combobox it produces the following error:

could not complete operation due to error 800a025e

and an alert asks me if i want to debug it.If I press yes then i get this page:

// Name:        AjaxControlToolkit.ComboBox.ComboBox.debug.js
// Assembly:    AjaxControlToolkit
// Version:     3.0.30930.28736
// FileVersion: 3.0.30930.0
/// <reference name="MicrosoftAjax.js"/>

htmlfile: Could not complete the operation due to error 800a025e.

_setTextSelectionRange: function(textBox, selectionStart, selectionEnd) {

        // set the selection range on the text box
        var strategy = this._getTextSelectionStrategy();
        if (strategy == AjaxControlToolkit.ComboBoxTextSelectionStrategy.Microsoft) {
            var range = textBox.createTextRange();

hi problem with grid paging when grid is placed in ajax model popup extender


hi i had one ajax tab containeer.in that i placed a grid on click of the grid i am showing another grid which has pagination in a popup. the popup grid has the pagination(custom) which iam showing prev and next button in middle drop downlist the code is as fllows


<asp:ImageButton ID="imgbtnOPrev" runat="server" CommandArgument="prev" CommandName="Page"

 ImageUrl="~/Images/prev.gif" OnCommand="imgbtnOPre

No combobox ajax control visible in Visual Studio 2008 web project


Greetings -

New user to Visual Studio 2008 - one of the reasons for upgrading from 2005 was because I wanted to use the AJAX Toolbox Control for combobox in my web forms. 

Have started a new project, have told it to use .net 3.5 for the project, but when I go to the ajax tooklkit in the toolbox panel there is no combobox.  Could someone please tell me why it isn't there?

Environment - Visual Studio 2008 SP1

Many thanks - OfficeWonk


Validation for Ajax Combobox control


for Ajax Combobox controls validation is not working.

Please help me out with quick solution 


Thank you




Ajax Controls - ComboBox inside updatepanel




I have a web part which has an updatepanel with variuos panels.

When i add a combobox to a panel which is not shown to begin with but then is set to visible = true, the combobox erros and is not displayed correctly.


If i have one combobox already visible and working fine, then the others are OK - but thats not a solution.


How do i have a combobox inspde a hidden panel and then show it without having to rebind the whole page.




Ajax comboBox not displaying correctly after panel made visible




I have a WSP project in which i have added ajaxcontroltoolkit to SharePoint 2010 succesfully and the controls work when in basic web parts.


However i have a web part which has several panels to show / hide various sections as required, within one of the panels i have a combobox.

The panels are set a visible = false to begin with and then toggled to be displayed. 

When the panel is set visible = true i get an Javascript error of: 

Message: 'AjaxControlToolkit' is undefined


The combobox does not display correctly and won;t function.


If the panel is set as visible to begin with - it works fine, but thats not a solution to something which should work.


I have tried various workarounds - but nothing is working.

  • changed scriptmanager on master page to ToolkitScriptManager 
  • add javascript to resize the combobox when its made visible

Is there away to get this working?




ajax control toolkit combobox control font problem


dear all

i am facing a peculiar problem with ajaxcontrol toolkit combobox control, a picture is worth than a lot of words so here is the pic


if you are not able to view then here is the link


the problem is the items text in the combox box is having a square beneath at the second character which is hindering the visibility of the list. but the square is not appearing in the text area. 

any help will be greatly appriciated.

best regards

Microsoft AJAX CDN

Content delivery networks (CDNs) are composed of "edge cache" servers that are strategically placed around the world at key Internet network points. These "edge cache" servers can be used to cache and deliver all types of content - including images, videos, CSS and JavaScript files.

Using a CDN can significantly improve a website's end-user performance, since it enables browsers to more quickly retrieve and download content. For example, instead of having a browser request for an image traverse all the way across the Internet to your web server to download, a CDN can instead serve the request directly from a nearby "edge cache" server that might only be a single network hop away from your customer (making it return much faster - which makes your pages load quicker).

AJAX GridView Checkbox Select All in ASP.Net

In the previous article GridView Select Multiple Rows you learnt the multiple row selection in GridView control. Here you will get the C# code sample to select all the gridview rows using single checkbox server control. You can highlight the selected rows with different color and Font state Bold. If you want to use the selection values on different ASP.Net

jQuery $(document).ready() and ASP.NET Ajax asynchronous postback

Many call it the ASP.NET jQuery postback problem, but using the technique below should make it no problem anymore. $(document).ready() isn't called after an asynchronous postback. What this means? You lose the functionality that should be executed within $(document).ready() after an UpdatePanel rendered its contents after an asynchronous postback.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend