473,796 Members | 2,537 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Type Parameter in RegisterStartup Script

What is the point of the Type Parameter in RegisterStartup Script?
What other options do you have except string???

TIA!

Apr 3 '06 #1
2 2465
On Mon, 03 Apr 2006 08:47:01 -0500, <no********@yah oo.com> wrote:
What is the point of the Type Parameter in RegisterStartup Script?
What other options do you have except string???

TIA!


actually the first argument, type, is a System.Type:

http://msdn2.microsoft.com/en-us/lib...xy(VS.80).aspx

it's the type of the calling page...so pass in Me.GetType() or
this.GetType(), etc.

--
Craig
Microsoft MVP - ASP/ASP.NET
Apr 3 '06 #2
Craig Deelsnyder wrote:
On Mon, 03 Apr 2006 08:47:01 -0500, <no********@yah oo.com> wrote:
What is the point of the Type Parameter in RegisterStartup Script?
What other options do you have except string???

TIA!


actually the first argument, type, is a System.Type:

http://msdn2.microsoft.com/en-us/lib...xy(VS.80).aspx

it's the type of the calling page...so pass in Me.GetType() or
this.GetType(), etc.

--
Craig
Microsoft MVP - ASP/ASP.NET


I'm asking what else are you going to pass in there except
typeof(string) like:
ClientScript.Re gisterStartupSc ript(typeof(Str ing), "refreshParent" ,
"window.opener. location.reload ()", true);

Apr 11 '06 #3

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

Similar topics

3
8260
by: Lukman | last post by:
Hi, Could you tell me about what is RegisterStartupScript, I try to understand from MSDN sample, but I still don't understand. Could you give me more simple sample ? and what is the purpose of RegisterStartupScript. Thanks,
6
1988
by: Bill Jones | last post by:
I'm trying to use this.RegisterStartupScript to add some javascript to and aspx page that will run when the page is loaded. Does anyone know if this function only works in the Page_Load function? Or can I put it anywhere. Right now it is inside the eventhandler function that is called on the "CheckChanged" event of a checkbox, but it never seems to add the javascript code to the page. Is there another way to do this? Let me explain the...
11
3667
by: Stan Sainte-Rose | last post by:
Hi, I m working on a user control. I need to use a Js file, I would like to know how to load the js file using RegisterStartupScript command from the user control. Also, if I load the same user controls several times in the same webpage, do I have to check if the js file is still loaded ? Stan
0
1999
by: rom | last post by:
my main aspx page has 3 user controls. they are all located in the same place of the page and each time i set the visibility of 2 of them to false and 1 to true. now, i want to use the RegisterStartupScript on one of these controls but then i write page.RegisterStartupScript i registers it on the aspx page and i get js errors on the other controls. when i try me.RegisterStartupScript (on the ascx) i get "RegisterStartupScript is not e...
8
9026
by: Bishoy George | last post by:
how to let javascript code understand txtUser.Text? in window.open("WebForm26.aspx?User=txtUser.Text",.....................)
3
10432
by: MJP | last post by:
I have a button which kicks off the generation of a report after which the file will be downloaded. The report generation can take a long time, so client side onclick event of the button also makes a <span> tag visible which contains a nice message to the user thanking them for their patience. Of course after the report has been generated and downloaded this message should be removed. However, the RegisterStartupScript isn't working...
3
2041
by: Rob | last post by:
Hi, We've developed an ajax enabled web app which we're currently deploying to our production server. We use System.Web.UI.Page.RegisterStartupScript throughout the app, and all has worked well until we deployed. After deploying, we get an error stating that the method is not found. We're using .Net V2. After a bit of investigation, I get the impression that System.Web.UI.Page.RegisterStartupScript has been replaced by...
9
3475
by: JoeP | last post by:
Hi All, How can I find the reason for such an error: Failure sending mail. Some Code... oMailMessage.IsBodyHtml = False oMailMessage.Body = cEmailBody Dim oSMTP As New SmtpClient oSMTP.Send(oMailMessage) (in this line I am getting the above err)
1
2042
by: JoeP | last post by:
Hi All, 1) I am using code like the below outside of the Try.. Catch... Endtry and getting this message Within the Immediate Window. An exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll but was not handled in user code What can be done to avoid the above message?
0
10457
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10231
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10176
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10013
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9054
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5443
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5576
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4119
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3733
muto222
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.