Ask a Question related to ASP.NET General, Design and Development.
-
Charles A. Lackman #1
Calling functions?
Hello, I wrote a jscript function within the HTML window of my webpage and
would like to call it from inside the ASPX code-behind page. Any
suggestions?
or
I would like to cause an alert box to pop up using the code-behind window of
an ASPX page.
Any of these two things will work for me.
Thanks
Chuck
Charles A. Lackman Guest
-
Calling other functions
All, Using .NET 1.1, I have built a custom control, however I am having trouble compiling it. For the on click event of the button, I want it to... -
Calling functions from main.asc
hi all, i'm new to flash com server ... made the following example to explain what i'm trying to do... the bottom line is that i want to forexample... -
calling functions with include
suppose i have... <?php include("common_functions.php"); fxn1(); fxn2(); ?> i want fxn1 and fxn2 to be on the common_functions.php page,... -
Calling functions between frames...
JavaScript can not run on server side. You can include it in the output of your PHP script. "Albert Finchly" <Albert_Finchly@Yahoo.co.uk>... -
calling functions
how do i call a vbscript function (which is between <%%>) from a vbscript script function (which is between script tags-<script... -
Graham #2
Re: Calling functions?
Hey Chuck,
What you are trying to do doesn't really make any sense :) Code behind
executes on the server, jscript runs on the client. The two don't have
anything to do with each other. Your only hope might be to have code behind
make the browser call your jscript function to open up the alert box by
putting a call to the jscript function in some client-side event like
<body onload=myFunction();>
Otherwise, server-side code cannot effectively call client-side script but
it can cause it to be called. (if that makes sense).
Good luck,
Graham.
"Charles A. Lackman" <Charles@cet.com> wrote in message
news:u1j1SKaQDHA.1712@TK2MSFTNGP12.phx.gbl...of> Hello, I wrote a jscript function within the HTML window of my webpage and
> would like to call it from inside the ASPX code-behind page. Any
> suggestions?
>
> or
>
> I would like to cause an alert box to pop up using the code-behind window> an ASPX page.
>
> Any of these two things will work for me.
>
>
> Thanks
> Chuck
>
>
Graham Guest
-
Sabre #3
Re: Calling functions?
Hello Chuck
What about ...
Response.Write("<script language='javascript'>window.alert('Thankyou for
your message! We will email you shortly.');</script>")
Hope this helps.
Graeme
"Charles A. Lackman" <Charles@cet.com> wrote in message
news:u1j1SKaQDHA.1712@TK2MSFTNGP12.phx.gbl...of> Hello, I wrote a jscript function within the HTML window of my webpage and
> would like to call it from inside the ASPX code-behind page. Any
> suggestions?
>
> or
>
> I would like to cause an alert box to pop up using the code-behind window> an ASPX page.
>
> Any of these two things will work for me.
>
>
> Thanks
> Chuck
>
>
Sabre Guest
-
jayuya #4
Calling functions?
Chuck,
Look into Page.RegisterStartupScript...
This will do all that you need...
jayuya
of my webpage and>-----Original Message-----
>Hello, I wrote a jscript function within the HTML windowpage. Any>would like to call it from inside the ASPX code-behindcode-behind window of>suggestions?
>
> or
>
>I would like to cause an alert box to pop up using the>an ASPX page.
>
>Any of these two things will work for me.
>
>
>Thanks
>Chuck
>
>
>.
>jayuya Guest



Reply With Quote

