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 / October 2003

Tip: Looking for answers? Try searching our database.

Facing problems with Dual listbox Custom Server Control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Avneesh Kumar - 04 Sep 2003 21:35 GMT
Hi All,

I'm facing some specific problem in retaining Viewstate of dual listbox
Server Control  in which I'm actually using JavaScript to transfer items
from left listbox to right box.

I tried to retain items of both the listboxes using viewstates but couldn't
get through. Then I created 2 hidden text boxes to store serialized key
value pairs on the client side and tried to access them in the control using
viewstate but again it didn't work...though I was able to get the values of
the textboxes using

HttpContext.Current.Request.Form(Me.ClientID & ":lH")

This might not be a good way of doing that but luckily this worked and I
could populate the listboxes again by looping through string I got in
postback.

When I added that control to aspx file, everything seemed to work fine but
again  I got trapped into an issue >>>> that is >>>> with directly aspx
file, I am able to retrieve form collections but when I add the dll control
to ascx file and use that in an aspx file as user control, my values are
lost.

Can anybody please suggest me some batter way to retrieve input boxes value
inside control or batter, populating listboxes using viewstate??

If somebody can help after looking on the code, I can post code also.

Kindly Help!!

Thanks & Regards
Avneesh
Andy Smith - 01 Oct 2003 16:29 GMT
Check out my free DualList control.
http://www.metabuilders.com/tools/DualList.aspx

__
Andy Smith
Chief Code Monkey

> Hi All,
>
[quoted text clipped - 29 lines]
> Thanks & Regards
> Avneesh

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.