473,385 Members | 1,620 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,385 software developers and data experts.

Postback and Repeater

Hi there

I have a repeater which I bind to an arraylist (and the list is displayed on
my page). The list is data fetched from a database.

During a postback from another control, for example from a dropdown on the
page, is the state (contents) of the repeater and arraylist maintained
(maybe the ViewState handles this?) ? Or do I need to re-populate the
arraylist and bind the data again to the repeater?

Thanks,
Peter
Nov 17 '05 #1
2 2351
Hi,

Did you tried it?

Unless you create your Repeater in code it will kept its state
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Peter Kirk" <pk@alpha-solutions.dk> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi there

I have a repeater which I bind to an arraylist (and the list is displayed
on my page). The list is data fetched from a database.

During a postback from another control, for example from a dropdown on the
page, is the state (contents) of the repeater and arraylist maintained
(maybe the ViewState handles this?) ? Or do I need to re-populate the
arraylist and bind the data again to the repeater?

Thanks,
Peter

Nov 17 '05 #2
Hi, thanks - yes I did try it.

And while it does work like I hoped and expected if I run it as a
"standalone" webpage, it does not work if I have my ascx running as part of
a CMS we are using.

I just wanted to build a body of evidence that the problem was not with my
code, but with the CMS.

Thanks,
Peter

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> skrev
i en meddelelse news:u0**************@TK2MSFTNGP10.phx.gbl...
Hi,

Did you tried it?

Unless you create your Repeater in code it will kept its state
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Peter Kirk" <pk@alpha-solutions.dk> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hi there

I have a repeater which I bind to an arraylist (and the list is displayed
on my page). The list is data fetched from a database.

During a postback from another control, for example from a dropdown on
the page, is the state (contents) of the repeater and arraylist
maintained (maybe the ViewState handles this?) ? Or do I need to
re-populate the arraylist and bind the data again to the repeater?

Thanks,
Peter


Nov 17 '05 #3

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

Similar topics

5
by: Scott Lyon | last post by:
I am having a strange problem. The program is a bit complex, but I'll try to simplify what I can. I apologize if this is complicated, but I think this would still be simpler than posting a bunch of...
0
by: Sparhawk | last post by:
I got a weird problem with a repeater. The Repeater has an ImageButton in its ItemTemplate. The Repeater has an ItemCommand defined. If the user clicks one of the buttons, nothing happens. If...
2
by: Jim Duncan | last post by:
How can I make a client-side javascript form.submit() look enough like a postback that the browser back button will not show the previous state of the form and instead go to the previous page? I...
1
by: Andy | last post by:
team, my postback is changing once i bind an arraylist to a repeater. how can i get the postback to return true? ''''''''''''''''''''''''''''''''''''''''' 'declarations
2
by: Philippe Camus | last post by:
I didn't find any documentation about this behaviour. On postbacks the Repeater ItemCreated event is fired before Page_Load event It occurs for each item with empty...
1
by: Timbo | last post by:
Hi all, This is my first message here so i'll try and include all the information that will help you help me out, if possible. Basically I am using C# in ASP.NET 2.0 and have a Repeater...
2
by: Nemo | last post by:
Hi, I have i fishy problem when I have e Repeater with user controls. page_load { if (!isPostBack) { repeater.databind(); }
2
by: Wizzard | last post by:
I have a repeater with and imagebutton on a page useing VS2005 ASP.Net 2.0 <asp:Repeater ID="Repeater1" runat="server" > <ItemTemplate> <div> <asp:ImageButton ImageUrl="button.gif"...
1
by: tarscher | last post by:
Hi all, I have a repaeter rendering textboxes. I also attach a datascource (array) to the repeater with default valeus: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack)...
26
by: JJ | last post by:
Is there any way you can expand a parent node on the treeview control _without a postback_ by clicking on the node text (NOT clicking the expand image URL) ? I want to format the treeview node...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...

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.