Click here to Skip to main content
15,911,306 members

Comments by Member 8715996 (Top 7 by date)

Member 8715996 23-Aug-12 1:10am View    
Thanks Mr.Santhosh Kumar. Now i am going through that. after that i come back.
Member 8715996 22-Aug-12 2:29am View    
..
Member 8715996 27-Jul-12 7:57am View    
hi Amy ok i changed the code to Dim cf As CommandField = DirectCast(e.CommandSource, CommandField) txtNOB.Text = cf.HeaderText but error is showing at e.CommandSource err.msg is: CommandSource is not a member of system.Web.UI.WebControls.GridViewSelectEventArgs
Member 8715996 27-Jul-12 6:43am View    
hi Amy

ok i changed the code to

Dim cf As CommandField = DirectCast(e.CommandSource, CommandField)
txtNOB.Text = cf.HeaderText

but error is showing at e.CommandSource
err.msg is: CommandSource is not a member of system.Web.UI.WebControls.GridViewSelectEventArgs
Member 8715996 27-Jul-12 6:21am View    
u want to try

CommandField cf=(CommandField)e.CommandSource;
lbl1.Text = cf.HeaderText;
code??
if yes
i am getting the "CommandField is a type and cannot be use as an expression"

and one more thing after "e." there is no CommandSource only NewSelected Index is there