Click here to Skip to main content
11,429,154 members (54,012 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
I have designed and developed the screen but on clicking any button page is blinking just like refreshing a page.
Posted 19-Nov-12 19:08pm
Ram4242K
Comments
Krunal R at 20-Nov-12 0:09am
   
Show us your code...
aspnet_regiis -i at 20-Nov-12 6:52am
   
Is your 3 tier issue resolved now?
Krunal R at 20-Nov-12 6:54am
   
ya it solved :) Thanks mate ..
Krunal R at 20-Nov-12 6:57am
   
I did it myself then.. :) anyway thanks for all of your help..
Ramanjaneya002 at 20-Nov-12 7:01am
   
Hey did you got the solution for this problem
if yes please explain me how?
Krunal R at 20-Nov-12 7:04am
   
If I'm not mistaken then are you asking about that 3 tier and Stored Procedure question ??
Ramanjaneya002 at 20-Nov-12 7:09am
   
I am asking about page blicking
Krunal R at 20-Nov-12 7:11am
   
No we were talking about my problem..
Ramanjaneya002 at 29-Jun-13 4:14am
   
If it is ur problem then don't discuss in my question man it's manners,
I think you don't know how to proceed.
Ramanjaneya002 at 20-Nov-12 0:12am
   
I have 2000+ lines of code available for this screen, which code do u want?
Neelam Chandra (8015059) at 20-Nov-12 0:31am
   
have u used updatepanel in your web page? if not then use updatepanel it will cause partial post back and will prevent your entire page's postback.
aspnet_regiis -i at 20-Nov-12 6:51am
   
So your guess is that this is a Webforms question ??
Neelam Chandra (8015059) at 21-Nov-12 1:26am
   
Yes i thought it is webform question.
Ramanjaneya002 at 20-Nov-12 0:35am
   
Actually I have completed my screen total functionality but I didn't used any update panel in my screen.
is there any other solution for this problem.
aspnet_regiis -i at 20-Nov-12 6:45am
   
Winforms or Webforms ? Really a bad question.. I am feeling like I should disappear...
Marcus Kramer at 21-Nov-12 10:23am
   
:Sigh:... :)
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi, I think that the problem could be avoided by using a background worker thread.

BackgroundWorker Threads and Supporting Cancel[^]

This would leave the UI on its original thread and all the work would be done in the background, that way the UI wont hang or be unresponsive.

Also, make sure you don't have any recursive calls to your constructor, because if it causes the form to close and then reopen, this could cause that issue also.
  Permalink  
Comments
aspnet_regiis -i at 20-Nov-12 6:50am
   
So your guess is that this is a Winforms question ??
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

You can either minimize the page, or change focus to different page.
Hope this can help.

private void button1_Click(object sender, EventArgs e)
      {
          this.WindowState = FormWindowState.Minimized;
      }
 
private void button2_Click(object sender, EventArgs e)
        {
            Form2 f = new Form2();
            this.Hide();
            f.Show();
        }
 

  Permalink  
v2
Comments
aspnet_regiis -i at 20-Nov-12 6:51am
   
So your guess is that this is a Winforms question ??

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



Advertise | Privacy | Mobile
Web02 | 2.8.150428.2 | Last Updated 20 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100