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


Top 5 Contributors of the Month
Imran Ghani
Post New Web Links

select only one checkbox

Posted By:      Posted Date: October 15, 2010    Points: 0   Category :ASP.Net
 


<asp:ListView ID="lvFolder" runat="server">
                    <LayoutTemplate>
                <table>
                    <tr>
                        <td>
                            <table id="Table1"  style="width:1008px"


View Complete Post


More Related Resource Links

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

checkbox in listview layout template check select all checkboxes in listview itemtemplate

  
hi,how to do this when the checkbox in listview layout template check select all checkboxes in  listview itemtemplate.I dont give 'Eval 'field to checkbox present in itemtemplate.pls reply me.Many thanks in advance.

Passing numeric checkbox values into a select statement

  

For efficiency's sake I've created a number of stored procedures to run against an SQL table.  Which procedure runs depends upon the checkboxlist choices a user makes before clicking a button.  The checkboxlist looks something like this:

      <asp:CheckBoxList AutoPostBack="True" runat="server">

         <asp:ListItem Enabled="True" Value="1">Item 1</asp:ListItem>

         <asp:ListItem Value="10"> Item 2</asp:ListItem>

         <asp:ListItem Value="100"> Item 3</asp:ListItem>

      </asp:CheckBoxList>As an example,

 

What I can't figure out is how to loop through the checkboxes in the Button1_Click event in the .cs code behind page to add up the values of the selected items. (The value of an unclicked box being 0.)  Converted to a string, the totaled value is then appended to a stored procedure name (MyPROC) for entry into the SQL statement.  In other words, if the user clicks just Item 1, then the Button1_Click event would produce a stored procedure name of MyPROC1, insert it into the statement, and fire off the query; if Ite

Select checkbox and add a date to table

  

I would like to know if there is a way I can select a checkbox and this would add an end date to another table?  I have 2 tables Staff_Tasks, this has the checkbox set up as an int, 1 or 0, and the other Jobs which has a field end_date.  So when the user clicks on a checkbox it will add this end_date as today's date.  The end_date is never displayed, its just stored in the database.  I am not even sure if this is something that can be done as an SQL query or if it will be done in my back-end code?  I am writing in C#.  Does anyone have a little more information?


Select all rows from one checkbox in a GridView

  
The article Select all rows from one checkbox in a GridView was added by tmorton on Thursday, May 12, 2011.

Today i'm going to show you how to select all records in a gridview from one checkbox which located in gridview header.First set gridview like below code snnippetasp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"

Gridview header checkbox select and deselect all rows using client side JavaScript and server sideC#

  
In this article, I will show you how to add checkbox in gridview header template then select and deselect all rows in gridview using clients side JavaScript and server side as well.

jQuery: Highlight Gridview Rows with Checkbox

  
Im learning and experimenting with jQuery and ASP.NET. Below is a simple solution I created to highlight rows in a gridview by clicking on a checkbox next to the row.

Gridview setup:

jQuery: Highlight Gridview Rows with Checkbox

  
Im learning and experimenting with jQuery and ASP.NET. Below is a simple solution I created to highlight rows in a gridview by clicking on a checkbox next to the row.

Editable Gridview with Textbox, CheckBox, Radio Button and DropDown List

  
This is an example of an editable gridview containing different ASP.NET controls. When user wants to edit values in gridview, she/he can use these controls to edit existing values in Gridview Edit Mode.

Using the Code

Select value in gridview

  

Hi, I am new to gridview. I want to make a gridview. Its row when selected should direct me to a specific .aspx page.Each row should direct to a different page. Should I use querystrings for this? Please suggest. Regards, ap.


How to read value of CheckBox in EXCEL sheet

  

I am using OLEDBConnection (@"Provider=Microsoft.ACE.OLEDB.12.0;") to connect to the EXCEL file and read contents. When I read the contents, I get all the contents from the excel sheet but i dont get contents for checkboxes placed inside.

My Excel sheet contains set of checkboxes and I need to know If they are checked or not.These checkboxes are controls which are added from Developer tab in EXCEL.

I dont want to use Excel Assemblies for reading contents as it is not recommended. And also i am using OLEDBconnection and want to stick to this .


Awaiting replies from you guys. Thanks in Advance.


The XML Files: XSLT Keys, Select vs. Match, Conflict Resolution, and More

  

This month Aaron Skonnard covers how keys work in XSLT, XSLT match and select attributes, SelectNodes order, finding