ASP.NET Profile values within a JavaScript Function

G

Guest

How can I reference values from the Profile. within a JavaScript?

A VB ASP.NET web page would generate the data on our servier but would need
to plot them on a map using a 3rd party's WebService using JavaScript onLoad.
The JacaScript needs to reference the hidden information passed back to the
client by ASP.NET.
 
B

bruce barker

just put them in a hidden fields.

server:

Page.ClientScript.RegisterHiddenField("profile1",profile1);

client

var profile1 = document.getElementsByName("profile1")[0];


-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top