.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Melody Anderson

Post New Resource Bookmark and Share   

Color picker in ASP.NET

Posted By:Ashutosh Jha       Posted Date: April 28, 2014    Points: 200    Category:    URL: http://www.dotnetspark.com  

Here i will explain how to add color picker in ASP.NET cpntrols with the help of AJAX controls.

Color picker functionality can be attached to any ASP.NET text box. It works at the client side. Below is the details of the code of the whole page. Here i have kept the name of the page as colorpicker.aspx.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="colorpicker.aspx.cs" Inherits="colorpicker" %>
<%@ Register Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" tagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
   <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:ColorPickerExtender ID="ColorPickerExtender1" runat="server"                                                      TargetControlID="TextBox1">


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend