DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 10 Aug 2007 13:20:00 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Daisy
          2    unknown
          3    Daisy
          4    Phil H
                 5    Sarah


Listbox delay postback   
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!
Date:Fri, 10 Aug 2007 13:20:00 -0700   Author:  

Re: Listbox delay postback   
remove the AutoPostBack="true" from the listboxes/dropdowns?
Date:Fri, 10 Aug 2007 13:37:23 -0700   Author:  

Re: Listbox delay postback   
Thanks for your response. I need the selected value from listboxes, 
dropdownlists to be postback to server. 
"tomisarobot@gmail.com" wrote:


> remove the AutoPostBack="true" from the listboxes/dropdowns?
> 
> 
Date:Mon, 13 Aug 2007 08:34:01 -0700   Author:  

Re: Listbox delay postback   

> 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
Date:Mon, 13 Aug 2007 12:35:21 -0700   Author:  

Re: Listbox delay postback   
That works great! It resolved the issue. Thanks a bunch!

"Phil H" wrote:


> > 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
> 
> 
Date:Tue, 14 Aug 2007 13:52:06 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us