databinder

Formatting DataBinder.Eval data

How can I format data coming from a DataBinder.Eval statement in an ASPX page? For example, I want to display the published date of the news items in a particular format in the homepage. I'm using the ASP.NET 2.0 Repeater control to show the list of news items. The code for this goes like this: <asp:Repeater ID="Repeater1" runat="serv...

How to get Castle MonoRail's DataBinder/SmartDispatcherController to bind against types containing properties that are interfaces?

We're using interfaces to represent entity classes in our domain model. We have concrete implementations of these by virtue of using LinqToSql. We have added a factory method to each LinqToSql class which our service layer uses to instantiate a new entity (note; as opposed to the controller's DataBind attribute doing it). MonoRail's d...

Problem with Scala Dispatch Databinder library

I am using the Dispatch Databinder library for Http in Scala. I have this method. def testCheckPage(url:String):String = { try { var http = new Http var request = new Request(url) val req_with_agent = request <:< Map("User-Agent" -> "Mozilla/4.0") val responseBody = Http (req_...

Looking for guidance on data binding

Hello, Is their any mechanism in the .net framework for a binding mechanism between say as set of data source objects and an object to be built from them. 3.5+. I'm not looking for binding to asp.net or forms binding mechanisms, which are old hat. Bob. ...

http(/* argument here */) How is this Object (Http) being used without an explicit or implicit method?

In the example for coding with Json using Databinder Dispatch Nathan uses an Object (Http) without a method, shown here: import dispatch._ import Http._ Http("http://www.fox.com/dollhouse/" >>> System.out ) How is he doing this? Thank you for all of the answers unfortunatly I was not specific enough... It looks like it is simply pas...

DataBinder.Eval in c#

Hi anybody know how to use databinder.eval in c# Actually I've tried this LinkButton lnkName = new LinkButton(); lnkName.CommandArgument = DataBinder.Eval("object","<%#COURSE_ID%>"); it is showing error. Whats the wrong with this? ...

Accessing object property as string and setting its value

Hello there, I have an object in csharp from the class Account each account have a owner, reference, etc. One way I can access an accounts properties is through accessors like account.Reference; but I would like to be able to access it using dynamic string selectors like: account["PropertyName"]; just like in javascript. so I wou...

Using DataBinder.Eval() in style attribute of an asp.net control

Hello I've a asp.net linkbutton inside asp.net repeater control which renders multiple link buttons. I want to set the style of each and every linkbutton dynamically. I'm trying style="color:#6D7B8D;font-size:<%# DataBinder.Eval(Container.DataItem, "Title")%>;" But i'm getting "The server tag is not well formed" error. Any ideas? ...

Binding to a List<string> using DataBinder.Eval

I have the following object: CrossTabDataObject { string RowName{get;set;}; int RowId{get;set;} List<string> CellContents = new List <string>(); //Constructor..... etc. } I'm building a dynamic crosstab grid using GridView in asp.net 3.5 I wish to bind to CellContents[0] for dynamic column 1, CellContents[1] for dynamic...

Why won't DataBinder.Eval work

I am trying to create a simple menu system using repeaters. In the system I want to use a different formatting for class sub items and am trying to use an If that checks the DataBinders results and branches if its "Classes" but when I compile the code is says: Name "Container" not declared. On all the tutorials online and MSDN the Co...