Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a button 'Pay' and a panel 'Panel4' which reads 'Please fill completely'. This page has
some TextBox's to be compulsorily filled in by the user. If the user does not fill all TextBoxs
then on 'Pay' button click the Panel4 is made to display. Again if the user clicks the Pay button without filling all, I want this Panel4 to blink 2-3 times.

I tried with the following code programmatically but does not blink.

C#
protected void BtnPay_Click(object sender, EventArgs e)// pay button
    {
        if (Panel4.Visible == true)// for blink purpose
        {
            int v_blink = 0;
            int v_count=0;
            while (v_count < 220000)
            {
                v_blink = v_blink + 1;
                if (v_blink == 2100)
                {
                    Panel4.Visible = false;
                    v_blink = 0;
                }
                else
                {
                    Panel4.Visible = true;
            }
                v_count++;
            }
        }
Posted

1 solution

Try using JQuery FadeIn FadeOut methods

add-blinking-using-jquery-blinking[^]

Or other way using Pulse Animation

animating-panel-using-ajax-animation[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900