如何将复选框列表项转换为ASP中的链接按钮 [英] how to convert checklistbox item to link button in asp

查看:79
本文介绍了如何将复选框列表项转换为ASP中的链接按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将清单框项目转换为链接,将清单框项目从数据库绑定后,当用户单击特定链接时,它将使用c#

Hi,i want to convert the checklistbox item to link ,after checklist box item are bind from database and when user click on particular link it will redirect user to new page in asp.net with c#

推荐答案

哦,拜托!现在,您使用术语从一个控件转换到另一个控件".请你停下来.这是荒唐的. 转换"的概念在这里不适用.您想实现什么?

—SA
Oh, please! Now you use the term "convert" from one control to another. Please stop it. This is ridiculous. The concept of "conversion" is inapplicable here. What do you want to achieve?

—SA


好吧,您所需要做的就是将文本作为html a-href 作为文本.一旦文本是这样的,当它们被渲染时将是链接,您可以实现所需的结果.

例如,每个项目应类似于:
Well, all you need is to be your items text as a html a-href. Once the texts are like that, when they get rendered it will be links and you can achieve the desired result.

Example, each item should be something like:
<asp:CheckBox ID="myCheckBox" Text="To Search:<a href='http://www.google.com'>GOOGLE</a>" runat="Server" />


这篇关于如何将复选框列表项转换为ASP中的链接按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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