window.dialogArguments in .net - order of page load

G

Guest

Hi there, I have a bit of a chicken and egg situation. I have a page_load
event in my c# code which does things with some textbox values in my aspx
form. It is a dialog window and i set the values from the parent window using
the parameters dialogArguments passed to the window (i dont want to use query
string which i know would solve this). I set the values of the textboxes
using a javascript function in the onload of my body tag. The values end up
in the boxes ok..only thing is the page_load has already run, and they all
have null values at that point. So page_load obviously runs before onload. Is
there any way to directly access window.dialogArguments from .net code or
some way i can run the onload to set the textbox values BEFORE the page_load
runs??? Thanks.
 
E

Eliyahu Goldin

onload happens on the client, when the fully built page arrives to the
client machine. page_load happens on the server in the beginning page
building process. Naturally enough, you can't operate on the page before it
even started to build.

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

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top