带有链接按钮的下拉列表 [英] Dropdown list with link buttons

查看:78
本文介绍了带有链接按钮的下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个下拉列表名称为dropdoiwn1,在dropdown1内有3个列表项名称为"doc","excel","csv".我已经很好地绑定了下拉列表.

我希望当我单击Excel项时,应打开Excel文件.我知道如何将其转换为excel,但是我想学习正确的方法.每个按钮都应该是一个链接,当我选择任何项目时,它都应该是一个按钮并打开excel.

任何帮助非常感谢.

谢谢.

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.

推荐答案

看我确实不太了解,但我会尽力帮助:
如果您需要打开下拉菜单项作为链接按钮以便在单击时触发一个特殊事件..但是我有另一个想法,为什么您不考虑像OnSelectedIndexChanged这样的下拉事件,所以当您从下拉菜单中选择新项目时会触发,因此将您的代码放入此事件中(以导出到excell的代码)尝试一下
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


faizyab
这不是一个简单的任务,因为如果已经创建了您的csv,excel,doc,我们可以通过下拉click事件直接显示它们.但是,如果要基于事件选择生成这些文件,则根本不是一个好方法.如果要创建csv,excel,doc文件,则有很多文章可以创建这种类型的文件.

去google

http://www.google.co.in/ [
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


只需在下拉选举命令中使用OnIndexChange()或OnChange()之类的方法



在Java scripr中用javascript写方法的主体,写window.location会起作用.
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.


这篇关于带有链接按钮的下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆