Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Datalist checkbox Ajax click

$
0
0

Private Sub DataList1_ItemDataBound(sender As Object, e As System.Web.UI.WebControls.DataListItemEventArgs) Handles DataList1.ItemDataBound

    ......
          Dim Attr As CheckBoxList = _
         CType(e.Item.FindControl("Attributes"), CheckBoxList)

        Dim adapter1 As SqlDataAdapter = New SqlDataAdapter(features, sqlConn)
        adapter1.Fill(ds, "Attributes")
        Attr.DataSource = ds.Tables(0)
        Attr.DataTextField = "Name"
        Attr.DataValueField = "SpecificationAttributeId"
        Attr.DataBind()

     

    End Sub

I have the above, code, how to I add dynamic event for checkbox list and if clicked get the value and manipulate the query,

This can click should be in Ajax functionality


Viewing all articles
Browse latest Browse all 23244

Trending Articles