Event for input type color

2

I have a color button in a text editor to change the font color but I could not execute the event, I attach the code:

<input id="Color_Letra" runat="server" name="color" type="color" value="#000000" onchange="Pintar"/>

This is the event:

 protected void Pintar()
{
   textbox_titulo.Attributes.Add("style", "color:" + Color_Letra.Value);
}

I have also tried it with parameters (object sender, EventArgs e) but nothing works, I thank you in advance.

    
asked by Kattyleja Jaramillo 18.03.2018 в 01:26
source

1 answer

0

You should use a javascript event. I think something like this will help you.

link

    
answered by 18.03.2018 в 08:13