Hi.. Try the following:
Page.RegisterStartupScript
Cheers,
G.
Main Topics
Browse All Topicsi have a grid button which shows various customer details
the view button On clicking generates a url + querystring
now this url+querystring has to be loaded in a NEW WINDOW
IN JAVA SCRIPT IT CAN BE DONE BY WINDOW.OPEN (url)
HOW TO DO THIS IN ASP.NET with code-behind in C#
the url+ querystring is generated by C# code
IS there any way to use RESPONSE.REDIRECT or any other method for achieving this
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You are not using Response.Redirect. With this code you are registering a script using Response.Write, which is not a reliable way for doing it. You should always register scripts using Page.RegisterStartupScript
Business Accounts
Answer for Membership
by: expertsoulPosted on 2009-01-13 at 11:38:34ID: 23366352
You cannot achieve this through codebehind/ASP.NET, as you cannot get handle to the window, till the page is loaded in the browser. You have to use JavaScript to do this either Window.open or target="_blank".
The only way to do is to register a JavaScript or add JavaScript to button onclick event from codebehind.