Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.


    • CommentAuthorjohalber
    • CommentTimeNov 2nd 2006
     
    Folks,

    I am trying to integrate the following. I have a site created in VB.NET but I need to add some JScript to it. I have two questions that my research was not capable of answering.

    1. Can I create a JScript file in ASP.NET and call any of its functions from any of my pages?

    2. If I want to be able to check objects on the page, how can I add the JScript function to a button? I am not sure whether to use attribute or response.write. I want the JScript to check the page, if everything OK, then pass the information to the server through VB code. Is it possible?

    Johalber
    • CommentAuthorjacoh
    • CommentTimeNov 2nd 2006
     
    Are you talking about JScript (i.e. code that runs on the server) or JavaScript (i.e. code that runs on the client)?

    I'm almost certain you can write JavaScript out to the browser and have it work fine. However, this is the sort of question that should be asked on an ASP.NET group, not a JavaScript group.
    • CommentAuthorearsha
    • CommentTimeNov 2nd 2006
     
    hi,

    Almost certainly you are talking about JavaScript, not JScript. Please don't confuse the terminology - especially on a JavaScript list.

    JScript is (mostly) a server-side ASP language.

    If you do a Google search for - javascript and asp.net - you will get hits. The very first one has the title "Combining JavaScript with ASP.NET Web forms" which is surely what you are looking for. And the next few hits seem equally relevant.

    Earsha