Solved

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

Posted on 2008-10-09
1
2,563 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
1 Comment
 
LVL 26

Accepted Solution

by:
Anurag Thakur earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
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.
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…

919 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now