ASP.NET Partial Back Part Size Problem

In my page_load I create

HiddenField newField= new HiddenField();

and then assign it to him newField.ID = "someid"and Value="0". on a partial postback (called by UpdatePanel), I check

Request.Form["someid"]

in the panel_Load event during postback. but the request returns null since someid was not sent back. (not contained in the Request.Form collection) Why can this be?

thank

+3
source share
1 answer

ASP.NET manages the identifier when rendered by the default client. To access it from the Form collection, try the following:

Request.Form[newField.ClientID]
+3
source

All Articles