Advertisement

06.30.2008 at 02:30PM PDT, ID: 23528460 | Points: 500
[x]
Attachment Details

Access value stored in Hidden Field in UpdatePanel

Asked by TMPSupport in Asynchronous Javascript and XML (AJAX), C# Programming Language, WebApplications

Tags: , , ,

Hi,

I've been struggling with this issue and as simple as it seems, I'm not able to get it to work. I need to access the value stored in a hidden field during postbacks. The field is located in a UpdatePanel. Below is the code (RegHiddenField method) to register the field. How do I read this value? When a postback occurs, the value in Request.Form["CurrPageIndex"] shows null. I also tried Request["CurrPageIndex"]. Please let me know how to read the value in the hidden field.

Thanks
ArunStart Free Trial
1:
2:
3:
4:
private void RegHiddenField(int CurrPage, bool CheckPrevValueFlag)
{
            ClientScript.RegisterHiddenField("CurrPageIndex", CurrPage.ToString());
}
[+][-]06.30.2008 at 10:55PM PDT, ID: 21905218

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.01.2008 at 08:13AM PDT, ID: 21908597

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 05:36AM PDT, ID: 21972628

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 08:16AM PDT, ID: 21974233

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 09:49AM PDT, ID: 21975309

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628