Skip to Content
0
Apr 19, 2007 at 07:09 AM

modification aspx files

118 Views

i'm trying to make adjustments to existing aspx files.

when im looking at e.g. /admin/common/accounts/accountsearch.aspx im looking at the code and i see the databinder.eval is being used for getting data.

i'm not that experienced in C#, so i dont know how a databinder exactly works or how this can be modified. i'm used to programming in C, C++ and Java.

my case is im trying a simple example of changing this particular code

 

<asp:TemplateColumn HeaderText="colName" SortExpression="LastName, FirstName">

<ItemTemplate>

<asp:HyperLink id="lnkUserID" runat="server" Visible="True" /> -

<%# DataBinder.Eval(Container, "DataItem.FirstName") %>

<%# DataBinder.Eval(Container, "DataItem.LastName") %>

<br>

and the problem is, i dont want it to take the dataitem Firstname, Lastname but the DisplayName from the NPUser NPobject.

if tried a couple of ways of implementing this method

public string DisplayName {get; set;} from the netpoint API.

and i also tried to completely rewrite an aspx/aspx.cs file like stephen byrne explained in a preview post, but its a little to incomplete for me and its also rather hard to do this with not enough knowledge of ASP.NET and C#. so can anybody help me a little on the way how to accomplish this??

any help would be gratefull

kind regards,

Coen Oude Luttikhuis