How to call a code-behind method from aspx page?

TheOriginalV

New Member
I've an object that contains a field called DevList which is defined like this\[code\]public List<string> DevList { get; set; }\[/code\]I also defined a method called DisplayListOfDevelopers that is supposed to concatenate the list of developers and display it as a one string.This is how I'm calling the method from aspx.\[code\]<asp:TemplateField HeaderText = "Developer(s)"> <ItemTemplate> <asp:Label ID="_lblDevList" runat="server" Text= '<%# DisplayListOfDevelopers(DevList) %>'> </asp:Label> </ItemTemplate></asp:TemplateField>\[/code\]But, I'm getting this error: The name 'DevList' does not exist in the current contextAm I missing something?EDIT\[code\]_gvStatus = ds;_gvStatus.DataBind();\[/code\]Where ds is just a list of objects that contains the DevList for now. Thanks for helping
 
Back
Top