Questions tagged [databinder]

73 questions
0
votes
1 answer

Use value from DataBinder.Eval to show an image

I am using a Repeater and DataBinder.Eval to get the values from a code behind:
Georg
  • 117
  • 3
  • 18
0
votes
1 answer

evaluate two bools for a single bool result

I have a asp repeater and one of the items requires me to show or hide a text string depending upon the state of TWO boolean values This works fine:
T3.0
  • 446
  • 1
  • 6
  • 21
0
votes
2 answers

Remove DataBinder.Eval field if it is null or blank

Actually I am binding some data on tooltip of a Image control in gridview. all is working fine. see my code below
Gaurav
  • 557
  • 4
  • 11
  • 28
0
votes
0 answers

SpringMVC how to Bind A Multi Select Option Element

I have four select option list two are populated with data form the database and two are multi selects which are bind to the POJO. I then use java script to add options form the database select option list into the bind select option list however…
devdar
  • 5,564
  • 28
  • 100
  • 153
0
votes
1 answer

How to change the amount of columns in DataList (Webforms, C#)

I have made a web app which query's a database and returns the results in a Datalist. The user can specify which columns to return. For the Datalist I have done this:
user1826413
  • 133
  • 1
  • 12
0
votes
1 answer

Spring databinder reusing

I'm creating few objects in loop using DataBinder. I wonder if it is possible to reuse DataBinder object instead of create it each time. Is it possible? Now I have: while (condition) { obj = new MyObj(); DataBinder db = new…
Saram
  • 1,500
  • 1
  • 18
  • 35
0
votes
2 answers

How to iterate on a T object to find a property?

I have this code that I am currently adapting to use nested entity (entity framework). I have an entity which contains 2 property which are 2 children entities. The first step was to read the metadata on both classes, starting from the first…
Kraz
  • 6,910
  • 6
  • 42
  • 70
0
votes
1 answer

repeater ASP .NET databind to navigationURL

I'm trying to bind an ID to an already defined navigation url from a hyperlink.
user1122844
  • 87
  • 4
  • 13
0
votes
1 answer

How to bind form field to a Map of Objects in Play 2.03

Trying to bind a field to a map of objects I got this error "*[NullValueInNestedPathException: Invalid property 'wrappedText[index]' of bean class [models.Simple]: Could not determine property type for auto-growing a default value] From what I've…
jgatcher
  • 175
  • 5
  • 12
0
votes
2 answers

Databinder inside a "for" loop in an ASPX page

I'm still trying to understand how I can take advantage from DataBinder ( Is there a way to use a DataBinder.Eval statement as an index of a specific array in an ASPX page? ). I'm currently building tables with the help of repeater and I would like…
S3MP
  • 113
  • 7
0
votes
2 answers

DataBinder in asp.net

i have this: ( useing Repeater but this bit long with all the fields problem is with this one) <%#DataBinder.Eval(Container.DataItem, "Category")%> and : RentalCarBL.CarBL bl = new RentalCarBL.CarBL (); …
user1246950
  • 1,022
  • 2
  • 10
  • 19
0
votes
2 answers

databinder for wicket concept & status

Seems like Wicket + DataBinder(https://github.com/wicket-databinder/wicket-databinder) is good solution if you know only plain java and need to write data-driven web app, as i am. But when i use auth functionality of dataBinder i gain error - when…
cynepnaxa
  • 1,024
  • 1
  • 14
  • 30
-2
votes
2 answers

Convert.ToInt throws Object cannot be cast from DBNull to other types

What seems to be wrong with the below code? I think there are null in the database, how do I sum a column that contains null? int Total_QtyinHand = 0; int Total_QtyAllocated = 0; int Total_QtyinStock = 0; int Total_QtyUpcoming = 0; protected void…
1 2 3 4
5