如何在ASP.NET中使用带有datalist的颜色选择器? [英] How can I use color picker with datalist in ASP.NET?
本文介绍了如何在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 $中c $ c>,并将其附加到您要用来选择颜色的
TextBox
控件。
The error message is quite clear: you can't use theColorPickerExtender
to extend aDataList
control.
You need to put the extender inside theItemTemplate
, and attach it to theTextBox
control you want to use to pick the colour.
这篇关于如何在ASP.NET中使用带有datalist的颜色选择器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文