Solved

window.open with two parameters

Posted on 2008-06-16
1
262 Views
Last Modified: 2013-11-26
I have a command below it works well with one parameter. I want to add the second parameter department.This is asp.net 2.0 web form.  What should be the syntax with two parameters? Thanks

ClientScript.RegisterStartupScript(Me.GetType(), "ClientScript", "window.open('webform.aspx?branch=" + ddListBranch.SelectedValue + "','newWindow','height=600,width=900,left=100,top=100,status=1,toolbar=no,menubar=no,location=1');", True)
0
Comment
Question by:fycert55
1 Comment
 
LVL 48

Accepted Solution

by:
jpaulino earned 500 total points
ID: 21800235
Try this way:
ClientScript.RegisterStartupScript(Me.GetType(), "ClientScript", "window.open('webform.aspx?branch=" + ddListBranch.SelectedValue + "&new=" + newParameter + "','newWindow','height=600,width=900,left=100,top=100,status=1,toolbar=no,menubar=no,location=1');", True)

Open in new window

0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

762 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

16 Experts available now in Live!

Get 1:1 Help Now