473,473 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

impossible to have initialization script in master page content?

PJ6
It is apparently impossible to emit a initialization script (that refers to
a specific element) using RegisterClientScriptBlock; if it is emitted
OnLoad, the browser throws an exception that it cannot find the element,
because it's executed client-side before the control is rendered. If I try
it in the control's render, the header has already been rendered, so the
script never makes it to the client.

Emitting the initialization directly in the control's render works fine in
IE, but Firefox apparently ignores inline script so I can't use that
solution.

Is there any way around this problem?

Paul
Sep 17 '07 #1
1 1153
PJ6
Never mind... FF did execute the script, I just didn't think it did.

Paul

"PJ6" <no***@nowhere.netwrote in message
news:%2**********************@TK2MSFTNGP03.phx.gbl ...
It is apparently impossible to emit a initialization script (that refers
to a specific element) using RegisterClientScriptBlock; if it is emitted
OnLoad, the browser throws an exception that it cannot find the element,
because it's executed client-side before the control is rendered. If I try
it in the control's render, the header has already been rendered, so the
script never makes it to the client.

Emitting the initialization directly in the control's render works fine in
IE, but Firefox apparently ignores inline script so I can't use that
solution.

Is there any way around this problem?

Paul

Sep 17 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: David | last post by:
In ASP.NET 2.0, is it possible to use a control that's on a Master Page as a select parameter in a content page's datasource control? For example, the Master Page has a drop down list of...
5
by: Michael Herman \(Parallelspace\) | last post by:
1. What are some compelling solutions for using Master/Content pages with Web Pages? 2. If a content area has a web part zone with web parts, what is the user experience like when "editting" the...
2
by: Steve Franks | last post by:
I am trying to access strongly typed properties in a page's master page from the content page. I followed an article that describes how to do this, and it seems quite straight forward. However...
2
by: Jon Spivey | last post by:
Hi, Using VS 2005/VB.net. I need to add a meta description tag and change a stylesheet link from a page based on a master page. Found this article...
5
by: ggk517 | last post by:
We are trying to develop an Engineering application using PHP, Javascript with Informix as the back-end. Is it possible to retrieve data using Javascript but by accessing the Database. Say...
2
by: Mark Rae | last post by:
Hi, It's easy enough to get a content page to refer to public properties on its associated master page e.g. public partial class master_secure : System.Web.UI.MasterPage { public Label...
1
by: jpan | last post by:
My master page has a drop down list of languages. When the user selects a new language, I would like to call a method in the currently loaded content page to load all the fields with text in the...
1
by: Larry Rebich | last post by:
I'm using some Java Script I found that supports a 'back' button on my ASP.Net page. The Asp.Net page uses a Master page. I thought I'd put the Java Script in a Java Script file . The thought was...
3
by: =?Utf-8?B?TmFuY3lB?= | last post by:
Hi - We need to be able to invoke a child (contentplaceholder) page from a master page and have the child run some jscript code in the initialization event to load data specific to that child. We...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.