Click here to Skip to main content
15,904,415 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HOw to convert the value in lable control into the string..

C#
GridViewRow row = (GridViewRow)GridView1.Rows[e.RowIndex];
       Label Username = (Label)row.FindControl("UserName");
Posted
Comments
Nickos_me 24-Nov-11 11:10am    
Repost ?:)
http://www.codeproject.com/Questions/289386/problem-in-deleting-using-row-deleting-event-of-gr

Well its hard to understand what you are asking but this
C#
string lblText = Username.Text;

will give you the labels text.

If this is not what your are asking for try to explain better what you want to do.
 
Share this answer
 
v3
Maybe I didn't understand tou right, but try:

C#
var labelString=Username.Text;


?:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900