User Profile

Collapse

Profile Sidebar

Collapse
AnaOlinto
AnaOlinto
Last Activity: Oct 21 '09, 10:02 PM
Joined: Aug 12 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • AnaOlinto
    started a topic Bind CheckBoxList using AJAX

    Bind CheckBoxList using AJAX

    Hi,

    I'm new using AJAX and I'm developing a page where I need to populate a CheckBoxList based on what the user types (it's like an AutoSuggest). I don't know how to bind the checkboxlist from the database using AJAX.
    My code in VB.NET is something like this:

    Code:
    Dim DatabaseConnection As New SqlConnection(ConfigurationManager.ConnectionStrings("MyServer").ConnectionString)
            Dim selectSQL As String
    ...
    See more | Go to post
    Last edited by debasisdas; Aug 22 '09, 07:49 PM. Reason: moved to vb.net section.

  • But this code is Binding the GridView with PostBack, isn't it? Is there a way to bind using AJAX?
    See more | Go to post

    Leave a comment:


  • AnaOlinto
    replied to DropDownList with CheckBoxes
    The problem above was because I was using C# syntax. I correct the syntax and the DDL is working. But the thing is: the ChckBoxes are not in the DDL and I don't know ho to get the selectedValues (if more than one). Can anyone help me?
    My code now is like this:

    Code:
    Public Class CheckBoxDropDownList
        Inherits System.Web.UI.WebControls.WebControl
        Implements INamingContainer
    
        Protected Overrides Sub CreateChildControls()
    ...
    See more | Go to post

    Leave a comment:


  • AnaOlinto
    started a topic DropDownList with CheckBoxes

    DropDownList with CheckBoxes

    Hi,

    For the page I'm developing I need a DropDownList with CheckBoxes on it, so that the users can choose more than one option without having to use the Ctrl key (and it's more intuitive). Because my options are being retrieved from the Database, the list of option can be really big, so using a CheckBoxList would use a lot of space.
    Please, can anyone help me with this? I'm almost desperate! I have been search for a couples day,...
    See more | Go to post
    Last edited by AnaOlinto; Aug 12 '09, 07:26 PM. Reason: Add more details
No activity results to display
Show More
Working...