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 / General / August 2007

Tip: Looking for answers? Try searching our database.

Listbox delay postback

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daisy - 10 Aug 2007 21:20 GMT
I have a couple of listboxes and dropdownlist on a page and they are postback
enabled. The problem is whenever user clicks the box the page brings to the
top. is there anyway to delay the postback till all the listboxes and
dropdown selections are made then the data is postback to server when the
submit button is clicked? Thanks for any response in advance!
tomisarobot@gmail.com - 10 Aug 2007 21:37 GMT
remove the AutoPostBack="true" from the listboxes/dropdowns?
Daisy - 13 Aug 2007 16:34 GMT
Thanks for your response. I need the selected value from listboxes,
dropdownlists to be postback to server.

> remove the AutoPostBack="true" from the listboxes/dropdowns?
Phil H - 13 Aug 2007 20:35 GMT
> Thanks for your response. I need the selected value from listboxes,
> dropdownlists to be postback to server.

Hi Daisy

The property which controls whether or not selected data is retained
is "ViewStateEnabled" This I must emphasise only applies to web server
controls not to their html counterparts.

With regard to the page jumping back to the top there is a web.config
file setting that will prevent this in the <system><web><pages>
section:

maintainScrollPositionOnPostBack="True"

this is false be default

HTH

Phil Hall
Sarah - 14 Aug 2007 21:52 GMT
That works great! It resolved the issue. Thanks a bunch!

> > Thanks for your response. I need the selected value from listboxes,
> > dropdownlists to be postback to server.
[quoted text clipped - 16 lines]
>
> Phil Hall

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



©2008 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.