Professional Web Applications Themes

How to call Jscript or VBscript function in sub ? - ASP.NET General

Hi, I need to know how can I call JavaScript or VBscript function from a sub ... so I can display a pop-up when a sub is executed ... thanks...

  1. #1

    Default How to call Jscript or VBscript function in sub ?

    Hi,

    I need to know how can I call JavaScript or VBscript function from a sub ...
    so I can display a pop-up when a sub is executed ...

    thanks


    THY Guest

  2. #2

    Default Re: How to call Jscript or VBscript function in sub ?

    You can't display a client-side popup when a server-side Sub is executed.
    However, you CAN add a client-side script to the page which will execute
    when the page reaches the browser. Use Page.RegisterStartupScript to do it.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    http://www.takempis.com
    The more I learn, the less I know.

    "THY" <com> wrote in message
    news:Oio$w$phx.gbl... 
    .... 


    Kevin Guest

  3. #3

    Default Re: How to call Jscript or VBscript function in sub ?

    not that clear about Page.RegisterStartupScript ... do you have any short
    example for this ?



    "Kevin Spencer" <com> wrote in message
    news:uq1w$phx.gbl... 
    it. 
    > ... 
    >
    >[/ref]


    THY Guest

  4. #4

    Default Re: How to call Jscript or VBscript function in sub ?

    THY,

    I have an example that is similar on my website, www.aboutfortunate.com. You
    can make the <body> tag of the page into a server control and then add the
    popup code to that. You can find the example easily by going to the code
    library on the site and searching for: "body tag as server control" or
    something similar.

    Sincerely,

    --
    S. Justin Gengo, MCP
    Web Developer

    Free code library at:
    www.aboutfortunate.com

    "Out of chaos comes order."
    Nietzche


    "THY" <com> wrote in message
    news:%23QiH%phx.gbl... [/ref]
    executed. 
    > it. [/ref][/ref]
    sub 
    > >
    > >[/ref]
    >
    >[/ref]


    S. Guest

Similar Threads

  1. FSCommand doesn't call vbscript in Vista IE7
    By BorisMee in forum Macromedia Flash Data Integration
    Replies: 0
    Last Post: April 27th, 09:10 AM
  2. ANN: UltraSuite 8 ASP (VBSCript and JScript) Extension Packages
    By J.S. \(UltraSuite\) in forum Macromedia Exchange Dreamweaver Extensions
    Replies: 0
    Last Post: September 16th, 07:11 PM
  3. Calling a jscript function in vbscript host without atrigger
    By Fly_Scuba in forum Dreamweaver AppDev
    Replies: 0
    Last Post: May 8th, 07:40 PM
  4. How do I call an outer function from a class method function?
    By Phil Powell in forum PHP Development
    Replies: 5
    Last Post: October 16th, 09:56 AM
  5. VBScript: What is default function parm type - ByVal or ByRef?
    By Mark Findlay in forum ASP Components
    Replies: 0
    Last Post: October 12th, 09:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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