Click here to Skip to main content
15,910,886 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello sir,
I want to ask that when we bind grid like We would like to Bind Name so in two ways can write

HTML
Text='<%# Eval("Name")%>' or Text='<%# Bind("Name")%>'


So we can write like this

HTML
Text='<%# container.dataitem("ProjectId") %>' 

or
HTML
Text='<%# container.dataitem("Name") %>'


This above code will work as read only if we use in place of Eval
Posted
Updated 21-Nov-11 0:45am
v2
Comments
Prashant Srivastava LKO 21-Nov-11 6:49am    
Sir I tried number of times but won't able to edit code like u did
Sergey Alexandrovich Kryukov 21-Nov-11 13:05pm    
Try not by number of times but by quality. This is really simply thing. And you should know HTML, don't you? Just click "Improve question" again and see how it is done by Uday.
--SA
Sergey Alexandrovich Kryukov 21-Nov-11 13:06pm    
ASP.NET? Tag it!
--SA
Prashant Srivastava LKO 22-Nov-11 4:54am    
Sir, I know HTML but Whenever I tried ,it never changes like uday Sir did
Prashant Srivastava LKO 22-Nov-11 4:56am    
Yes I got it I understand what u would like to say

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