Click here to Skip to main content
15,903,730 members
Home / Discussions / C#
   

C#

 
QuestionHow to check Internet Connection on different gateway Pin
Mayur27-Dec-09 18:42
professionalMayur27-Dec-09 18:42 
AnswerRe: How to check Internet Connection on different gateway Pin
Dimitri Witkowski28-Dec-09 4:51
Dimitri Witkowski28-Dec-09 4:51 
QuestionFractal Index Pin
self similar idiot27-Dec-09 11:32
self similar idiot27-Dec-09 11:32 
QuestionDo you know any ListViewItem samples ? Pin
Mohammad Dayyan27-Dec-09 9:21
Mohammad Dayyan27-Dec-09 9:21 
AnswerRe: Do you know any ListViewItem samples ? Pin
ProtoBytes28-Dec-09 12:20
ProtoBytes28-Dec-09 12:20 
Questionconnecting user controls to each other ( link them to gether) Pin
NoName_ark27-Dec-09 2:42
NoName_ark27-Dec-09 2:42 
AnswerRe: connecting user controls to each other ( link them to gether) Pin
Luc Pattyn27-Dec-09 3:03
sitebuilderLuc Pattyn27-Dec-09 3:03 
GeneralRe: connecting user controls to each other ( link them to gether) Pin
NoName_ark27-Dec-09 3:11
NoName_ark27-Dec-09 3:11 
GeneralRe: connecting user controls to each other ( link them to gether) Pin
Luc Pattyn27-Dec-09 3:14
sitebuilderLuc Pattyn27-Dec-09 3:14 
GeneralRe: connecting user controls to each other ( link them to gether) Pin
NoName_ark27-Dec-09 3:20
NoName_ark27-Dec-09 3:20 
Questionpayload fragmentation [modified] Pin
3bood.ghzawi27-Dec-09 1:07
3bood.ghzawi27-Dec-09 1:07 
AnswerRe: payload fragmentation Pin
Md. Marufuzzaman27-Dec-09 3:25
professionalMd. Marufuzzaman27-Dec-09 3:25 
Questiondatetimepicker format for entire application!! [modified] Pin
Hussam Fattahi26-Dec-09 20:37
Hussam Fattahi26-Dec-09 20:37 
AnswerRe: datetimepicker format for entire application!! Pin
#realJSOP27-Dec-09 1:52
professional#realJSOP27-Dec-09 1:52 
GeneralRe: datetimepicker format for entire application!! Pin
Luc Pattyn27-Dec-09 2:03
sitebuilderLuc Pattyn27-Dec-09 2:03 
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
professional#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
professional#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 

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.