Last post Apr 03, 2009 08:07 AM by utlandsfantomenno1
Apr 03, 2009 06:02 AM|utlandsfantomenno1|LINK
I can't reference old controls, like textboxes from code-behind in pages that was converted from asp.net 1.
If I drag in a new control to the page I can reference it as usual, but if I try to use the old controls already declared in the .aspx page I get a "object reference not set..." exception. Why is this and how do I make it work without deleting the old controls
and dragging in new ones and then naming them like the old ones.
The markup for the "new" and "old" controls look the same in the .aspx page, but somewhere I have to make Net understand that the "old" controls are actually in the page.
Apr 03, 2009 08:07 AM|utlandsfantomenno1|LINK
There was a namepspace wrapping the page class..taking it away solved my problems.