Solved

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

Posted on 2008-10-09
1
2,570 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 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Javascript: Range object 16 30
isNaN issue on the Table input text 2 38
Make New Browser Window Fully Functional 7 33
C# Change the instruction to user. 11 35
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…

738 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