Height="335px"
style="font-size: medium; margin-right: 0px;" Width="805px"
AllowPaging="True"
onselectedindexchanged="GridView1_SelectedIndexChanged">
HeaderText="Name" DataField="EMP_NAME" />
HeaderText="Employee Code" DataField="employee_code" />
HeaderText="PF NO" DataField="PF_NO" />
DataField="dol" />
DataField="F_NAME" />
DataField="DOB" />
DataField="SEX" />
DataField="rol" />
onclick="generate_Click" />
I have bound it to the database. I want to access its values in another page.
When i check a row and click generate it should be accessible in other pages as well.
I was using the followin in .cs page:
protected void generate_Click(object sender, EventArgs e)
{
foreach (GridViewRow row in GridView1.Rows)
{
CheckBox chkBx = (CheckBox)row.FindControl("chk");
if (chkBx.Checked && chkBx!=null)
{
Response.Redirect(string.Format("covering_expn.aspx?name=" + row.Cells[1].Text));
}
}
grdveiw();
But its not accepting the parameters in the other page...Please help.
沒有留言:
張貼留言