Link to home
Create AccountLog in
Avatar of Edward Harford
Edward Harford

asked on

Why doesnt page react to visible set to True?

Confirmation on aspx page of 'message sent' works in an older Solution but not in a new. I have an asp:Label ID="msgSent" on a Page with Visible set to 'false' with a Text of 'Message Sent'.

I run Stored Proc which executes and updates data and after 'Try' shows Text on page 'Message Sent'

                Try

                    invComm.ExecuteNonQuery()

                   Me.msgSent.Text = "Message sent..."    (Visible set to False)

                Catch

                    Err.GetException.ToString()

                    Me.msgSent.Text = "Message was NOT sent..."

                Finally

                    Me.msgSent.Visible = True

                End Try


Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

ajax?

any javascript errors?

do you have the label as runat="server"?

Avatar of Edward Harford
Edward Harford

ASKER

I am using vb.net and I do have the label as runat="server".
Can you paste the relevant front end code?  

Is the control wrapped in an update panel?
ASKER CERTIFIED SOLUTION
Avatar of Edward Harford
Edward Harford

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account