Solved

Page hangs after postback

Posted on 2007-11-14
5
1,030 Views
Last Modified: 2008-02-01
Hello, everyone!  I have a DetailsView with a DropDownList control inside a TemplateField.  There are also several fields in that record that need to be populated from a different table based on the value selected in the DropDown (they are read-only fields).  I would like to populate these fields on the OnSelectedIndexChanged event of the DropDown control.  However, if I set AutoPostBack="true" for the DropDown the page hangs, even without any data updating.  This is probably because the DetailsView is a child of a GridView on the same page.  Does anyone have a suggestion for how to accomplish what I am trying to do?  

Sophia
0
Comment
Question by:sophianewbie
5 Comments
 
LVL 1

Expert Comment

by:adktd
ID: 20288596
0
 

Author Comment

by:sophianewbie
ID: 20292519
Thanks for your reply.  Unfortunately, the link you provided simply explains how to use a DropDown control in a DetailsView.  I have no problem with that part.  After spending a day on this issue, I finally tracked down the real culprit.  The problem is that my GridView and DetailsView are inside an UpdatePanel.  When I remove the UpdatePanel everything works as expected.  At least I know what causes the hanging, but that doesn't bring me any closer to the solution, since I really need this to be inside an UpdatePanel.

Has anyone heard of problems with AutoPostBack="true" on a DropDownList in a DetailsView inside an UpdatePanel?  For the record, DropDownLists that are not in a DetailsView work just fine inside an UpdatePanel.  If I ever track down what's going on I will post the solution.
0
 

Author Comment

by:sophianewbie
ID: 20301038
Here is a link regarding the same issue.  I tried the hidden button with the Javascript solution in this thread, but the response is still very slow after a DDL selection.  So I still haven't resolved this.

http://forums.asp.net/p/1103779/1683805.aspx
0
 
LVL 33

Accepted Solution

by:
raterus earned 500 total points
ID: 20450565
How much data is on this page?  If this is a very large gridview/detailsview, your viewstate might be incredibly large, and that has to be sent back to the server each time, causing the page to hang.  Just a thought.

Another thing you might try is to nest updatepanels so you are only refreshing the data you care about, this may or may not work here.
0
 
LVL 26

Expert Comment

by:Rejojohny
ID: 20457363
can you please post some code, esp of the page load and the seleted index changed event .. can you debug and confirm that the event is actually getting called? can you debug and check where exactly is it hanging, i mean is it before the event or is the request not event coming to the server or is after the event code is completed? if the event is not even getting called, maybe you want to add brekpoints in the global.asax events and see if the request is even getting to server or not ....

Rejo
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now