473,406 Members | 2,208 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

window.dialogArguments in .net - order of page load

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
1 3750
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Gretjns | last post by:
I'm trying to figure out this script doesn't display any text in the child window and why I'm getting the null or not an object error. It's taken directly from the Javascript and DHTML cookbook...
1
by: stellabein | last post by:
Hi friends, I am very very new to programing. i have a one main window from that window i am opening one modal window using showmodaldialog(m.jp...). in that modal window i have a form. when i...
2
by: Cheryl | last post by:
Hi, I have encounter a problem.Language use is C#. I would like to open a new window (is a modal window, where I m not able to switch from parent window after this window is open)from the parent...
0
by: bhchng | last post by:
After I click the submit button on my child window, it successfully navigate the parent window to the indicated URL and close the child. But I dont understand why the child window reopen a new...
3
by: Paul K | last post by:
I'm not quite sure if the problem I'm having is a restriction of showModalDialog or if there is a way around it. The web app I am working requires the user to select a record from a list. I pop...
3
by: sonali | last post by:
i want to dopstback should get called on brower's close button click also function closewindow() { if (window.dialogArguments) { // Calling the method (given as argument) to cause the...
1
by: Bama | last post by:
I have an employee database. Recently I need to add a new field for the photo of each of the employee. I already have a form to enter new data for the staff, and I am creating pop up window to...
5
by: JSha | last post by:
I have button which when clicked does a popup window which is opened using showmodaldialog(xyz.aspx, dialogarguments)... the xyz.aspx page has the title set as.... <title> ABCD </title> now...
3
by: nitinmukesh123 | last post by:
Hi I am facing a problem with setting the modal window title.. source of 1.html <html> <head> <script language="javascript"> function openNewWin() {...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.