473,721 Members | 1,763 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get PagedDataSource ItemIndex from Repeater item in OnTextChanged event?

I want to get the database table ID of a row in a Repeater that uses a
PagedDataSource when OnTexctChanged event is fired. It seems that the
DataSource property isn’t persisted when the event is triggered so I have to
get the values from the database again. Correct?

Or is there a way of hiding the row ID’s in the page?

How do I get the correct values ie. find the table ID associated with this
row in the repater? I need the variables from the Repeater and the
PagedDataSource to find the correct row to update. How do I get these from
an OnTextChanged event? WHat does the maths look like?

Thanks in advance.


Jan 19 '06 #1
1 2249
Fred,

I have never used repeater, but I suspect that its use is similar to that
of DataGrid control. In the grid, I can create an invisible column that is
bind to the ID. Then in your event you can always refer to the Item property
to retrieve row's values.

HTH

"Fred Dag" wrote:
I want to get the database table ID of a row in a Repeater that uses a
PagedDataSource when OnTexctChanged event is fired. It seems that the
DataSource property isn’t persisted when the event is triggered so I have to
get the values from the database again. Correct?

Or is there a way of hiding the row ID’s in the page?

How do I get the correct values ie. find the table ID associated with this
row in the repater? I need the variables from the Repeater and the
PagedDataSource to find the correct row to update. How do I get these from
an OnTextChanged event? WHat does the maths look like?

Thanks in advance.


Jan 20 '06 #2

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

Similar topics

2
1357
by: Fresh Air Rider | last post by:
Could anyone please provide a code snippet demonstrating how to use the Repeater control in conjunction with the PagedDataSource class and a Strongly Typed Dataset ? I get an error informing me that my datasource does not implement ICollection. All examples of using the PagedDataSource class with the Repeater seem use untyped datasets.
1
2688
by: Fresh Air Rider | last post by:
Hi Fellow Dotnetters Could anyone please provide a code snippet demonstrating how to use the Repeater control in conjunction with the PagedDataSource class and a Strongly Typed Dataset ? I get an error informing me that my datasource does not implement ICollection. All examples of using the PagedDataSource class with the Repeater seem
4
7426
by: sck10 | last post by:
Hello, I have a repeater that is bound to a SQL Server table. I would like to place a summary in the footer for the item count and product cost. I have two fields. One for the product name and the other for product cost. <%#Container.DataItem("ProductA")%> <%#Container.DataItem("PriceA")%>
1
4904
by: Fred Dag | last post by:
As far as I can work out when using the OnTextChanged event I cannot get the TextBox and Labels values when the event fires as they are populated by a <asp:repeater and so don't have values. If I try to give the repeater values by removing if (!IsPostBack) {} from the
7
3005
by: | last post by:
I have what's probably a simple page lifecycle question related to dynamically evaluating values that are placed by a repeater and dynmically placing user controls that use those values. I'm attempting to bind a user control I've written, "ImageBox", to a repeater. The user control takes a custom property, "ContentID", that will execute a database lookup and load an image.
1
4346
by: Dave A | last post by:
I have a problem that I have boiled down to a very simple example. I have a user control that displays a some data from a business object. On one screen I have a collection of these business objects and wish to display the user control multiple times. On this web page I simply bind the repeater to the data source and in the ItemDataBound event dynamically load the user control via "LoadControl()". The user control contains an auto post...
5
3853
by: Brad Baker | last post by:
I am trying to make a "tabbed" interface by iterating through a dataset with a conditional statement. For example: ---------------------------------------------------------------------------------------------------------------------- | <a href="config.aspx?siteid=FIEJGIE">Site 1</a| Site 2 | <a href="config.aspx?siteid=DFOWEMF">Site 3</a>| In the example above site 2 is the "current" tab. I have the following code at the top of my...
1
7131
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 following the www.asp.net data access tutorials to create a DAL and BLL to connect my web site (a simple real estate property search web site) to my database (Sql Express 2005).
1
1765
by: barryh | last post by:
I have an on-line catalogue that has a hierarchal category structure. I am using the PagedDataSource to wrap the business object along with the Repeater control to display the items in pages. The problem I am having is linking to an item that is not on the first page of a given category. What is the best approach to determining which page an item is on? Thanks
0
8840
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8730
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9215
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9064
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6669
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5981
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3189
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2130
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.