How to Open Separate Browser Window with Server Controls?

B

Brad

The subj line says it all. I'm trying to open another window using
available ASP.NET/Framework 1.1 library.

I know how to do it in Javascript; I don't know how in ASP.NET.

Anyone? Thanks for any assistance!

Brad
 
P

Patrice

ASP.NET is a server side technlogoie so basically you can't strickly
speaking (apart JS you could use also an anchor with the target attribute
set server side - is this what you are looking for ?).
 
G

Guest

In good ol ASP I used to write it as such:

<%
if p = 55 then
%>
<script lanugage="jscript">
window.open("pietie.asp")
</script>
<%
end if
%>

Can it still be done in ASP.Net?
 
G

Guest

C#:
RegisterStartupScript("MyStartupScript",
"<script
language=\"jscript\">window.open(\"UploadImage.aspx\")</script>");
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top