Active Server Pages Programming (ASP)/ASP Question

Advertisement


Question
i have created a form in my home page.
In this form  i  have taken a drop down list and a submit button.
i want pass this value to a pop up window on submit of button.

Answer
Hi

Here is the code for this you can do thru javascript

change the field name on your page

have the following code where you call your popup.

var selval = document.FormName.ddlname;
if (selval.selectedIndex > -1)
{
cwindow = window.open('popup.aspx?val=' +
selval.options[selval.selectedIndex].value,
'Windowname');
cwindow_window.focus();
}


happy programming!!

-srini

Active Server Pages Programming (ASP)

All Answers


Answers by Expert:


Ask Experts

Volunteer


Srini Nagarajan

Expertise

I can answer any kind of questions in ASP.NET, C#, VB.NET, SharePoint 2007, ASP, Coldfusion, Powerbuilder 7.00 / 8.00, JAVA servlets, MS SQL 2000 / MSSQL7, Sybase

Experience

Contact me if you need any custom development on ASP.NET, ASP, SharePoint 2007, Coldfusion, Powerbuilder.

©2012 About.com, a part of The New York Times Company. All rights reserved.