Click here to Skip to main content
15,902,817 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: An error has occurred while establishing a connection to the server Pin
Christian Graus29-Jul-08 12:40
protectorChristian Graus29-Jul-08 12:40 
Questionajax dual slider control asp.net c# 2.0 Pin
VijayVishwakarma29-Jul-08 2:33
VijayVishwakarma29-Jul-08 2:33 
AnswerRe: ajax dual slider control asp.net c# 2.0 Pin
VijayVishwakarma29-Jul-08 22:03
VijayVishwakarma29-Jul-08 22:03 
AnswerRe: ajax dual slider control asp.net c# 2.0 Pin
bhargavpp30-Aug-11 1:45
bhargavpp30-Aug-11 1:45 
Questionjavascript for grid view checkbox Pin
umeshdaiya29-Jul-08 2:18
umeshdaiya29-Jul-08 2:18 
AnswerRe: javascript for grid view checkbox Pin
eyeseetee29-Jul-08 2:25
eyeseetee29-Jul-08 2:25 
GeneralRe: javascript for grid view checkbox Pin
Anand Desai29-Jul-08 2:31
Anand Desai29-Jul-08 2:31 
GeneralRe: javascript for grid view checkbox Pin
umeshdaiya29-Jul-08 2:48
umeshdaiya29-Jul-08 2:48 
Error: chkid is not defined
Source File: http://localhost/javascripts1/gridviewex2.aspx
Line: 21
mycheck box name is chkid
and i use this code

function ChangeCheckBoxState(id, checkState)
{
var cb = document.getElementById(id);
if (cb != null)
cb.checked = checkState;
}

function ChangeAllCheckBoxStates(checkState)
{
// Toggles through all of the checkboxes defined in the CheckBoxIDs array
// and updates their value to the checkState input parameter
if (chkid != null)
{
for (var i = 0; i < chkid.length; i++)
ChangeCheckBoxState(chkid[i], checkState);
}
}


grid view code is where code checkbox exists

<asp:gridview runat="server" id="gv1" autogeneratecolumns="false" pagesize="10" allowpaging="true" gridlines="Both" width="100%" onrowdatabound="gv1_RowDataBound" onrowcommand="gv1_RowCommand" xmlns:asp="#unknown">
<headerstyle backcolor="#84A8C9">
<alternatingrowstyle backcolor="#F4FAFF">
<rowstyle backcolor="#DBECFB" verticalalign="Top">
<columns> <asp:templatefield>
<headertemplate>
Action

<itemtemplate>
<asp:checkbox id="chkid" runat="Server" width="16">
<%--<asp:linkbutton id="edit" runat="server" commandname="edit1" width="16" text="Edit">--%>
<asp:imagebutton id="drop" runat="Server" commandname="del" width="16" imageurl="~/images/delete.png" imagealign="Top">
<asp:imagebutton id="edit" runat="server" commandname="edit1" width="16" imageurl="~/images/edit.png" imagealign="Top">
<%--<asp:image id="img11" runat="server" imageurl="~/images/Info.png">--%>

<itemstyle height="12%" width="8%">

<asp:templatefield>
<headertemplate>
First Name

<itemtemplate>
  
<asp:literal id="lt_fname" runat="server">


<itemstyle height="12%" width="18%">

<asp:templatefield>
<headertemplate>
Last Name

<itemtemplate>

<asp:literal runat="server" id="lt_lname">


<itemstyle height="12%" width="18%">

<asp:templatefield>
<headertemplate>
Qualification

<itemtemplate>

<asp:literal runat="server" id="lt_qual">


<itemstyle height="12%" width="18%">

<asp:templatefield>
<headertemplate>
Active

<itemtemplate>
<asp:linkbutton runat="server" id="btn_status" text="Active">

<itemstyle height="12%" width="10%" horizontalalign="Center">

<asp:templatefield>
<headertemplate>
Status

<itemtemplate>
<asp:imagebutton runat="server" id="btn_info" commandname="info" borderwidth="0" imageurl="~/images/Info1.png" imagealign="Middle">
<asp:image id="img_info" runat="server" borderwidth="0" visible="true" imageurl="../images/Info.png" imagealign="Middle">


<itemstyle height="12%" width="10%" horizontalalign="Center">




button coding outside of gridview



 

QuestionDesigning Ajax Enabled Web application Pin
Ramakrishna GS29-Jul-08 2:13
Ramakrishna GS29-Jul-08 2:13 
AnswerRe: Designing Ajax Enabled Web application Pin
Mogaambo29-Jul-08 2:26
Mogaambo29-Jul-08 2:26 
GeneralRe: Designing Ajax Enabled Web application Pin
Ramakrishna GS29-Jul-08 21:29
Ramakrishna GS29-Jul-08 21:29 
Questionform view with ajax tab control Pin
Mogaambo29-Jul-08 2:05
Mogaambo29-Jul-08 2:05 
Questionhow to display images using datalist control Pin
nileshsaraf29-Jul-08 1:49
nileshsaraf29-Jul-08 1:49 
AnswerRe: how to display images using datalist control Pin
Anand Desai29-Jul-08 1:51
Anand Desai29-Jul-08 1:51 
AnswerRe: how to display images using datalist control Pin
eyeseetee29-Jul-08 3:36
eyeseetee29-Jul-08 3:36 
QuestionMultiple Instances of same usercontrol on a single page works or not Pin
lakshmichawala29-Jul-08 1:39
lakshmichawala29-Jul-08 1:39 
AnswerRe: Multiple Instances of same usercontrol on a single page works or not Pin
Anand Desai29-Jul-08 1:50
Anand Desai29-Jul-08 1:50 
QuestionFile Upload Problem Pin
Bharani_Ram29-Jul-08 1:12
Bharani_Ram29-Jul-08 1:12 
AnswerRe: File Upload Problem Pin
Venkatesh Mookkan29-Jul-08 18:07
Venkatesh Mookkan29-Jul-08 18:07 
QuestionHelp with WebConfigurationManager ?? Pin
Imran Adam29-Jul-08 1:04
Imran Adam29-Jul-08 1:04 
AnswerRe: Help with WebConfigurationManager ?? Pin
Imran Adam29-Jul-08 2:29
Imran Adam29-Jul-08 2:29 
AnswerRe: Help with WebConfigurationManager ?? Pin
Anudeep Jaiswal1-Aug-08 0:40
Anudeep Jaiswal1-Aug-08 0:40 
QuestionDisabling master page features in Content Pages Pin
meeram39529-Jul-08 0:43
meeram39529-Jul-08 0:43 
AnswerRe: Disabling master page features in Content Pages Pin
hayvevoianh30-Jul-08 3:31
hayvevoianh30-Jul-08 3:31 
Questiondesign the web page Pin
gaurav mangal29-Jul-08 0:36
gaurav mangal29-Jul-08 0:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.