This project is read-only.


doesnt work with colorpicker


dear sir,
When we have the color picker from ajaxtoolkit on the same page
the click + postback + messagebox scenerio doesnt work.
If I remove the colorpicker it works.
Any solution?
Thank you in advance,


pechovicp wrote Nov 15, 2009 at 4:55 PM

Hi Prasad,

thank you for interest.

I tried it and it works well.

<pre> &lt;html xmlns="" &gt; &lt;head runat="server"&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;form id="form1" runat="server"&gt; &lt;asp:ScriptManager runat="server" ID="sManager"&gt; &lt;/asp:ScriptManager&gt; &lt;div&gt; &lt;asp:TextBox runat="server" ID="txtColor"&gt; &lt;/asp:TextBox&gt; &lt;act:ColorPickerExtender runat="server" TargetControlID="txtColor" /&gt; &lt;br /&gt; &lt;asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" /&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </pre> C#:
<pre> public partial class ColorPickerTest : BoxContextPage { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { MessageBox.Show("Hello world.", DotNetSources.Web.UI.Buttons.Popup.Icon.Info); } } </pre>

wrote Nov 20, 2009 at 8:10 PM

Issue solved. See comment.

wrote Feb 13, 2013 at 2:47 AM

wrote May 15, 2013 at 3:49 AM

wrote May 15, 2013 at 3:49 AM

wrote Jun 11, 2013 at 1:31 AM

IvyMiller wrote Sep 26, 2014 at 4:41 AM

I've had the same issue, and thanks for your explanation. I also found other color picker guide online though, if you can improve yours this way, then it would be even better! Anyway, thanks for providing this cool solution!