Solved

window.open with two parameters

Posted on 2008-06-16
1
275 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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
Setting up a IIS 8 Web Server to send and receive XML files 7 90
Google Maps with Webforms 1 29
Problem to copy file 14 45
c#, case, if 4 16
Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video teaches users how to migrate an existing Wordpress website to a new domain.
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…

740 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