Click here to Skip to main content
15,891,801 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a drop down list name is dropdoiwn1 and inside the dropdown1 I have 3 list items names "doc","excel","csv". I have bound drop down list very well.

I want that when I click on the Excel item, the Excel file should open. I know how to convert this into excel but I want to learn the correct way to do this. Every button should be a link and when I choose any item then it should be a button and open excel.

Any help is greatly appreciated.

Thank you.
Posted
Updated 2-Feb-12 0:29am
v3
Comments
Slacker007 2-Feb-12 5:36am    
Edits made: formatting, some grammar, and readability.
faizyab 2009 2-Feb-12 6:10am    
it is very simple English. ever one can read and understand.
Rockstar_ 2-Feb-12 6:42am    
Have problem in understanding your problem sir....
manognya kota 2-Feb-12 6:52am    
Could you explain?Your question is not clear.

look really i don't understand well but i will try to help:
if you need to open the items of the dropdown as link button inorder to to fire a special event on click .. but i have another idea about that why you dont think about dropdown events like OnSelectedIndexChanged so when you select new item from dropdown this event will fire so put you code inside this event(to code that export to excell) try it
 
Share this answer
 
Comments
faizyab 2009 2-Feb-12 14:09pm    
Hopefully you understood friend. if Is there any example or article or url so please send me .
faizyab
This is not a simple task, because if already your csv, excel, doc are created we can show them directly with the dropdown click event. But If you want to generate these files based on the event selection it is not at all a good approach. If you want to create csv, excel, doc files there are so many articles to create this type of files.

go for google

http://www.google.co.in/[^]

If any idea behind your program, please elaborate it in your question.

Thanks

SP
 
Share this answer
 
v3
Just use method like OnIndexChange() Or OnChange() in dropdown elect command



write the body of the method in javascript in java scripr write window.location it will work.
 
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