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

registering a javascripts.

2
I have a javascript that loads picture names into an array in the head section of the web page and a javascript in a table cell within the body of the html that references the array of image names. I am trying to load the array with either database entries or file system object names to become dynamic and allow the user to change out pictures. I can register the script in the head part in the Page_Load subroutine and it appears in the source of the page at the bottom of the source, but I don't know at what time I should register the javascript that actually displays the images in the table cell so it has the array of names? This is a ASP.NET 2.0 question. I am a newbie at ASP.NET.
Thanks,
Oct 17 '06 #1
3 1219
scripto
143 100+
when your users click (on the grid???) inside that click event use the
RegisterClientScriptBlock method to do what you want to do. Look up how to use this method - it will do what you want.
Oct 17 '06 #2
kshort
2
when your users click (on the grid???) inside that click event use the
RegisterClientScriptBlock method to do what you want to do. Look up how to use this method - it will do what you want.
I am not using a Grid. The javascript to load the array is in the head part of the aspx page and is hard coded with values for names of images in the image array. To run the javascript it is just the call to the function that shows the pictures within a table cell.

I can't seem to get the javascript registered to be placed in the head portion of the aspx page. Plus I am not sure how to get the call of the function that is in a table cell placed in the page using the code behind using vb.net coding.
Oct 17 '06 #3
nmsreddi
366 256MB
hello

there are two ways to register script .one is you can write the script as inline code but it is not recommended the other way is have a .js file and call that file whre ever it is needed

one more is you can client scriptregister block in asp.net with this you can rgister your script language by writing it as codebehind

now ,what actually is your problem what way you are using ,is the script with you you just want to use that in your application or you have to write the script code

i am unable to get your problem ,if you be more specific i will try better next time hope the best

Regards

nmsreddi
Oct 23 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Kerberos | last post by:
When I deliver a page as text/html, the javascripts work, but if delivered as application/xhtml+xml, the javascripts don't work: function OpenBrWindow(theURL,winName,features, myWidth, myHeight,...
2
by: sdvoranchik | last post by:
We have an application that contains links that run javascripts to create pages in a separate frame. When these links open an external site, it causes the javascripts to no longer function. When...
2
by: LC's No-Spam Newsreading account | last post by:
I asked a couple of days ago about the following arrangement (simplified). I made some progress using netscape.security.PrivilegeManager.enablePrivilege but still have to ask some further help. ...
4
by: David Virgil Hobbs | last post by:
My web host inserts banner ads into my html pages. The javascript in these banner ads interferes with the onload triggered javascript functions in my pages. Whether I trigger my javascript...
4
by: swayze | last post by:
Hi, I'm sending some vars to php from javascript. These vars contain special chars (like "&" ,",")and also turkish characters. Therefore I'm using javascripts escape() function to be able to...
2
by: Pavils Jurjans | last post by:
Hello, I am looking fow C# equivalent of JavaScripts escape() and unescape() functions. I need to use C# function at the server side and then be able to use the opposite at the client side. ...
1
by: somaskarthic | last post by:
Hi In my PHP page while viewing the page source , it shows all the javascript codings and php comments. I don't want these comments and javascripts visible . Is there any methods to hide the...
2
by: stroumf | last post by:
Hey, My problem is the following: I need to use functions from different javascripts and I don't want to load all the javascripts initially. So I need to load the scripts on demand. Now I know...
4
by: januarynow | last post by:
Generally, my site contains javascripts (a couple of freebie counters plus some CPM (pay-per-impression) and CPC (pay-per-click) ads), from four different firms, but they are all suffering from the...
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
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: 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
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.