Passing code/data from code-behind to ASPX page

A

A. Atienza

I have the following code in my code-behind file:

DataGrid MAPPsDataGrid = (DataGrid)((((((Repeater)
sender).Parent).Parent).Parent).Parent);

int DocumentID = MAPPsDataGrid.DataKeys
[MAPPsDataGrid.Items.Count] ;

However, I want the value of the DocumentID passed to my
ASPX code. How can this be achieved? Is it possible?

Thank you for your help.

Best regards,
Arlynn
 
E

Eliyahu Goldin

If you make DocumentID protected or public you can access it from aspz code.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top