sending values from asp.net to javascript

asp.net , java Jordan
  • 15 years ago
    Greetings,

    I would like to ask if anyone can help me with my question, i want to send values from server-side(asp.net) to client-side(javascript) on the page load without using any controls. how this is done?

    I appreciate any hint or clue
    Regards
  • 15 years ago
    within you pageload event use a Response.write()

    and call your javascript within it like this

    Code:
    Response.Write("<script>javascript:someFunction("Test")</script>")
  • 15 years ago

    Hi it_habibghaith,


    Did the preceding post help you ?


Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“C++: an octopus made by nailing extra legs onto a dog.” - Steve Taylor