![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Mar 2005
Posts: 139
Rep Power: 4
![]() |
Null Reference Expeption... why?
Hi All,
I have a label on my aspx page and when I try to set the .Text property of if from the code behind file I get a null reference expeption.... Code behind file for form1 catch (MySqlException mysqlx)
{//<catch>
showError show = new showError();
show.printError(mysqlx.Message.ToString(), mysqlx.StackTrace.ToString());
}//</catch>Code behind file for form2 public partial class showError : System.Web.UI.Page
{
public void printError(string error, string trace)
{
Label2.Text = "xx";
}
} |
|
|
|
|
|
#2 |
|
Professional Programmer
|
How does your aspx look like ?
__________________
Don't take life too seriously, it's not permanent ! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| avl trees final step | bl00dninja | C++ | 7 | May 11th, 2007 12:05 AM |
| AVL delete function | bl00dninja | C++ | 1 | May 4th, 2007 9:04 AM |
| avl trees again | bl00dninja | C++ | 0 | May 3rd, 2007 3:07 AM |
| My first WIN32 API application | ivan | Show Off Your Open Source Projects | 27 | Jan 6th, 2006 5:04 PM |
| airport Log program using 3D linked List : problem reading from file | gemini_shooter | C++ | 0 | Mar 2nd, 2005 4:12 PM |