ASP.NET function in Javascript.... how?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ralph Krausse

    ASP.NET function in Javascript.... how?

    How can I run a function in my javascript in ASP.NET but have the
    function defined in the codebehind file?


    Thanks
    Ralph Krausse

    Pollock used a brush. I use agents. Production software built by directing Claude Code and OpenAI Codex, on a foundation of enterprise .NET, Angular, and Azure.

    Use the START button? Then you need CSFastRunII...
    A new kind of application launcher integrated in the taskbar!
    ScreenShot - http://www.consiliumsoft.com/ScreenShot.jpg
  • Martin Honnen

    #2
    Re: ASP.NET function in Javascript.... how?



    Ralph Krausse wrote:
    [color=blue]
    > How can I run a function in my javascript in ASP.NET but have the
    > function defined in the codebehind file?[/color]

    Have you tried
    Page.RegisterSt artupScript(
    "yourKey",
    "<script type=\"text/javascript\">al ert('script');</script>"
    );
    ?


    --

    Martin Honnen

    Comment

    • kaeli

      #3
      Re: ASP.NET function in Javascript.... how?

      In article <49eb6317.04090 90507.49078c03@ posting.google. com>,
      gordingin@consi liumsoft.com enlightened us with...[color=blue]
      > How can I run a function in my javascript in ASP.NET but have the
      > function defined in the codebehind file?
      >[/color]

      Client-side javascript runs on the client.
      ASP.NET runs on the server.

      Are you referring to client-side javascript or JScript in ASP.NET that runs
      on the server?

      What are you really trying to accomplish?

      (my guess is that this question is more likely to be answered well in a .net
      NG over at the msnews server, but I'll give it a shot...)

      --
      --
      ~kaeli~
      I love God.
      It's His fanclub that I can't stand.



      Comment

      Working...