Click here to Skip to main content
15,893,622 members
Home / Discussions / C#
   

C#

 
GeneralRe: datetimepicker format for entire application!! Pin
Hussam Fattahi27-Dec-09 20:02
Hussam Fattahi27-Dec-09 20:02 
GeneralRe: datetimepicker format for entire application!! Pin
#realJSOP27-Dec-09 23:58
mve#realJSOP27-Dec-09 23:58 
GeneralRe: datetimepicker format for entire application!! Pin
Hussam Fattahi28-Dec-09 2:14
Hussam Fattahi28-Dec-09 2:14 
GeneralRe: datetimepicker format for entire application!! Pin
#realJSOP28-Dec-09 4:38
mve#realJSOP28-Dec-09 4:38 
GeneralRe: datetimepicker format for entire application!! Pin
ProtoBytes28-Dec-09 12:22
ProtoBytes28-Dec-09 12:22 
GeneralRe: datetimepicker format for entire application!! Pin
Hussam Fattahi28-Dec-09 22:23
Hussam Fattahi28-Dec-09 22:23 
GeneralRe: datetimepicker format for entire application!! [Extension Method] Pin
ProtoBytes29-Dec-09 3:14
ProtoBytes29-Dec-09 3:14 
GeneralRe: datetimepicker format for entire application!! [Extension Method] Pin
elizas7-Jun-10 1:24
elizas7-Jun-10 1:24 
ASP.net Ajax Control Toolkit Color Picker Extender have a SampleControlID property, that shows the selected color's hexadecimal color code value for further use. But some time for better ui visibility need, if you don't want that hexadecimal color code to appear in the same control, then here is the way to do that.

In this sample code below:
I used a TextBox (txtColor) as ColorPickerExtender's SampleControlID and TargetControlID.
I used a ImageButton(ibtnCollorPicker) with ColorPickerExtender's PopupButtonID.

Now, when I click on the ibtnCollorPicker, this will show the colorpicker. Any color selection done, will show the hexa value in the txtColor.
Method 1: (Mostly Used By Developers)

On color selection, the selected color of color picker becomes the both the fore color and background color of the textbox. So since the hexa value does not appear directly.

<asp:TextBox ID="txtColor" runat="server"></asp:TextBox>
<asp:ImageButton ID="ibtnCollorPicker" runat="server" ImageUrl="~/Images/color_button.png"
ToolTip="Pick Color"></asp:ImageButton>

<cc:ColorPickerExtender ID="txtColor_ColorPickerExtender" runat="server"

http://www.mindfiresolutions.com/Hiding-hexadecimal-color-code-in-ColorPickerExtenders-Sample-Control-679.php[^]
TargetControlID="txtColor" SampleControlID="txtColor"
OnClientColorSelectionChanged="changeColor"
PopupButtonID="ibtnCollorPicker">
</cc:ColorPickerExtender>


function changeColor(sender)
{
sender.get_element().style.color = sender.get_selectedColor();

}

It works fine but it has a small issue. After selection, if you highlight textbox text with the help of mouse, then the hexa value will appear again.
Method 2 contains solution of this.
Cheers,
Eliza

Questionprinting capability Pin
Ryan Minor26-Dec-09 19:55
Ryan Minor26-Dec-09 19:55 
AnswerRe: printing capability Pin
dan!sh 26-Dec-09 20:12
professional dan!sh 26-Dec-09 20:12 
GeneralRe: printing capability Pin
Ben Fair28-Dec-09 10:24
Ben Fair28-Dec-09 10:24 
AnswerRe: printing capability Pin
MumbleB26-Dec-09 20:47
MumbleB26-Dec-09 20:47 
AnswerRe: printing capability Pin
Ravi Bhavnani27-Dec-09 20:52
professionalRavi Bhavnani27-Dec-09 20:52 
QuestionDate Time Format Pin
Abdullah Al-Muzahid26-Dec-09 17:26
professionalAbdullah Al-Muzahid26-Dec-09 17:26 
AnswerRe: Date Time Format Pin
dan!sh 26-Dec-09 18:06
professional dan!sh 26-Dec-09 18:06 
GeneralRe: Date Time Format Pin
Abdullah Al-Muzahid26-Dec-09 21:51
professionalAbdullah Al-Muzahid26-Dec-09 21:51 
GeneralRe: Date Time Format Pin
dan!sh 26-Dec-09 22:56
professional dan!sh 26-Dec-09 22:56 
GeneralRe: Date Time Format Pin
Abdullah Al-Muzahid26-Dec-09 23:50
professionalAbdullah Al-Muzahid26-Dec-09 23:50 
GeneralRe: Date Time Format Pin
dan!sh 27-Dec-09 0:21
professional dan!sh 27-Dec-09 0:21 
Question[Message Deleted] Pin
ikurtz26-Dec-09 10:13
ikurtz26-Dec-09 10:13 
Questionuse a Datagridviwcomboboxcell in a binded datagridview Pin
baranils26-Dec-09 8:04
baranils26-Dec-09 8:04 
AnswerRe: use a Datagridviwcomboboxcell in a binded datagridview Pin
dan!sh 26-Dec-09 18:08
professional dan!sh 26-Dec-09 18:08 
GeneralRe: use a Datagridviwcomboboxcell in a binded datagridview Pin
baranils26-Dec-09 22:23
baranils26-Dec-09 22:23 
GeneralRe: use a Datagridviwcomboboxcell in a binded datagridview Pin
dan!sh 26-Dec-09 23:07
professional dan!sh 26-Dec-09 23:07 
GeneralRe: use a Datagridviwcomboboxcell in a binded datagridview Pin
baranils27-Dec-09 2:42
baranils27-Dec-09 2:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.