473,545 Members | 1,310 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

each second time ...

.... i do a server roundtrip, my dynamical control set is broken.

Here is the plot:

I have a dynamical control with some dynamical buttons within. How many
of these buttons are shown depends on the hierachical lefel of my
datastructure.

1) I click on the second button in line. The event fires correctly and
the right thing is done
2) I click any button -> the event isn't fired, nothing is done
3) resume with 1

if tracked this problem to the Viewstate. Here are the Keys retrieved
from Request.Form:
1) "_ctl0:_ctl 2.x" "_ctl0:_ctl 2.y"
2) "_ctl0:_ctl 6.x" "_ctl0:_ctl 6.y"

It seems that evey second time I do a roundtrip, the former dynamic
controls (which had to be added while pageload to retrieve the event),
that I clear in the click event method are *still* in the VIEWSTATE.
The new controls, which I added in the mentioned click method are simply
appended to the former, now not anymore existing, controls.

Now I am in a deadlock.
When I add the "former" controls while pageload, to get the event, I
can't get rid of them in the viewstate, even if I remove them in the
click event code.
If I don't add the controls, I don't get any event.

I have no idea how to get out of this. Can anyone of you give me a hint?

Ciao,
Frank
Nov 18 '05 #1
0 840

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

Similar topics

6
2163
by: Rick | last post by:
Hello all. I have an index.php file that has a lot of functions that I wrote. Let's say for the sake of argument that there are 1000 functions of 100 lines each. The index.php file is invoked with a "state" a la "index.php?state=L1-2L3C4-47". Different functions are called according to what the state is, and then user actions can cause...
0
1190
by: KenH | last post by:
I have a MDI C# Windows form application that increases its memory usage about 4k every second - even with all of the child windows closed. I have seen other posts about similar problems, frequently described as memory leaks. Any ideas where to go to determine the problem with the code would be appreciated I consider the app fairly simple:...
80
4975
by: | last post by:
Is there a performance difference between this: \\\ Dim i As Integer For i = 0 to myObject.Controls.Count - 1 myObject.Controls(i) = ... Next /// and this:
4
6277
by: Joe User | last post by:
Hi all....I have a feeling this is going to be one of those twisted query questions, but here it goes anyways.... I want to generate a report that shows the chronology of events (represented by field names). Essentially, I would like to sort the DATE FIELDS for each record in the table by the order of the DATES in those DATE FIELDS. For...
8
3174
by: beretta819 | last post by:
Ok, so I apologize in advance for the wordiness of what follows... (I am not looking for someone to make this for me, but to point me in the right direction for the steps I need to take.) I was nominated at work to design a "system" that would allow us to track the performance of our employees. So I thought Access. Should be simple enough...
10
1604
by: jayaprakashbojja | last post by:
Hi, I wrote the code to generate a new row each time when i press tab in the second text box in a row of two text boxes. It's working fine. But my problem is in the new row that is created when i press tab, the cursor should be in the first text box. I wrote the code for that. It's line 10 and 11. It's not working. Please let me know...
2
2085
by: Devine123 | last post by:
Hi, I’m creating a perl script that takes incoming http/s requests, logs the standard input, output and error, before returning the output to the client. The input, output and error log is appended after each HTTP request. The problem I’m having is that I’m trying to add a header line to the log files each time they are appended. For example...
16
1451
by: AAaron123 | last post by:
I have a timer. At each tick, say 0.1 second, I write a file. If it takes more than 0.1 second to write the file the app will not work correctly. How can I tell in the tick event if the previous file finished writing so I can skip writing at that time? I write using the Bitmap.Save method.
4
1741
by: Stefan Mueller | last post by:
Hallo I'm looking for a solution to display on a web page each second a new line. Unfortunately does the following solution not work with the Internet Explorer: http://test.seekware.ch/test/flush-withtable.php PHP code:
3
3017
Atli
by: Atli | last post by:
Hi everybody. This is not so much a problem, since I have already managed to find a solution, but my solution requires the use of the eval() function, which I just hate to use. The problem is this. I have an object that has a function. This function needs to call itself in a setTimeout call. Using the "this" keyword from within the callback...
0
7457
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...
0
7391
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...
0
7651
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7802
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...
0
7746
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...
1
5320
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...
0
4941
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...
1
1869
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
0
693
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...

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.