how to use vbscript in .net code behind file

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

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

    Why would you need to? Anyhow, in response, no, you cannot. The code behind
    is for server-side processing and only supports VB.NET, C#, C++, J#, etc etc
    etc. If you are wanting to use VBScript for server-side processing, stick
    with ASP.

    HTH,

    Bill P.

    "Jenet" <Jenet@yahoo.com> wrote in message
    news:%23vaPqrHTDHA.1576@TK2MSFTNGP12.phx.gbl...
    > Is this possible? Is there any source code/link for reference?
    >
    > Thanks.
    >
    >

    Bill Priess Guest

  2. Similar Questions and Discussions

    1. Why doesn't the Code Completion occur in FlexBuilder IDEwhen source code is in an external file?
      I am seperating my .as from the MXML by using the following in my file.mxml: <mx:Script source="file.as"> When I edit file.as, the code...
    2. VBScript (ASP) Intellisense (Code Hints)
      Does anyone have a way of including Code Hints (Intellisense) for VBScript code (ASP) in Dreamweaver? Thanks!
    3. Custom control fires event but ignores some code in the code behind file
      I do not quite understand the question. I will merely point out that most programming problems happen for a reason. Code works the way it is...
    4. Save a file in UTF-8 format from ASP vbscript
      I need to save a file in UTF-8 format from an ASP file. Using FileSystemObject I can only save them in Unicode (UTF-16, I think) but not in UTF-8:...
    5. change a file name from asp (rather vbscript)
      As there is no change filename command in vbscript you have to take a diversion. According to aspfaq http://www.aspfaq.com/show.asp?id=2074 the...
  3. #2

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

    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:
    [url]www.aboutfortunate.com[/url]

    "Out of chaos comes order."
    Nietzche


    "Jenet" <Jenet@yahoo.com> wrote in message
    news:%23vaPqrHTDHA.1576@TK2MSFTNGP12.phx.gbl...
    > Is this possible? Is there any source code/link for reference?
    >
    > Thanks.
    >
    >

    S. Justin Gengo Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139