?
Solved

JavaScript:window.open() instead of Response.Redirect ""

Posted on 2008-10-09
1
Medium Priority
?
2,573 Views
Last Modified: 2012-06-21
Attached code snippet should popup un a javascript window using same page name and querystring... please include all window.open() parameters so I can modify (width,height,toolbar,etc...)
file: somepage.aspx.cs
 
protected void rHotels_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
        if (e.CommandArgument != null)
        {
            Response.Redirect("HotelDetail.aspx?HotelID=" + e.CommandArgument");
        }
    }

Open in new window

0
Comment
Question by:conrad2010
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 26

Accepted Solution

by:
Anurag Thakur earned 2000 total points
ID: 22685093
you shoule have included asp.net programming zone for this question and might have got the solution till now

try this out it should work out for you
Response.Write("<SCRIPT language=javascript>var w=window.open('HotelDetail.aspx?HotelID='" + e.CommandArgument + ",'OrderStatus','height=800,width=800');</SCRIPT>");
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question