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

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

How to consolidate what was actually selected with check boxes?

Posted By:      Posted Date: October 11, 2010    Points: 0   Category :SharePoint

I have an infopath form that has 100 checkboxes returning whole numbers if checked on the form. Standard section, not in a repeating table. How can I create a summary of which boxes were checked, and the content related to the checked boxes?

I have a secondary list in sharepoint that is associated with the check boxes. Checkbox 10 =whole number 10, that references secondary ID 10. This allows me to change the secondary list, and not mess with the form.

Seems like I have tried everything to get this detail to a summary page view. I found limitations to text boxes limited to 255 characters. No luck with importing to list boxes. String statements have not produced the desired result.(probably my syntax. 

Ideally I would love to have a repeating table that grows with each checkbox and contains the secondary data, or removes the smae if unchecked. What i can gather is the repeating tables are not very robust.

Hers the kicker I would like to work within the restraints of the tools and not use code that requires admin approval each time the form updates. If i could do this within infopath or generate a summary in workflow, that would work.

I how turn to the experts.

A little help here...

View Complete Post

More Related Resource Links

Saving Check boxes


I am creating an application that uses several check boxes. I check one or more of these check boxes. When I save a record and reopen it all field come back with the appropriate info, except the check boxes come back unchecked. I am using a date type "bit". It apperas that I have the check boxes bound to the right fields in the table. Does anyone have any suggestions<

Keith @ LPG

How to apply color to selected number of items in check box list and drop downlist

Hi all,    I want to apply color to selected number of items in checkbox list and seleted number of items in drop downlist for e.g color red for few items and black (default). I have a bit value set in data base so if bit is set to 0 then red and if 1 then back. Please help me.  

Javascript code for Selection of all check boxes


        <asp:Repeater ID="rptroot" runat="server"  onitemdatabound="rptroot_ItemDataBound">
        <table style="background-color:GrayText">
        <td align="char" charoff="45%" char="." > 
        <asp:CheckBox ID="Chkroot" runat="server" Text='<%DataBinder.Eval(Container.DataItem, "ApplicationDesc")%>' />
               <b><%# DataBinder.Eval(Container.DataItem, "ApplicationDesc")%></b><br />
          <tr valign=middle ><td colspan="6">          
      <asp:Repeater ID="rptsub" runat="server">
           <td rowspan="7" >
           <asp:CheckBox ID="Chksub" runat="server" GroupName='<%DataBinder.Eval(Container.DataItem, "PermissionName")%>'/>
         <i> <%# DataBinder.Eval(Container.DataItem, "PermissionName")%></i><br />

check or uncheck boxes in datagrid using Javascript


Here is the situation: I have a checkbox in the header of the datagrid and I want to use Javascipt so when I check the box, all of the checkboxes in the datagrid are checked (or unchecked if the one on top is unchecked).  How do I reference the asp:checkboxes in the datagrid?

<script type="text/javascript" language="javascript" id="clientEventHandlersJS">
    function SelectAll(isChecked) {
        var chkb = document.getElementsByTagName('asp:checkbox')
        for (var i = 1; i < chkb.length; i++) {
            chkb[i].checked = isChecked;

<asp:DataGrid id="DataGrid2" runat="server">
        <asp:TemplateColumn SortExpression="InMailing" HeaderText="In Mailing">
            <HeaderTemplate >

Conditional Formatting - Verify a number of check boxes have been checked before showing a button?


I would like to Hide a Submit button until all the check boxes are equal to true? How would I go about verifying all boxes equal true?

Group check boxes

Hi group,
How can I group a couple of check boxes on my form so that only ONE can be checked an anytime?
I've tried placing them onto a panel but I can still check them both.
Using VB.NET

how to compare to check box list and show selected in first checkbox list


how to show first check box chkched which in show in second check box list

 <table> <tr> <td> <b>Author</b> </td> <td> <b>Reader</b> </td> </tr> <tr> <td> <div style="BORDER: thin solid; OVERFLOW: auto; WIDTH: 200px; HEIGHT:200px"> <table id="Chklist_Author" border="0"> <tr> <td><input id="Chklist_Author_0" type="checkbox" name="Chklist_Author$0" /><label for="Chklist_Author_0">Select</label></td> </tr><tr> <td><input id="Chklist_Author_1" type="checkbox" name="Chklist_Author$1" /><label for="Chklist_Author_1">1029.Aarti</label></td> </tr><tr> <td><input id="Chklist_Author_2" type="checkbox" name="Chklist_Author$2" /><label for="Chklist_Author_2">1025.Akash

Report manager multiselect check boxes reset when report is run


I have a report with a multi-select checkbox list in report manager.  When I choose 4-5 items and click the 'View Report' button (this is MSRS 2005) the page flashes and all the checkboxes are blanked out and no report loads.

If I just do this over an over it sometimes works.

On a bad day I try this 9 unsuccessful times for every one successful time.  The choices selected are always the same.

This is annoying and frustrating.




Using a CompareValidator to check input is a valid date

The CompareValidator can do more than just compare two controls. You can also compare it against several of the main .net data types such as Date, Integer, Double and Currency.

To do this you would set Operator="DataTypeCheck" and instead of setting the ControlToCompare or ValueToCompare attributes as you normally would you use the Type="Date" (or any of the data types I have listed above).

Binding the multiple drop down boxes in GridView using JQuery in ASP.NET

Here is the code for binding the multiple drop down boxes in GridView using JQuery in ASP.NET

Check All with JQuery and a Asp.Net GridView

Display a Grid on the screen with a checkbox in each row. At the bottom of the page have "Check All" button.

Typically if I need to do anything interesting I use a template column. So my GridView will look like the one below (most other columns removed for readability). The only interesting point to note is the CssClass="ApprovalCheckBox" in the CheckBox ItemTemplate.

Dropdown list in ASP.NET - How to get value selected

am sure this must be very simple, but unforunately I can't figure it out.
I have the following code which populates the dropdown lists from the database. This works fine. Now, when the user selects a particular employee name from the list, I want to get the Employee Id of the selected employee. i.e. I need to get the "Eid" value. I can do this if the EId is loaded in the dropdown list, but in this case only the employee name is displayed. Please let me know howI can get the Eid value even though it is not loaded in the dropdown list.
I would really appreciate your help

Gridview that exports selected rows to Excel

his seems like a messy workaround, but I ended up using two Gridviews - one to display my data and show my checkboxes, and the other which was invisible amd would eventually end up as my Excel spreadsheet.

check box control


Hi ,

I have a three check box in my web form ,i need to choose only one check box, if i choose one check box

another 2 check box automatically unchecked

can i use jquery for check box

I thought this would be simple... Trying to create a login does an ajax check before submit


I have the standard .net login control that is working.  (Still learning .net after 15yrs of classic)

What I want to do is OnButtonClick run a javascript function (to do an ajax call to the db to check if login is valid or not) and if it returns true, then submit the form normally, else don't submit. The piece that I can't figure out, is how to correctly override the default click even to hit my JS routine and then submit the form properly afterwards.

Thanks ahead of time

How to let user edit selected gridview columns, not entire row



I've got a gridview I would like to let the user edit a couple of columns.  Seems like everything I'm coming across so far makes the entire row editable.  

Hopefully the solution isn't too complicated.  Can someone point me in the right direction?


Row command working on all rows not selected one?



I have this code that hides a column in a gridview.  (The column houses another nested gridview).

    Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand
        If e.CommandName = "Select" Then
            If GridView1.Columns(0).Visible = False Then
                GridView1.Columns(0).Visible = True
                GridView1.Columns(0).Visible = False
            End If
        End If
    End Sub

The trouble is that if I click the select link on one row that action to hide is carried out on all rows.  How can I set this up so that it only hides the row that is selected?


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