473,385 Members | 1,384 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.

remove script registered using RegisterClientScriptBlock

Hi,

Can anyone help me with this one?
How can I remove script registered by RegisterClientScriptBlock ?

If I add another script with the same name, is the first one overwritten or
it's just skipped?

--
Steve Powell
Nov 19 '05 #1
3 3108
Just give this a try to see how it behaves (this is what I would do to
respond).

If it doesn't replace the previous script, my first thought would be to
avoid registering a script to realize later you don't need it. You could
just perhaps keep track of the needed script(s) and register them in the
page once you are sure they are needed...

Patrice

--

"Steve Powell" <me@me.me> a écrit dans le message de
news:er*************@TK2MSFTNGP12.phx.gbl...
Hi,

Can anyone help me with this one?
How can I remove script registered by RegisterClientScriptBlock ?

If I add another script with the same name, is the first one overwritten or it's just skipped?

--
Steve Powell

Nov 19 '05 #2
I gave this a try. When you register a script with the same key, it is
ignored (ie. it keeps the first one).

Patrice

--

"Patrice" <no****@nowhere.com> a écrit dans le message de
news:eI*************@tk2msftngp13.phx.gbl...
Just give this a try to see how it behaves (this is what I would do to
respond).

If it doesn't replace the previous script, my first thought would be to
avoid registering a script to realize later you don't need it. You could
just perhaps keep track of the needed script(s) and register them in the
page once you are sure they are needed...

Patrice

--

"Steve Powell" <me@me.me> a écrit dans le message de
news:er*************@TK2MSFTNGP12.phx.gbl...
Hi,

Can anyone help me with this one?
How can I remove script registered by RegisterClientScriptBlock ?

If I add another script with the same name, is the first one overwritten

or
it's just skipped?

--
Steve Powell


Nov 19 '05 #3
thanks
"Patrice" <no****@nowhere.com> wrote in message
news:ef**************@TK2MSFTNGP09.phx.gbl...
I gave this a try. When you register a script with the same key, it is
ignored (ie. it keeps the first one).

Patrice

--

"Patrice" <no****@nowhere.com> a écrit dans le message de
news:eI*************@tk2msftngp13.phx.gbl...
Just give this a try to see how it behaves (this is what I would do to
respond).

If it doesn't replace the previous script, my first thought would be to
avoid registering a script to realize later you don't need it. You could
just perhaps keep track of the needed script(s) and register them in the
page once you are sure they are needed...

Patrice

--

"Steve Powell" <me@me.me> a écrit dans le message de
news:er*************@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> Can anyone help me with this one?
> How can I remove script registered by RegisterClientScriptBlock ?
>
> If I add another script with the same name, is the first one
> overwritten

or
> it's just skipped?
>
> --
> Steve Powell
>
>



Nov 19 '05 #4

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

Similar topics

3
by: Hardy Wang | last post by:
Hi, By calling Page.RegisterClientScriptBlock, the JavaScript will be generated right after VIEWSTATE hidden field. Is there a way I can register my script to end of page instead beginning? --...
3
by: Michael A. Vickers | last post by:
Hi, Does anybody have a method by which they can read script blocks that have been registered via RegisterScriptBlock or RegisterStartupScript? I'd like to manipulate registered script blocks...
6
by: Kiran | last post by:
Hi, I have a registered a script block using: Me.Page.RegisterClientScriptBlock Is there a way to delete this registered script block using asp.net Thanks Kiran
7
by: RFS666 | last post by:
Hello, I would like to use variables with a type in jscript.NET. I declare them as follows: var x : double = 5.03; This doesn't work in my script, that I write to the page in codebehind with...
1
by: lourivas | last post by:
Hi, I create a class with a property called MyProperty that needs to register a client script if the value is set to true. When i change the property value to true i always receive a message...
2
by: mac | last post by:
I have a requirement to open a popup window in button click event(after server processing). The way i use is i call Page.RegisterClientScriptBlock to register script for opening popup in the button...
6
by: Velislav | last post by:
Hi, I have a client script block, which is registered in my Page_Load. However a button may result in the need to change the script which I've registered. Obviously the OnClick event occurs...
3
by: Papanii | last post by:
Hello Guys, I have a little problem that i need some ideas as to how to solve. I have a form that sends some data to the server once filled. Now, for this form i am using asp.net validation...
2
by: Ed Courtenay | last post by:
Reposting here as you can practically see the tumbleweed blow by in microsoft.public.dotnet.framework.aspnet.webcontrols.... I've got a very simple custom control that requires a small section 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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.