Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / May 2006

Tip: Looking for answers? Try searching our database.

Nested controls: possible workaround for limitation?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stef - 26 May 2006 14:17 GMT
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!
Stef - 26 May 2006 14:25 GMT
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...
Stef - 29 May 2006 14:24 GMT

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.