Murugavel S

Murugavel S

  • NA
  • 83
  • 24k

ASP.net

Aug 18 2015 9:13 AM
hi friends,
      
         i hav to use value from event to other methods.
         Is it possible to do this??? 
 
   string NameId = string.Empty;
   string OrdId= string.Empty; 
 
my event : 
protected void dgv_RowEditing(object sender, GridViewEditEventArgs e)
{
   GridViewRow row = (GridViewRow)dgvDeplymentReport.Rows[e.NewEditIndex]; 
   NameId= row.Cells[17].Text; (here getting gridview value)
   OrdId = row.Cells[18].Text;
}
 
private void Something()
{
a=NameId; (here im nt getting the Value from event)
b=OrdId; 
 
My Question is hoe to use that event value in other methods..
Pls Help me
Thanks In Advance 

Answers (2)