473,507 Members | 8,335 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Repeater with or without objectdatasource?

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

Sep 3 '06 #1
1 1573
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:
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
Sep 4 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1280
by: Arjen | last post by:
Hi, I'm using the repeater with the objectdatasource. The repeater databinds without adding "Repeater1.DataBind();" in code behind. If I add "Repeater1.DataBind();" inside code behind, does...
0
1168
by: jdn | last post by:
Has anyone been able to get the ObjectDataSource to work with a repeater control? I have a select parameter that has a default value for page size that is passed to the select method, but it...
3
1596
by: Howard | last post by:
I need to do 2 things with the repeater control 1- in the html output give a unique template(color, font size) to the first item (not alternate) and only the first. The datasource of the...
0
1182
by: Howard | last post by:
I need to generated a list from data from 2 database tables. 1st list CATEGORY consists of columns CATID|CATEGORYNAME| 2nd table ITEM has columns ID|CATEGORYID|NAME| <asp:repeater id=parent...
1
1439
by: mwhitlatch | last post by:
I have a repeater where the data is filtered by a param in the querystring. In the repeater I have a dropdown that needs to only show the data based upon the filter I set up in the datasource. I have...
0
1718
by: =?Utf-8?B?cGI2NDgxNzQ=?= | last post by:
We have been having this problem for months and always assumed it was because of our somewhat complicated setup. I have just spent almost all of today making this into a simple example that can be...
1
7120
by: jazzart | last post by:
Hi there, I'm fairly new to programming with Asp.Net 2.0 so I'm finding myself regularly fumbling around in the dark a bit, so to speak. I'm currently using Visual Web Developer and have been...
1
4672
by: HockeyFan | last post by:
protected void gvAuthorizedSigners_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "EmptyInsert") { odsAuthorizedSigners.Insert(); return; } if (e.CommandName...
0
874
by: hardieca | last post by:
Hi, I have bound a repeater to an objectdatasource to display comments at the end of my blog. People may enter their email or omit it. When the repeater is rendering, I would like to evaluate...
0
7221
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7109
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7029
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5039
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3190
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.