如何在ASP.NET中使用带有datalist的颜色选择器? [英] How can I use color picker with datalist in ASP.NET?

查看:62
本文介绍了如何在ASP.NET中使用带有datalist的颜色选择器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I want to designs t shirt with Asp.net. i saved t shirt in database and select shirt from database with DataList. now how to use color picker with selected t shirt?



//当我尝试使用颜色选择器时。

它的方法错误..//




// when i tried to use color picker.
its hows error..//

Extender control 'ColorPickerExtender1' cannot extend 'DataList1'. Extender controls of type 'AjaxControlToolkit.ColorPickerExtender' cannot extend controls of type 'System.Web.UI.WebControls.DataList'.





< b>我尝试了什么:



仍在尝试我刚刚在datalist中添加了衬衫,我尝试使用datalist的颜色选择器,但它显示错误。请帮助。



What I have tried:

still trying i have just added shirt in datalist, i tried for color picker with datalist but it shows error. Kindly help.

推荐答案

错误信息非常明确:您无法使用 ColorPickerExtender 来扩展 DataList control。



您需要将扩展​​器放在 ItemTemplate ,并将其附加到您要用来选择颜色的 TextBox 控件。
The error message is quite clear: you can't use the ColorPickerExtender to extend a DataList control.

You need to put the extender inside the ItemTemplate, and attach it to the TextBox control you want to use to pick the colour.


这篇关于如何在ASP.NET中使用带有datalist的颜色选择器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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