Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
lb.Text = (dt.Rows[0]["Pagedescription"]).ToString();
Posted
Comments
Sujith Karivelil 28-Jan-15 2:26am    
is it working? what error you ware getting while executing the code?
Tejas Vaishnav 28-Jan-15 2:33am    
Where you have write this code? your code is not having any bug, it's working. are you updating your lable text in between any running process? are you using web application/site or win form application?

1 solution

Since you are not observing the expected result (i.e. 'the data'), then, probably
Quote:
dt.Rows[0]["Pagedescription"].ToString()
does NOT contain the expected string. I suggest you to use the debugger in order to see what is happening.
 
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