Y
yysiow
hi, help..
protected void Item_Click(object sender, DataGridCommandEventArgs e)
{
if(((LinkButton)e.CommandSource).CommandName == "SelectItem")
{
string key = DataGrid1.DataKeys[e.Item.ItemIndex].ToString();
try
{
DataRow dr = ds1.tblPlasmaInfomation.FindByPlasmaid(Int32.Parse(key));
lbccuname.Text = dr["Plasma_ccuname"].ToString();
}
catch(Exception exc)
{
TextBox1.Text = exc.Message;
}
}
}
i step by step run..and dr always null....how can i sol this
problem..thanks..
protected void Item_Click(object sender, DataGridCommandEventArgs e)
{
if(((LinkButton)e.CommandSource).CommandName == "SelectItem")
{
string key = DataGrid1.DataKeys[e.Item.ItemIndex].ToString();
try
{
DataRow dr = ds1.tblPlasmaInfomation.FindByPlasmaid(Int32.Parse(key));
lbccuname.Text = dr["Plasma_ccuname"].ToString();
}
catch(Exception exc)
{
TextBox1.Text = exc.Message;
}
}
}
i step by step run..and dr always null....how can i sol this
problem..thanks..