using Eval in vb.net

Posted by Bin_Zain on Stack Overflow See other posts from Stack Overflow or by Bin_Zain
Published on 2010-05-08T11:17:31Z Indexed on 2010/05/08 11:28 UTC
Read the original article Hit count: 200

Filed under:

hiii evryone....

i have small problem with my code in vb.net that i want to use (Eval) in my project

so i write this code :

<asp:Label ID="Label1" runat="server" 
                            Text='<%#Eval("PAG_PAGES") == null ? "" : ((PostAgenciesModel.PAG_PAGES)(Eval("PAG_PAGES"))).PAGE_TITLE_AR %>'></asp:Label>

and this code i used in my C# project .... all want to show the (Label1) in insied my GridView....

("PAG_PAGES") is the name of table..

PostAgenciesModel is the edmx...

PAGE_TITLE_AR is the colum in ("PAG_PAGES") that i want to show it

can anyone help plzzz

thanxx

© Stack Overflow or respective owner

Related posts about vb.net