473,399 Members | 3,038 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,399 software developers and data experts.

Javascript customization

Hi,

My ASP .NET pages contain some client-side javascript variables and
functions :

<html>
<head>
<script language="Javascript">
pageId = '[pageId]';

function init() {
... do some work using the value of pageId ...
}
</script>
</head>
<body>
<form ...>
...
</form>
</body>
</html>
The variable [pageId] (e.g. 10, 20, 30, ...) should be filled in by my ASP
..NET script (server side) before the result is sent to the browser.
How can this be accomplished ?

Jill

Jul 21 '05 #1
1 1072
Hi Dave,

Have a look at RegisterStartupScript.

\\\
Dim str As String
str = "<script language=javascript> {window.open('http://www.google.com');}
</script>"
RegisterStartupScript("Startup", str)
///

A full description
http://msdn.microsoft.com/library/de...javascript.asp

I hope this helps a little bit?

Cor

Jul 21 '05 #2

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

Similar topics

1
by: Jill Graham | last post by:
Hi, My ASP .NET pages contain some client-side javascript variables and functions : <html> <head> <script language="Javascript"> pageId = '';
1
by: Daniel Meilleur | last post by:
Hi, I try to use a customization stylesheet following example given by B.Stayton (http://www.sagehill.net/docbookxsl/CustomGentext.html#CustomGenText) i.e.: <?xml version='1.0'?>...
3
by: Volker Hetzer | last post by:
Hi! I'm new to javascript and I'd like to know whether javascript can process javascript-code entered by the user or read from a file. We've got an application that uses ActiveX as main...
2
by: PatLaf | last post by:
I would like to be able to build a datagrid that has two buttons in each cell similar to the functionality provided by the winforms numericupdown control. I have an app that will require the user to...
19
by: Fabian | last post by:
Well, what can I say...I really hate Javascript. I am not programming as profession but I sometimes work with PHP with MySQL, ASP with Ms Access/SQL Server. I have done something in VB and when...
0
by: Margarita | last post by:
Where can i find information about customization (on C#) the DHTML Editing Component ActiveX Control . I want to implement some(2,3,4...) input elements for data with one ToolBar on the...
2
by: Marco | last post by:
Hi experts! For customization purpose i need to substitute a class that is implemented within an assembly, with a new class (with the same name). I haven't the sources but I'd like to rewrite...
1
by: robert d via AccessMonster.com | last post by:
I'm a fledgling developer and am just starting to get my app out to specific clients. I have been asked to bid on a project because my app already does over 90% of what the client wants. My...
4
by: nondisclosure007 | last post by:
Hello all! I have something rather unique. I'm creating a cookie for customization for a webpage. But I want to tie the user to a machine (not friendly, I know, but for what I'm doing, it's...
14
by: Mars | last post by:
I'm looking for a javascipt vertical news scroller that will scroll from the bottom of the page to the top showing many new items. Would really appreciate some help. The scroller I'm using at...
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: 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?
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
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
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,...

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.