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


Top 5 Contributors of the Month
david stephan

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">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    <div>
   <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:ColorPickerExtender ID="ColorPickerExtender1" runat="server"                                                      TargetControlID="TextBox1">
        </asp:ColorPickerExtender>
    </div>
    </form>
</body>
</html>


     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Here

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