RE: call server side function then javascript

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Peter Bromberg [C# MVP] wrote:
>Try Response.Write (yourscript) instead
>
>Peter
>
>> Hi,
>>
>[quoted text clipped - 19 lines]
>>
>> Page.RegisterStartupScript(strKey, strScript)

Hi Peter,

Thanks for the reply. I tried the response.write after the db update function
but nothing happend and other thoguhts?

strScript = "<script language=JavaScript>window.returnValue = document.
getElementById('txtlbID').value; window.close();</script>"

Response.Write(strScript)

Rob

--
Message posted via http://www.dotnetmonster.com
.



Relevant Pages