473,324 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Need help in accessing a control embedded in a repeater

I am implementing pagination using a repeater bound to an ArrayList. The
ArrayList has Prev, 1, 2, 3.. Next values.
<itemTemplate>
<asp:LinkButton id="lnkPages" value=<%(Dictionary.key)%>
item=<%(Dictionary.value)%/>
<itemTemplate>

I am trying to change style of the LinkButton which is currently active or 1
initially. I am using the ItemBound event to do this. I need help in
accessing the LinkButton in this event.
Thanks in advance.
-qwerty
--
Live one day at a time.
Nov 19 '05 #1
2 1587
Vko
in the ItemBound event :

if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType ==
ListItemType.AlternatginItem)
LinkButton lnkPages = (LinkButton) e.Item.FindControl ("lnkPages");

"redmond" wrote:
I am implementing pagination using a repeater bound to an ArrayList. The
ArrayList has Prev, 1, 2, 3.. Next values.
<itemTemplate>
<asp:LinkButton id="lnkPages" value=<%(Dictionary.key)%>
item=<%(Dictionary.value)%/>
<itemTemplate>

I am trying to change style of the LinkButton which is currently active or 1
initially. I am using the ItemBound event to do this. I need help in
accessing the LinkButton in this event.
Thanks in advance.
-qwerty
--
Live one day at a time.

Nov 19 '05 #2
Thanks Vko, it works.

"Vko" wrote:
in the ItemBound event :

if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType ==
ListItemType.AlternatginItem)
LinkButton lnkPages = (LinkButton) e.Item.FindControl ("lnkPages");

"redmond" wrote:
I am implementing pagination using a repeater bound to an ArrayList. The
ArrayList has Prev, 1, 2, 3.. Next values.
<itemTemplate>
<asp:LinkButton id="lnkPages" value=<%(Dictionary.key)%>
item=<%(Dictionary.value)%/>
<itemTemplate>

I am trying to change style of the LinkButton which is currently active or 1
initially. I am using the ItemBound event to do this. I need help in
accessing the LinkButton in this event.
Thanks in advance.
-qwerty
--
Live one day at a time.

Nov 19 '05 #3

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

Similar topics

1
by: Steve Gadlin | last post by:
Hi there! First off, let me apologize for the basic question... I'm very new to .NET programming. I'm building a web site using VB.NET, and am trying to include several custom user controls. ...
3
by: anon | last post by:
I am having a hard time with makeing what I am trying to do work. I am making a questionaire web app. I have a custom control that has a label and 5 radio buttons. My problem is that each...
4
by: Roshawn | last post by:
Hi, I have a Repeater control that is databound to an array. This array contains data regarding products (ie. Name, Price, Manufacturer, etc.). I am wondering how do I display data in a...
2
by: Imran Aziz | last post by:
Hello All, I have added html checkboxes in each row of the repeater control that I draw on the page. Now when I wan to find out if the check boxes have been checked or not, I cannot seem to access...
1
by: Charlie | last post by:
Hi: I'm laying out a hieraracical report by nesting repeater controls. I'm using panels to expand/collapse detail sections. To access a panel in a nested repeater, I use the following code. ...
0
by: Keith | last post by:
I have a repeater control that contains a HeaderTemplate and an ItemTemplate. Each item contains a checkbox with an ID of chkReconciled, and the header contains a single checkbox with an ID of...
1
by: Dave | last post by:
I have the following ASP.NET 2.0 code (simplified here for ease): <asp:Repeater id="SearchResultsRepeater" runat="server"> <ItemTemplate> <uc:SearchResult ID="SearchResult"...
1
by: NishChaks | last post by:
Hi, I have a texbox which is a template column of a grid and the grid is inside the repeater. If there is only one control in the repeater then we can use foreach (RepeaterItem item in...
1
by: HockeyFan | last post by:
protected void gvAuthorizedSigners_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "EmptyInsert") { odsAuthorizedSigners.Insert(); return; } if (e.CommandName...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.