Click here to Skip to main content
15,892,005 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionQuestion about writing a conditional SQL statement Pin
James Shao15-Dec-09 4:28
James Shao15-Dec-09 4:28 
AnswerRe: Question about writing a conditional SQL statement [modified] Pin
dan!sh 15-Dec-09 5:00
professional dan!sh 15-Dec-09 5:00 
GeneralRe: Question about writing a conditional SQL statement Pin
James Shao15-Dec-09 12:43
James Shao15-Dec-09 12:43 
GeneralRe: Question about writing a conditional SQL statement Pin
James Shao15-Dec-09 15:50
James Shao15-Dec-09 15:50 
GeneralRe: Question about writing a conditional SQL statement Pin
dan!sh 15-Dec-09 17:06
professional dan!sh 15-Dec-09 17:06 
QuestionXPATH problem Pin
Rohit16db15-Dec-09 3:22
Rohit16db15-Dec-09 3:22 
AnswerRe: XPATH problem Pin
Abhishek Sur15-Dec-09 10:30
professionalAbhishek Sur15-Dec-09 10:30 
QuestionPage updating Pin
#realJSOP15-Dec-09 0:59
mve#realJSOP15-Dec-09 0:59 
I have some controls (placeholders) that I'm trying hide/show, and a button that I want to enable/disable when the button is clicked, but none of that stuff is happening. What am I not doing?

I'm doing this (both panels are hidden by default, and the button is enabled by default:


protected void buttonRetrieveData_OnClick(object sender, EventArgs e)
{
    // this stuff is NOT happening   <----------
    this.WaitPanel.Visible = true;
    this.OutputPanel.Visible = false;
    this.buttonRetrieveData.Enabled = false;
    try
    {
        blah blah blah...
    }
    catch (Exception ex)
    {
        if (ex != null) { }
    }
    finally
    {
        // this stuff IS happening - WTF?! <--------------
        this.WaitPanel.Visible = false;
        this.OutputPanel.Visible = true;
        this.buttonRetrieveData.Enabled = true;
    }
}


.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

AnswerRe: Page updating Pin
Eduard Keilholz15-Dec-09 1:08
Eduard Keilholz15-Dec-09 1:08 
GeneralRe: Page updating Pin
#realJSOP15-Dec-09 3:14
mve#realJSOP15-Dec-09 3:14 
AnswerRe: Page updating Pin
dan!sh 15-Dec-09 1:27
professional dan!sh 15-Dec-09 1:27 
GeneralRe: Page updating Pin
#realJSOP15-Dec-09 3:10
mve#realJSOP15-Dec-09 3:10 
GeneralRe: Page updating Pin
dan!sh 15-Dec-09 3:28
professional dan!sh 15-Dec-09 3:28 
GeneralRe: Page updating Pin
#realJSOP15-Dec-09 3:42
mve#realJSOP15-Dec-09 3:42 
GeneralRe: Page updating Pin
dan!sh 15-Dec-09 4:54
professional dan!sh 15-Dec-09 4:54 
GeneralRe: Page updating Pin
#realJSOP15-Dec-09 3:45
mve#realJSOP15-Dec-09 3:45 
GeneralRe: Page updating Pin
dan!sh 15-Dec-09 4:53
professional dan!sh 15-Dec-09 4:53 
GeneralRe: Page updating Pin
#realJSOP15-Dec-09 5:07
mve#realJSOP15-Dec-09 5:07 
GeneralRe: Page updating Pin
dan!sh 15-Dec-09 5:14
professional dan!sh 15-Dec-09 5:14 
GeneralRe: Page updating Pin
Abhishek Sur15-Dec-09 4:23
professionalAbhishek Sur15-Dec-09 4:23 
GeneralRe: Page updating Pin
Nitin S15-Dec-09 4:26
professionalNitin S15-Dec-09 4:26 
GeneralRe: Page updating Pin
#realJSOP15-Dec-09 5:49
mve#realJSOP15-Dec-09 5:49 
AnswerRe: Page updating Pin
Dinesh Mani15-Dec-09 1:32
Dinesh Mani15-Dec-09 1:32 
GeneralRe: Page updating Pin
#realJSOP15-Dec-09 3:12
mve#realJSOP15-Dec-09 3:12 
GeneralRe: Page updating Pin
Dinesh Mani15-Dec-09 3:18
Dinesh Mani15-Dec-09 3:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.