Click here to Skip to main content
Sign Up to vote bad
good
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 - 18:08

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

2 solutions

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 - 20 Nov '12 - 6:50
So your guess is that this is a Winforms question ??
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  
Comments
aspnet_regiis -i - 20 Nov '12 - 6:51
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
Your Filters
Interested
Ignored
     
0 OriginalGriff 211
1 Richard MacCutchan 145
2 Sergey Alexandrovich Kryukov 134
3 Tadit Dash 124
4 Santhosh G_ 120
0 Sergey Alexandrovich Kryukov 10,338
1 OriginalGriff 7,965
2 CPallini 4,201
3 Rohan Leuva 3,522
4 Maciej Los 3,159


Advertise | Privacy | Mobile
Web03 | 2.6.130523.1 | Last Updated 20 Nov 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid