473,385 Members | 1,359 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,385 software developers and data experts.

What is client startup script?

While reading the documentation on IsStartupScriptRegistered, there is a
reference to "client startup script" as "Determines if the client startup
script is registered with the Page object."
What is meant by "Client Start Script"?
Thanks,
Harry
Nov 18 '05 #1
9 4888
It would help if you mentioned what documentation you were reading. I looked
up IsStartupScriptRegistered in the .Net SDK, and saw no reference to
"client startup script." I DID see a reference to "client-side script,"
which is a reference to JavaScript that is added to the client HTML
document. The IsStartupScriptRegistered() method can be called prior to
calling RegisterStartupScript(), in order to make sure that you aren't
reproducing the script in the Page. The RegisterStartupScript() method adds
a JavaScript which you define as a string to the Page's output.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Harry Smith" <Ha**********@hotmail.com> wrote in message
news:#T**************@tk2msftngp13.phx.gbl...
While reading the documentation on IsStartupScriptRegistered, there is a
reference to "client startup script" as "Determines if the client startup
script is registered with the Page object."
What is meant by "Client Start Script"?
Thanks,
Harry

Nov 18 '05 #2
Kevin,
In have installed VS 2003. In the code window I have code like this.
If (Not aspxPage.IsStartupScriptRegistered(strKey)) Then
aspxPage.RegisterStartupScript(strKey, strScript)

End If

If I keep the cursore at IsStartupScriptRegistered and press F1, I am
getting this documentation in my help window.

Here is the URL
:ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfSystemWebUIP
ageClassIsStartupScriptRegisteredTopic.htm

Also on WWW the URL is
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfSystemWebUIPageClassIsStartupScriptRegistered Topic.asp

I know you will have some answer to my question.

Thanks,

Harry


"Kevin Spencer" <ks******@takempis.com> wrote in message
news:uv**************@TK2MSFTNGP15.phx.gbl...
It would help if you mentioned what documentation you were reading. I looked up IsStartupScriptRegistered in the .Net SDK, and saw no reference to
"client startup script." I DID see a reference to "client-side script,"
which is a reference to JavaScript that is added to the client HTML
document. The IsStartupScriptRegistered() method can be called prior to
calling RegisterStartupScript(), in order to make sure that you aren't
reproducing the script in the Page. The RegisterStartupScript() method adds a JavaScript which you define as a string to the Page's output.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Harry Smith" <Ha**********@hotmail.com> wrote in message
news:#T**************@tk2msftngp13.phx.gbl...
While reading the documentation on IsStartupScriptRegistered, there is a
reference to "client startup script" as "Determines if the client startup script is registered with the Page object."
What is meant by "Client Start Script"?
Thanks,
Harry


Nov 18 '05 #3
In short, it is a client-side script(either vbscript or javascript) that
will be executed when the page is fully loaded.

Somehow equivalent to adding the script in form of function then added it to
"onload" of body tag.

"Harry Smith" <Ha**********@hotmail.com> ¦b¶l¥ó
news:%2****************@tk2msftngp13.phx.gbl ¤¤¼¶¼g...
While reading the documentation on IsStartupScriptRegistered, there is a
reference to "client startup script" as "Determines if the client startup
script is registered with the Page object."
What is meant by "Client Start Script"?
Thanks,
Harry

Nov 18 '05 #4
not quite true. startup script is rendered as inline script just before the
</form>. this means it will fire after all controls have rendered but
before the onload event as the page has not been fully parsed yet.

when you write a cutom control that render javascript, you can use
IsStartupScriptRegistered to tell if the script has already been registered,
to handle the case when your control has mutiple instances on a page (then
only one has to do the register).

-- bruce (sqlwork.com)

"Lau Lei Cheong" <le****@yehoo.com.hk> wrote in message
news:ek**************@TK2MSFTNGP11.phx.gbl...
| In short, it is a client-side script(either vbscript or javascript) that
| will be executed when the page is fully loaded.
|
| Somehow equivalent to adding the script in form of function then added it
to
| "onload" of body tag.
|
| "Harry Smith" <Ha**********@hotmail.com> ¦b¶l¥ó
| news:%2****************@tk2msftngp13.phx.gbl ¤¤¼¶¼g...
| > While reading the documentation on IsStartupScriptRegistered, there is a
| > reference to "client startup script" as "Determines if the client
startup
| > script is registered with the Page object."
| > What is meant by "Client Start Script"?
| > Thanks,
| > Harry
| >
| >
|
|
Nov 18 '05 #5
Hi Harry ..
Go through this ..
http://www.aspnetpro.com/NewsletterA...200410bm_l.asp


"Harry Smith" wrote:
While reading the documentation on IsStartupScriptRegistered, there is a
reference to "client startup script" as "Determines if the client startup
script is registered with the Page object."
What is meant by "Client Start Script"?
Thanks,
Harry

Nov 18 '05 #6
Well, Harry, in any case, the "client startup script" and the "client-side
script" are the same thing. It is a startup script because it is executed
when the Page loads. It's a client-side script because it executes on the
client.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Harry Smith" <Ha**********@hotmail.com> wrote in message
news:OO**************@TK2MSFTNGP09.phx.gbl...
Kevin,
In have installed VS 2003. In the code window I have code like this.
If (Not aspxPage.IsStartupScriptRegistered(strKey)) Then
aspxPage.RegisterStartupScript(strKey, strScript)

End If

If I keep the cursore at IsStartupScriptRegistered and press F1, I am
getting this documentation in my help window.

Here is the URL
:ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfSystemWebUIP ageClassIsStartupScriptRegisteredTopic.htm

Also on WWW the URL is
http://msdn.microsoft.com/library/de...us/cpref/html/ frlrfSystemWebUIPageClassIsStartupScriptRegistered Topic.asp

I know you will have some answer to my question.

Thanks,

Harry


"Kevin Spencer" <ks******@takempis.com> wrote in message
news:uv**************@TK2MSFTNGP15.phx.gbl...
It would help if you mentioned what documentation you were reading. I

looked
up IsStartupScriptRegistered in the .Net SDK, and saw no reference to
"client startup script." I DID see a reference to "client-side script,"
which is a reference to JavaScript that is added to the client HTML
document. The IsStartupScriptRegistered() method can be called prior to
calling RegisterStartupScript(), in order to make sure that you aren't
reproducing the script in the Page. The RegisterStartupScript() method

adds
a JavaScript which you define as a string to the Page's output.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Harry Smith" <Ha**********@hotmail.com> wrote in message
news:#T**************@tk2msftngp13.phx.gbl...
While reading the documentation on IsStartupScriptRegistered, there is a reference to "client startup script" as "Determines if the client startup script is registered with the Page object."
What is meant by "Client Start Script"?
Thanks,
Harry



Nov 18 '05 #7
Kevin,
When the .ASPX is browsed the server sends the plain HTML page to the
browser. When "aspxPage.RegisterStartupScript" is used in a page where
exactly this will be used in the client side events? Which code will be
called when if I have code in onload event?
Thanks,
Harry
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:eq**************@TK2MSFTNGP10.phx.gbl...
Well, Harry, in any case, the "client startup script" and the "client-side
script" are the same thing. It is a startup script because it is executed
when the Page loads. It's a client-side script because it executes on the
client.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Harry Smith" <Ha**********@hotmail.com> wrote in message
news:OO**************@TK2MSFTNGP09.phx.gbl...
Kevin,
In have installed VS 2003. In the code window I have code like this.
If (Not aspxPage.IsStartupScriptRegistered(strKey)) Then
aspxPage.RegisterStartupScript(strKey, strScript)

End If

If I keep the cursore at IsStartupScriptRegistered and press F1, I am
getting this documentation in my help window.

Here is the URL

:ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfSystemWebUIP
ageClassIsStartupScriptRegisteredTopic.htm

Also on WWW the URL is

http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfSystemWebUIPageClassIsStartupScriptRegistered Topic.asp

I know you will have some answer to my question.

Thanks,

Harry


"Kevin Spencer" <ks******@takempis.com> wrote in message
news:uv**************@TK2MSFTNGP15.phx.gbl...
It would help if you mentioned what documentation you were reading. I

looked
up IsStartupScriptRegistered in the .Net SDK, and saw no reference to
"client startup script." I DID see a reference to "client-side script," which is a reference to JavaScript that is added to the client HTML
document. The IsStartupScriptRegistered() method can be called prior to calling RegisterStartupScript(), in order to make sure that you aren't
reproducing the script in the Page. The RegisterStartupScript() method

adds
a JavaScript which you define as a string to the Page's output.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Harry Smith" <Ha**********@hotmail.com> wrote in message
news:#T**************@tk2msftngp13.phx.gbl...
> While reading the documentation on IsStartupScriptRegistered, there
is a > reference to "client startup script" as "Determines if the client

startup
> script is registered with the Page object."
> What is meant by "Client Start Script"?
> Thanks,
> Harry
>
>



Nov 18 '05 #8
Ah, no worries, Harry. RegisterStartupScript() puts the script just before
the </form> tag in the page. It is not attached to any Event Handler. Any
scripting that occurs in an HTML document which is not defined in a function
is executed immediately when the document loads (more precisely, when the
browsser parses it, which is why it is put just before the end of the form,
in case it references any form elements). IOW, you can also add an onload
event handler to the body tag, and it will execute as well.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Harry Smith" <Ha**********@hotmail.com> wrote in message
news:#z**************@TK2MSFTNGP09.phx.gbl...
Kevin,
When the .ASPX is browsed the server sends the plain HTML page to the
browser. When "aspxPage.RegisterStartupScript" is used in a page where
exactly this will be used in the client side events? Which code will be
called when if I have code in onload event?
Thanks,
Harry
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:eq**************@TK2MSFTNGP10.phx.gbl...
Well, Harry, in any case, the "client startup script" and the "client-side
script" are the same thing. It is a startup script because it is executed when the Page loads. It's a client-side script because it executes on the client.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Harry Smith" <Ha**********@hotmail.com> wrote in message
news:OO**************@TK2MSFTNGP09.phx.gbl...
Kevin,
In have installed VS 2003. In the code window I have code like this.
If (Not aspxPage.IsStartupScriptRegistered(strKey)) Then
aspxPage.RegisterStartupScript(strKey, strScript)

End If

If I keep the cursore at IsStartupScriptRegistered and press F1, I am
getting this documentation in my help window.

Here is the URL

:ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfSystemWebUIP
ageClassIsStartupScriptRegisteredTopic.htm

Also on WWW the URL is

http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfSystemWebUIPageClassIsStartupScriptRegistered Topic.asp

I know you will have some answer to my question.

Thanks,

Harry


"Kevin Spencer" <ks******@takempis.com> wrote in message
news:uv**************@TK2MSFTNGP15.phx.gbl...
> It would help if you mentioned what documentation you were reading. I looked
> up IsStartupScriptRegistered in the .Net SDK, and saw no reference to > "client startup script." I DID see a reference to "client-side script," > which is a reference to JavaScript that is added to the client HTML
> document. The IsStartupScriptRegistered() method can be called prior to > calling RegisterStartupScript(), in order to make sure that you aren't > reproducing the script in the Page. The RegisterStartupScript() method adds
> a JavaScript which you define as a string to the Page's output.
>
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> I get paid good money to
> solve puzzles for a living
>
> "Harry Smith" <Ha**********@hotmail.com> wrote in message
> news:#T**************@tk2msftngp13.phx.gbl...
> > While reading the documentation on IsStartupScriptRegistered,

there is
a
> > reference to "client startup script" as "Determines if the client
startup
> > script is registered with the Page object."
> > What is meant by "Client Start Script"?
> > Thanks,
> > Harry
> >
> >
>
>



Nov 18 '05 #9
Kevin,
What is IOW ?
Harry
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:uL**************@tk2msftngp13.phx.gbl...
Ah, no worries, Harry. RegisterStartupScript() puts the script just before
the </form> tag in the page. It is not attached to any Event Handler. Any
scripting that occurs in an HTML document which is not defined in a function is executed immediately when the document loads (more precisely, when the
browsser parses it, which is why it is put just before the end of the form, in case it references any form elements). IOW, you can also add an onload
event handler to the body tag, and it will execute as well.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Harry Smith" <Ha**********@hotmail.com> wrote in message
news:#z**************@TK2MSFTNGP09.phx.gbl...
Kevin,
When the .ASPX is browsed the server sends the plain HTML page to the
browser. When "aspxPage.RegisterStartupScript" is used in a page where
exactly this will be used in the client side events? Which code will be
called when if I have code in onload event?
Thanks,
Harry
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:eq**************@TK2MSFTNGP10.phx.gbl...
Well, Harry, in any case, the "client startup script" and the "client-side script" are the same thing. It is a startup script because it is executed when the Page loads. It's a client-side script because it executes on the client.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Harry Smith" <Ha**********@hotmail.com> wrote in message
news:OO**************@TK2MSFTNGP09.phx.gbl...
> Kevin,
> In have installed VS 2003. In the code window I have code like this.
> If (Not aspxPage.IsStartupScriptRegistered(strKey)) Then
> aspxPage.RegisterStartupScript(strKey, strScript)
>
> End If
>
> If I keep the cursore at IsStartupScriptRegistered and press F1, I am > getting this documentation in my help window.
>
> Here is the URL
>

:ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpref/html/frlrfSystemWebUIP
> ageClassIsStartupScriptRegisteredTopic.htm
>
> Also on WWW the URL is
>

http://msdn.microsoft.com/library/de...us/cpref/html/
> frlrfSystemWebUIPageClassIsStartupScriptRegistered Topic.asp
>
> I know you will have some answer to my question.
>
> Thanks,
>
> Harry
>
>
>
>
>
>
>
>
> "Kevin Spencer" <ks******@takempis.com> wrote in message
> news:uv**************@TK2MSFTNGP15.phx.gbl...
> > It would help if you mentioned what documentation you were reading. I
> looked
> > up IsStartupScriptRegistered in the .Net SDK, and saw no reference to > > "client startup script." I DID see a reference to "client-side

script,"
> > which is a reference to JavaScript that is added to the client
HTML > > document. The IsStartupScriptRegistered() method can be called prior
to
> > calling RegisterStartupScript(), in order to make sure that you

aren't > > reproducing the script in the Page. The RegisterStartupScript() method > adds
> > a JavaScript which you define as a string to the Page's output.
> >
> > --
> > HTH,
> > Kevin Spencer
> > .Net Developer
> > Microsoft MVP
> > I get paid good money to
> > solve puzzles for a living
> >
> > "Harry Smith" <Ha**********@hotmail.com> wrote in message
> > news:#T**************@tk2msftngp13.phx.gbl...
> > > While reading the documentation on IsStartupScriptRegistered,

there
is
a
> > > reference to "client startup script" as "Determines if the

client > startup
> > > script is registered with the Page object."
> > > What is meant by "Client Start Script"?
> > > Thanks,
> > > Harry
> > >
> > >
> >
> >
>
>



Nov 18 '05 #10

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

Similar topics

4
by: Arun Goel | last post by:
I have installed Oracle client & Oracle database(9.2.0.4) on Red Hat 9.0. It seems to me everything went fine in installation as I followed notes from...
1
by: Cathryn Lindner | last post by:
I have a web form that has a checkbox on it and a textbox associated with it. I want the textbox to be displayed when the checkbox is checked and I want this to happen on the client-side instead of...
3
by: jabailo | last post by:
I've built a remoting solution with a client and a server. I want to start the server, and then run the client against it. Since I can only make one project in a solution be the "Set As Startup...
1
by: Darren Clark | last post by:
How does everyone register and access input objects on the client side? well... i suppose i am after some alternate ways... i use the following code to put the neccessary client javascript code...
2
by: Simon Matthews | last post by:
I have an asp.net application written in c# and in many cases when the user submits a form or causes a postback there could be significant processing (logic) required which results in a message...
0
by: Sim Zacks | last post by:
I reconfigured the redhat startup script for postgresql to work with version 8 and that is working fine. I thought I could put autovacuum in the startup script and that didn't cause any problems,...
8
by: simon | last post by:
hello. hopefully another quick newbie question for you.... I have a codebehind function coded to handle the click event of a button. what this function does is insert values from a data grid...
5
by: Alex Maghen | last post by:
I frequently find myself wanting to insert some basic client-side JavaScript functions in the page of an ASPX of mine. But I find it so frustrating that I have to actually contruct my JavaScript in...
4
by: =?Utf-8?B?UGFycm90?= | last post by:
Is there any way to execute a javascript or any kind of script when responding to a SelectionChange event in a Calendar control? I would like to display a window containing dynamic data on top of...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.