Nested controls: possible workaround for limitation?

S

Stef

I everyone,
I have created User controls (ascx) that are display in an
hierarchical way.
Let me explain a bit what I've done so far:

Let's say a customer make a request, this request will contain at least
one result. This result will have list of different member class.
Within each list will be the actual list of members.
These members could have requests as well which would have their
results with lists of classes with members inside them and so on...

So, I've made 4 controls, a RequestViewer, a ResultViewer, a ListViewer
and a Member viewer. I load data from our database and generate some
xml that I use to fill the controls .

The way it works is, each controls have a linkbutton displaying + or -
depending if the control is expanded or not, like a treeview let say.

The problem I get is this: after expanding some levels, I get a bug
which seems to be a limitation of javascript function call with the
__doPostBack method because, when I reach a certain level, the data
aren't displayed and I know that there's data. What I've found is that
the linkbutton used to expand has a hell of a long parameter value!
Something like this:

javascript:__doPostBack('CurrentRequest$Result201$List201$Member202$Result202$List202$Member212$Result203$List203$Member236$Result204$List204$Member283$lnkExpand','')

It seems like it's the longuest it'll take... Further that that isn't
processed...
Anyone can tell me if there's something I'm missing or if someone has a
solution?

Thanks a lot!
 
S

Stef

Hmmm, I've added some code to restrain the id's of the control inserted
in the page to one letter each and I didn't get any better results...
So the cause is not related to how long the parameter string is...
It might be something else then...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,268
Messages
2,571,095
Members
48,773
Latest member
Kaybee

Latest Threads

Top