Re: how to use vbscript in .net code behind file

Discussion in 'ASP .Net' started by S. Justin Gengo, Jul 17, 2003.

  1. Jenet,

    If what you really mean is: "Can I add vbscript to the html file that
    asp.net sends to the client from the code behind file?"

    Then the answer is yes.

    You could attach the script to the page with the
    Page.RegisterClientScriptBlock method.

    You would then attach a call to the vbscript from a client object event (say
    a button click) by adding the attribute to the button:
    Button.Attributes.Add("onClick", "MyVbScriptFunction()")

    I hope this helps.

    --
    S. Justin Gengo, MCP
    Web Developer / Programmer

    Free Code Library At:
    www.aboutfortunate.com

    "Out of chaos comes order."
    Nietzche


    "Jenet" <> wrote in message
    news:%...
    > Is this possible? Is there any source code/link for reference?
    >
    > Thanks.
    >
    >
    S. Justin Gengo, Jul 17, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ben Miller [msft]

    Re: Code Behind vs. no code behind: error

    Ben Miller [msft], Jun 27, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    579
    Alphonse Giambrone
    Jun 28, 2003
  2. Bill Priess
    Replies:
    0
    Views:
    342
    Bill Priess
    Jul 17, 2003
  3. Sean
    Replies:
    5
    Views:
    886
  4. pedestrian via DotNetMonster.com

    ASP.NET 2.0: To use or not to use code behind?

    pedestrian via DotNetMonster.com, Sep 27, 2006, in forum: ASP .Net
    Replies:
    5
    Views:
    339
    Steven Nagy
    Sep 28, 2006
  5. John

    Non-code behind to code behind

    John, Feb 19, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    478
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Feb 19, 2007
Loading...

Share This Page