Repeater with or without objectdatasource?

A

Arjen

Hi,

Can someone tell me what is the best to use in this situation?

Now I work with an objectdatasource for my repeater. I choosed this
because I was thinking that this is the best... now I want to make my
own pager and get problem with the add parameter section (I have add a
parameter pageindex, when the user clicks it add again this
parameter... I don't know how to update this value, someone???).

I also have made the same thing but then with a datareader function.
Now I cannot use:
(DataRowView)Container.DataItem)["Title"]

But have to use:
DataBinder.Eval(Container.DataItem, "Title")

What is the best to use? The old situation with the object data source
or the new with DataBinder.Eval?

Thanks!
Arjen
 
M

Manu

Arjen,

I don't understand your problem with the pager in the repeater. Please
elaborate more your problem. Also take a look at this:

http://www.manuelabadia.com/products/PDS_features.aspx

Regarding the second question, DataBinder.Eval uses reflection to
extract the value. The other way doesn't use reflection so it's faster
(but less legible). If you expect really heavy traffic, try to avoid
DataBinder.Eval but if not, use the one that you feel more confortable
with.

Best regards,
Manuel Abadia

Arjen ha escrito:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top