Click here to Skip to main content
15,912,329 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionProblem due to Server.Transfer Pin
Sandeep Akhare6-Sep-07 23:44
Sandeep Akhare6-Sep-07 23:44 
AnswerRe: Problem due to Server.Transfer Pin
Chetan Patel6-Sep-07 23:57
Chetan Patel6-Sep-07 23:57 
GeneralRe: Problem due to Server.Transfer Pin
Sandeep Akhare7-Sep-07 0:29
Sandeep Akhare7-Sep-07 0:29 
QuestionWeird problem with dropdown onclick event in IE 7.0 for ASP 3.0 app Pin
Vipul Mehta6-Sep-07 23:26
Vipul Mehta6-Sep-07 23:26 
GeneralRe: Maximum total file size for upload in a form Pin
Yenyen Suwardy6-Sep-07 23:18
Yenyen Suwardy6-Sep-07 23:18 
GeneralRe: Maximum total file size for upload in a form Pin
Sandeep Akhare6-Sep-07 23:26
Sandeep Akhare6-Sep-07 23:26 
QuestionIFrame Pin
.NET- India 6-Sep-07 23:01
.NET- India 6-Sep-07 23:01 
Questioncheckbox gridview Pin
mcad6-Sep-07 22:54
mcad6-Sep-07 22:54 
I am working on this problem a couple of days, I did not get solution.

in my web page , there is a gridview with a checkbox templatefield
I need to know if checkbox is checked, I use following way, Even though I saw the checkbox is checked, I get checkbox.check is false.

<asp:gridview id="GridView1" runat="server" datakeynames="empid" cellpadding="4" forecolor="#333333" gridlines="None" width="335px">

<columns>

<asp:templatefield>
<headertemplate> <asp:checkbox id="chkall" runat="server">
<itemtemplate>
<asp:checkbox id="chk" runat="server">





protected void Button1_Click(object sender, EventArgs e)
{
string EmpId="";
//bool chkBox=false ;

foreach (GridViewRow row in GridView1.Rows)
//for(int row=0;row<gridview1.rows.count;row++)
{
="" checkbox="" cb="((CheckBox)row.FindControl("chk"));
"
="" if="" (cb="" !="null" &&="" cb.checked)
="" if(cb.checked="=true)
" chkbox="true" ;
="" empid="GridView1.DataKeys[row.RowIndex].Value.ToString();
" label1="" .text="" +="string.Format(
" "this="" would="" have="" deleted="" {0}<br="">", EmpId);

}
}
AnswerRe: checkbox gridview Pin
varshavmane6-Sep-07 22:56
varshavmane6-Sep-07 22:56 
GeneralRe: checkbox gridview Pin
mcad6-Sep-07 23:03
mcad6-Sep-07 23:03 
GeneralRe: checkbox gridview Pin
Imran Khan Pathan6-Sep-07 23:21
Imran Khan Pathan6-Sep-07 23:21 
AnswerRe: checkbox gridview Pin
vidyasankar7-Sep-07 0:04
vidyasankar7-Sep-07 0:04 
QuestionComma with in CSV file Pin
Prajin6-Sep-07 22:51
Prajin6-Sep-07 22:51 
AnswerRe: Comma with in CSV file Pin
Chetan Patel7-Sep-07 0:01
Chetan Patel7-Sep-07 0:01 
GeneralRe: Comma with in CSV file Pin
Prajin7-Sep-07 1:25
Prajin7-Sep-07 1:25 
GeneralRe: Comma with in CSV file Pin
varshavmane7-Sep-07 1:42
varshavmane7-Sep-07 1:42 
GeneralRe: Comma with in CSV file Pin
Prajin7-Sep-07 2:24
Prajin7-Sep-07 2:24 
GeneralRe: Comma with in CSV file Pin
J4amieC7-Sep-07 2:34
J4amieC7-Sep-07 2:34 
GeneralRe: Comma with in CSV file Pin
varshavmane7-Sep-07 2:35
varshavmane7-Sep-07 2:35 
AnswerRe: Comma with in CSV file Pin
Chetan Patel7-Sep-07 3:01
Chetan Patel7-Sep-07 3:01 
QuestionGridView Problem Pin
rahuljosh00720006-Sep-07 22:48
rahuljosh00720006-Sep-07 22:48 
AnswerRe: GridView Problem Pin
Sandeep Akhare6-Sep-07 23:35
Sandeep Akhare6-Sep-07 23:35 
AnswerRe: GridView Problem Pin
Chetan Patel7-Sep-07 0:03
Chetan Patel7-Sep-07 0:03 
QuestionMaximum total file size for upload in a form Pin
Yenyen Suwardy6-Sep-07 22:41
Yenyen Suwardy6-Sep-07 22:41 
AnswerRe: Maximum total file size for upload in a form Pin
Sandeep Akhare6-Sep-07 22:59
Sandeep Akhare6-Sep-07 22:59 

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.