Ask a Question related to ASP.NET General, Design and Development.
-
Silvia Brunet-Jones #1
Calling a javascript function from server script URGENT HELP
Ok I am about to pull my hair.
I have an active x control in an object tag which, as you
know cant have runat=server. So what I need is to not
loose what is in this box everytime a postback happens. So
all I want to do is add this statement
document.all.txtEditor.value =
document.all.Transcription.objEditor.textrtf;
in the before the page is posted so that I can then
retrive it and put it back.
WHY CANT I DO THIS!!!!!!!!!!!!
I have tried all kinds of things, the submit function is
not getting called when the postback occurs.
There has to be a way how to call a javascript function
from the server side code. Where I can put this in the
private void Page_Unload(object sender, System.EventArgs e)
at least.
HELP
Silvia Brunet-Jones Guest
-
Calling Flash function from Javascript
Hi everyone, I am desperately trying to call a Flash function (myfunction) from javascript... I believe the function has to be made accessible by... -
Calling a javascript function from flash
Is it possible to call script functions from a flash object that the flash object will only be able to access once it is placed on an html page? ... -
calling a flash function from Javascript
Hello everybody I want to call an ActionScript from the Website maybe using fscommand, but I don't know how to do it. Can anybody help me to... -
Calling client function from server script
a.. How to write server script to call a client side function written in JavaScript? a.. When using Validation controls, it uses a file named... -
Calling Javascript function
Hi all, Can i call my javascript functions from the web controls.Any appropriate site which will be tell more on this will be helpfull. ... -
Silvia Brunet Jones #2
Calling a javascript function from server script URGENT HELP
Ok I am about to pull my hair.
I have an active x control in an object tag which, as you
know cant have runat=server. So what I need is to not
loose what is in this box everytime a postback happens. So
all I want to do is add this statement
document.all.txtEditor.value =
document.all.Transcription.objEditor.textrtf;
in the before the page is posted so that I can then
retrive it and put it back.
WHY CANT I DO THIS!!!!!!!!!!!!
I have tried all kinds of things, the submit function is
not getting called when the postback occurs.
There has to be a way how to call a javascript function
from the server side code. Where I can put this in the
private void Page_Unload(object sender, System.EventArgs e)
at least.
HELP
..
Silvia Brunet Jones Guest
-
Kevin Spencer #3
Re: Calling a javascript function from server script URGENT HELP
Actually, you CAN have a client-side <OBJECT> tag and a runat=server
attribute. You just use an HTMLGenericControl in your CodeBehind to work
with it.
While you can't CALL a JavaScript function from the server side, you can
certainly ADD one to the Page, using RegisterClientScriptBlock or
RegisterStartupScript (if you want the script to run immediately after the
page is loaded).
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
[url]http://www.takempis.com[/url]
Big things are made up of
lots of little things.
"Silvia Brunet-Jones" <sbrunet_jones@hotmail.com> wrote in message
news:35fb01c3554d$fcdc88e0$a001280a@phx.gbl...> Ok I am about to pull my hair.
> I have an active x control in an object tag which, as you
> know cant have runat=server. So what I need is to not
> loose what is in this box everytime a postback happens. So
> all I want to do is add this statement
> document.all.txtEditor.value =
> document.all.Transcription.objEditor.textrtf;
> in the before the page is posted so that I can then
> retrive it and put it back.
> WHY CANT I DO THIS!!!!!!!!!!!!
> I have tried all kinds of things, the submit function is
> not getting called when the postback occurs.
> There has to be a way how to call a javascript function
> from the server side code. Where I can put this in the
> private void Page_Unload(object sender, System.EventArgs e)
> at least.
> HELP
Kevin Spencer Guest



Reply With Quote

