ASP.Net Problem with View Control

Posted by tking on Stack Overflow See other posts from Stack Overflow or by tking
Published on 2010-04-21T18:28:15Z Indexed on 2010/04/21 18:33 UTC
Read the original article Hit count: 198

Filed under:
|
|

I admit, I'm an .NET n00b. Basically what I'm trying to do is I have a page with a text box on it and an image button. On click of the image button I want it to show a view control I have set up. Inside this view control is an image and some text. So this is what I have in my code-behind.

protected void btnSubmit_Click(object sender, ImageClickEventArgs e) { string email = txtUnsubscribe.Text; vwSuccess.Visible = true; }

Simple right? Well when I click on the button for submit, I get the "Object reference not set to an instance of an object." error message. Where am I going wrong?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#