Wely

wel = new Geeks();
See also: Other Geeks@INDC

ASP.NET AJAX UpdatePanel Compatibility

 I have tried using ASP.NET AJAX for few times. Few weeks ago, I use UpdatePanel along with DetailsView to view the details from GridView. One of the DetailsView consist a column for upload file (using FileUpload control). When I tried to upload it, the value became null.

 

Soon, Uncle google found me an article of UpdatePanel documentation. http://ajax.asp.net/docs/overview/UpdatePanelOverview.aspx

Controls that Are Not Compatible with UpdatePanel Controls

The following ASP.NET controls are not compatible with partial-page updates, and are therefore not supported inside an UpdatePanel control:

Controls that are incompatible with partial-page rendering can still be used on a page outside UpdatePanel controls. Additionally, in some cases you can use the controls in a specific way to make them compatible with partial-page updates. For example, you can use the Login, ChangePassword, or PasswordRecovery controls inside an UpdatePanel control if you can convert their contents to templates. (If you are using Visual Studio, in Design view you can convert the controls by using smart-tag menu commands such as Convert to Template or Customize Create User Step.) When you convert these controls into editable templates, the validation controls that are used in the control are defined declaratively by using markup in the page. To make the validators compatible with an UpdatePanel control, set the EnableClientScript property of the validators to false. This disables the client script that would ordinarily be used to perform validation in the browser. As a result, during an asynchronous postback, the validators perform validation on the server. However, because only the content of the UpdatePanel is refreshed, the validators can provide the kind of immediate feedback that is ordinarily provided by client script.

To use a FileUpload control inside an UpdatePanel control, set the postback control that submits the file to be a PostBackTrigger control for the panel.

All other controls work inside UpdatePanel controls. However, in some circumstances, a control might not work as expected inside an UpdatePanel control. These circumstances include the following:

Registering script by calling registration methods of the ClientScriptManager control.

Rendering script or markup directly during control rendering, such as by calling the Write(String) method.

If the control calls script registration methods of the ClientScriptManager control, you could use corresponding script registration methods of the ScriptManager control instead. In that case, the control can work inside an UpdatePanel control.

 

Hopefully that this post will help you if you meet this problem too. J

Share this post: | | | |
Posted: Jun 04 2007, 09:32 AM by very_wel | with 3 comment(s)
Filed under: , ,

Comments

reyza said:

Semuanya bisa kok, termasuk upload dengan 'partial rendering' juga bisa. tapi mesti butuh trik dan sedikit sim salabim

treeview, grid, login dan validator dkk semua bisa di dlm update panel.

# August 6, 2007 7:03 PM

very_wel said:

tips n trick apa nih? boleh di share?

# September 25, 2007 1:57 PM

Rusdie Cavalera said:

Iya, di share dong tips nya?

# August 21, 2008 10:56 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 
Are you human?:  


Enter the numbers above: