example of ajax control "ColorPicker " using asp.net
ColorPicker.aspx
<%@ Page Language="C#"
AutoEventWireup="true"
CodeFile="ColorPicker.aspx.cs"
Inherits="ColorPicker"
%>
<%@ Register Assembly="AjaxControlToolkit"
Namespace="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">
<div>
<asp:ToolkitScriptManager ID="ScriptManager1" runat="server"></asp:ToolkitScriptManager>
<asp:TextBox ID="TextBox1" runat="server" Columns="7" MaxLength="7"></asp:TextBox>
<asp:ImageButton ID="ImageButton1" runat="server" Height="20px" Width="20px" ImageUrl="~/downarrow.jpeg" />
<asp:ColorPickerExtender ID="ColorPickerExtender1" runat="server"
TargetControlID="TextBox1"
SampleControlID="ImageButton1"
PopupButtonID="ImageButton1"
>
</asp:ColorPickerExtender>
</div>
</form>
</body>
</html>
ColorPicker.aspx.cs
using System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Web;
using
System.Web.UI;
using
System.Web.UI.WebControls;
public partial class ColorPicker : System.Web.UI.Page
{
protected void Page_Load(object
sender, EventArgs e)
{
}
}
0 comments :