0 Replies - 1572 Views - Last Post: 07 July 2013 - 12:58 AM Rate Topic: -----

#1 prasad.weer  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 78
  • Joined: 10-November 11

Ajax combo box data fill in ASP.NET application

Posted 07 July 2013 - 12:58 AM

I'm Developing application using ASP.NET and VB.NET. It is used Ajax controls as well. I added dropdownlist (Standard controller) and databind to it. It is working well. But if i added Ajax combo box, it is not working. (It means data not filling to combobox) No any errors showing.

This is my ASP code
 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <asp:ComboBox ID="ComboBox1" runat="server" AppendDataBoundItems="True" 
        AutoCompleteMode="SuggestAppend" AutoPostBack="True" MaxLength="10">

This is my VB code in form load event
        ComboBox1.DataSource = ds.Tables(0)
        ComboBox1.DataValueField = "PT_ID"
        ComboBox1.DataTextField = "PT_PartName"

In above code, dataset (defined as ds) has values. If i added Dropdownlist controller name instead of combobox1, data fill to the dropdownlist.

What's wrong with my code. no any errors are showing...

Other details.
.NET frame work 3.5

Is This A Good Question/Topic? 0
  • +

Page 1 of 1