Questions tagged [databinder]
73 questions
74
votes
11 answers
Accessing object property as string and setting its value
I have an instance of the Account class. Each account object has an 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…

zanona
- 12,345
- 25
- 86
- 141
30
votes
10 answers
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…

Nahom Tijnam
- 4,726
- 5
- 25
- 25
15
votes
4 answers
Using DataBinder.Eval() in style attribute of an asp.net control
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,…

NLV
- 21,141
- 40
- 118
- 183
9
votes
6 answers
Issue with bindFromRequest in Play! Framework 2.3
I'm trying to use the automatic binding feature of Play, without success. I'm developing in Java, on Eclipse 4.4 Luna.
Here is my form :
Create a new user
8
votes
1 answer
Invalid target for Validator in spring error?
Hi all I am getting the following error whenever I am trying to invoke validator in my spring
Servlet.service() for servlet spring threw exception: java.lang.IllegalStateException: Invalid target for Validator
Please have a look and help me out in…

Pulkit
- 3,953
- 6
- 31
- 55
8
votes
0 answers
Alternative(s) to DataBinder.Eval for .NET Framework Client Profile?
I would like to have the functionality of DataBinder.Eval (i.e., perform runtime databinding); however, DataBinder.Eval is defined in the System.Web assembly, which is not available on the .NET Framework 4 Client Profile.
I am wondering if there is…

cm007
- 1,352
- 4
- 20
- 40
7
votes
3 answers
Scala Dispatch library: how to handle connection failure or timeout?
I've been using the Databinder Dispatch library in a client for a simple REST-ish API. I know how to detect if I get an HTTP response with an error status:
Http x (request) {
case (200, _, _, content) => successResult(content())
case (404,…

Eli Bishop
- 216
- 3
- 6
7
votes
2 answers
Difference between DataBinder and ConversionService in Spring
I am experiencing some confusion in the use and purpose of Spring's DataBinder and ConversionService with regards to binding web requests to model objects. This has arisen because I have recently tried to use the JSR-303 validation by adding .
Prior…

jtsnr
- 1,180
- 11
- 18
6
votes
2 answers
.net WinForms data binding using Lambda instead of property
In my project I have a model and I want to bind the visible state of a label using one of the model properties. I do not want to add another ShowLabel property to the model. I want to be able to write something like…

Radu D
- 3,505
- 9
- 42
- 69
6
votes
3 answers
Scala dispatch GET request, fail to parse response to json
im writing a function that :
1) send HTTP GET request (response is a valid JSON)
2) parse the response to a json object
code snippet :
val page = url("http://graph.facebook.com/9098498615")
val response = Http(page OK…

Nimrod007
- 9,825
- 8
- 48
- 71
5
votes
3 answers
What is the standard ASP.net data binding syntax?
Microsoft's introduction to data-binding using the asp:Repeater control gives the syntax to fetch a value:
<%# DataBinder.Eval(Container.DataItem, "orderid") %>
This syntax is repeated on other introductions to the ASP.net Repeater…

Ian Boyd
- 246,734
- 253
- 869
- 1,219
4
votes
4 answers
C# - Looping through a Repeater control and accessing values added via DataBinder.Eval()
I have a Repeater control that adds rows to a table. The data inside each cell comes from a Datatable that is bound to the repeater.
Simplified Example:
<%#…

PercivalMcGullicuddy
- 5,263
- 9
- 46
- 65
4
votes
2 answers
Why is my Hibernate Query returning stale data?
Quick Version
Basically, I'm updating a Hibernate Table and subsequent queries are loading a stale value.
Detailed Version
Hibernate (3.3.1.GA) and EhCache (2.4.2).
Persisted Book object with a List of pages and I'm adding a page to the…

jbrookover
- 5,100
- 1
- 23
- 23
4
votes
4 answers
DataBinder.Eval data item Empty
I am having trouble trying to figure on how to hide a ',' when the DataItem is empty.
Basically, I have table row that displays Registered Address and populated using the following technique:
<%# DataBinder.Eval(Container.DataItem, "Address_Line_1"…

KJSR
- 1,679
- 6
- 28
- 51
4
votes
4 answers
Repeater databinder.eval double quotes
I have a repeater like the following,
Now, I…

Sait
- 19,045
- 18
- 72
- 99