By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,498 Members | 1,564 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,498 IT Pros & Developers. It's quick & easy.

window.dialogArguments in .net - order of page load

P: n/a
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.
Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

"louise raisbeck" <lo************@discussions.microsoft.com> wrote in
message news:D8**********************************@microsof t.com...
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.

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.