Click here to Skip to main content
15,923,852 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Postback in DropDown List Asp.Net 1.1 Pin
Phanindra Kumar19-Feb-07 23:38
Phanindra Kumar19-Feb-07 23:38 
GeneralRe: Postback in DropDown List Asp.Net 1.1 Pin
NanaAM19-Feb-07 23:56
NanaAM19-Feb-07 23:56 
QuestionSession timeout Pin
kksenthilraja19-Feb-07 23:04
kksenthilraja19-Feb-07 23:04 
AnswerRe: Session timeout Pin
Sandeep Akhare19-Feb-07 23:14
Sandeep Akhare19-Feb-07 23:14 
AnswerRe: Session timeout Pin
sathesh pandian19-Feb-07 23:15
sathesh pandian19-Feb-07 23:15 
QuestionNortwind database Pin
tradakad19-Feb-07 21:50
tradakad19-Feb-07 21:50 
AnswerRe: Nortwind database Pin
Christian Graus19-Feb-07 22:41
protectorChristian Graus19-Feb-07 22:41 
Questionadding checkbox to Gridview edititemtemplate column [modified] Pin
Sebastian T Xavier19-Feb-07 21:07
Sebastian T Xavier19-Feb-07 21:07 
I wanted to edit a grid view column using a checkbox control,so i have used a template column and placed a checkbox control in the edit item template,and set the bind property for item control.but in the following event i am unable to identify the checked status of the control.

<br />
protected void ReportView_RowUpdating(object sender, GridViewUpdateEventArgs e)<br />
    {<br />
        <br />
<br />
       <br />
<br />
  <br />
        GridViewRow row = ReportView.Rows[e.RowIndex];<br />
        row.RowState = DataControlRowState.Edit;<br />
        CheckBox chk1 = ((CheckBox)row.FindControl("CheckBox1"));<br />
        Response.Write(chk1.Text + chk1.Checked.ToString());<br />
        if (row != null)<br />
        {<br />
            bool isChecked = ((CheckBox)row.FindControl("CheckBox1")).Checked;<br />
           <br />
<br />
            if (isChecked)<br />
            {<br />
<br />
                Response.Write("The Text Entered is" +((CheckBox)row.FindControl("CheckBox1")).Text);<br />
<br />
            }<br />
            ReportView.EditIndex = -1;<br />
<br />
           BindData(); <br />
<br />
<br />
        }<br />
<br />
    }<br />

here the checked status is not identified ie even if the check box is checked,the status is always false,but it is identifying the checkbox control
.the text value is correct ,but the checked status is always false,
please help with a solution


-- modified at 4:08 Tuesday 20th February, 2007
AnswerRe: adding checkbox to Gridview edititemtemplate column Pin
PandemoniumPasha19-Feb-07 22:32
PandemoniumPasha19-Feb-07 22:32 
GeneralRe: adding checkbox to Gridview edititemtemplate column Pin
Sebastian T Xavier20-Feb-07 20:23
Sebastian T Xavier20-Feb-07 20:23 
GeneralRe: adding checkbox to Gridview edititemtemplate column Pin
PandemoniumPasha20-Feb-07 21:33
PandemoniumPasha20-Feb-07 21:33 
GeneralRe: adding checkbox to Gridview edititemtemplate column Pin
Sebastian T Xavier20-Feb-07 23:18
Sebastian T Xavier20-Feb-07 23:18 
GeneralRe: adding checkbox to Gridview edititemtemplate column Pin
Sebastian T Xavier21-Feb-07 17:58
Sebastian T Xavier21-Feb-07 17:58 
QuestionData grid! Pin
nclauder19-Feb-07 20:27
nclauder19-Feb-07 20:27 
AnswerRe: Data grid! Pin
PandemoniumPasha19-Feb-07 20:42
PandemoniumPasha19-Feb-07 20:42 
GeneralRe: Data grid! Pin
nclauder19-Feb-07 21:18
nclauder19-Feb-07 21:18 
GeneralRe: Data grid! Pin
nclauder19-Feb-07 21:40
nclauder19-Feb-07 21:40 
GeneralRe: Data grid! Pin
PandemoniumPasha19-Feb-07 21:48
PandemoniumPasha19-Feb-07 21:48 
GeneralRe: Data grid! Pin
nclauder19-Feb-07 22:06
nclauder19-Feb-07 22:06 
GeneralRe: Data grid! Pin
luckyve19-Feb-07 22:30
luckyve19-Feb-07 22:30 
GeneralRe: Data grid! Pin
PandemoniumPasha19-Feb-07 21:47
PandemoniumPasha19-Feb-07 21:47 
AnswerRe: Data grid! Pin
NanaAM19-Feb-07 22:19
NanaAM19-Feb-07 22:19 
GeneralRe: Data grid! Pin
nclauder19-Feb-07 22:33
nclauder19-Feb-07 22:33 
GeneralRe: Data grid! Pin
NanaAM19-Feb-07 22:50
NanaAM19-Feb-07 22:50 
GeneralRe: Data grid! Pin
nclauder19-Feb-07 22:56
nclauder19-Feb-07 22:56 

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.