Click here to Skip to main content
13,357,380 members (80,313 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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
Krunal R 20-Nov-12 0:09am
Show us your code...
Ramanjaneya002 20-Nov-12 0:12am
I have 2000+ lines of code available for this screen, which code do u want?
Neelam Chandra (8015059) 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.
Ramanjaneya002 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 20-Nov-12 6:45am
Winforms or Webforms ? Really a bad question.. I am feeling like I should disappear...
aspnet_regiis -i 20-Nov-12 6:51am
So your guess is that this is a Webforms question ??
aspnet_regiis -i 20-Nov-12 6:52am
Is your 3 tier issue resolved now?
Krunal R 20-Nov-12 6:54am
ya it solved :) Thanks mate ..
Krunal R 20-Nov-12 6:57am
I did it myself then.. :) anyway thanks for all of your help..
Ramanjaneya002 20-Nov-12 7:01am
Hey did you got the solution for this problem
if yes please explain me how?
Krunal R 20-Nov-12 7:04am
If I'm not mistaken then are you asking about that 3 tier and Stored Procedure question ??
Ramanjaneya002 20-Nov-12 7:09am
I am asking about page blicking
Krunal R 20-Nov-12 7:11am
No we were talking about my problem..
Neelam Chandra (8015059) 21-Nov-12 1:26am
Yes i thought it is webform question.
Marcus Kramer 21-Nov-12 10:23am
:Sigh:... :)
Ramanjaneya002 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.
Rate this: bad
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.
aspnet_regiis -i 20-Nov-12 6:50am
So your guess is that this is a Winforms question ??
Rate this: bad
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();
aspnet_regiis -i 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web01 | 2.8.180111.1 | Last Updated 20 Nov 2012
Copyright © CodeProject, 1999-2018
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