Click here to Skip to main content
16,021,115 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

I am working on one task where I need to create one drop down list in HTML Page and I am using ASP.Net 4.0.
Below is my code to create and populate drop down list with required values.

HTML
<select>
<option></option>
<option>Belarusian</option>
<option>bulgarian</option>
<option>German</option>
<option>English</option>
</select>


Now I want to open another form when user click on any item in the list and I have to rendor the item in the new form based on item selected by user.

Please suggest How can I accomplish this. Any link /Code will be preferred.

Thanks in Advance.
Posted
Updated 10-May-12 23:40pm
v2

 
Share this answer
 
Comments
Wendelius 11-May-12 17:07pm    
Do you prefer CP results in you Google search? That's well worth 5 :)
Abhinav S 14-May-12 2:10am    
Thank you. :)
use onclick event in option tag and call javascript function window.open("page name","_blank/_self","properties like height,width etc")

example:

XML
<select>
<option></option>
<option onClick="Window.Open('MyPage.aspx','_Blank','widht=500px,height=500px')">Belarusian</option>
<option onClick="Window.Open('MyPage.aspx','_Blank','widht=500px,height=500px')">bulgarian</option>
<option onClick="Window.Open('MyPage.aspx','_Blank','widht=500px,height=500px')">German</option>
<option onClick="Window.Open('MyPage.aspx','_Blank','widht=500px,height=500px')">English</option>
</select>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900