Seboko
11-12-2005, 05:54 AM
Does any one know C#'s equivalent of Javascript's window.open(...)?
|
Click to See Complete Forum and Search --> : C#'s quivalent of window.open Seboko 11-12-2005, 05:54 AM Does any one know C#'s equivalent of Javascript's window.open(...)? PeOfEo 11-12-2005, 12:33 PM There is none. C# runs on the server, javascript runs on the client's browser. C# cannot do anything related to the client, therefore it cannot open windows. Cipher 11-13-2005, 08:16 PM you can use JavaScript in ur C# code: string js = "<script language='javascript'>"; js += "..your js code"; js += "</script>"; RegisterClientScriptBlock(scriptName, js); or RegisterStartupScript(scriptName, js); or Response.Write(js); Hope this helps webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |