Click here to Skip to main content
15,921,697 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: VS.NET Classview issue Pin
Travis D. Mathison9-Mar-02 9:45
Travis D. Mathison9-Mar-02 9:45 
GeneralRe: VS.NET Classview issue Pin
Rick Crone14-Mar-02 9:25
Rick Crone14-Mar-02 9:25 
GeneralRe: VS.NET Classview issue Pin
Travis D. Mathison14-Mar-02 9:34
Travis D. Mathison14-Mar-02 9:34 
GeneralRe: VS.NET Classview issue Pin
Rick Crone14-Mar-02 9:42
Rick Crone14-Mar-02 9:42 
GeneralRe: VS.NET Classview issue Pin
Travis D. Mathison14-Mar-02 9:47
Travis D. Mathison14-Mar-02 9:47 
GeneralRe: VS.NET Classview issue Pin
dazinith13-Mar-02 6:40
dazinith13-Mar-02 6:40 
GeneralRe: VS.NET Classview issue Pin
Travis D. Mathison13-Mar-02 6:48
Travis D. Mathison13-Mar-02 6:48 
GeneralUser Control Pin
flashgordonmjg5-Mar-02 14:51
flashgordonmjg5-Mar-02 14:51 
User Controls:

I have created a user control, simple datagrid, using code-behind. In my .ascx file, I used <%@ Control Language="c#"

CodeBehind="RealEstateSummary.ascx.cs" AutoEventWireup="false" Inherits="ETECH.RealEstateSummary" %>
and in the .cs I inherited from the UserControl Class using the Namespace ETECH.
Ok...I then created a simple .aspx file that contains the following:<%@ Register Tagprefix="MYETECH" Namespace="ETECH"

Assembly="ETECH" %>. I don't want to use the SRC attribute. My goal is to "use" it from the ETECH.DLL and not the SRC. Upon

execution I get the following message. I know the compiler found the control but I don't understand why it won't create the object

to use in my .aspx page. Can anyone help me? The reason for using .dll is so that other "projects" can use the .DLL by using

reference thus using the control without supplying the code.

...Sorry for the stupid question!

Thanks

Mark



Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more

information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location

of the exception can be identified using the exception stack trace below.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
ETECH.RealEstateSummary.InitializeComponent() in c:\documents and settings\mark gordon\my documents\visual studio

projects\hussey\etechprop\realestatesummary.ascx.cs:146
ETECH.RealEstateSummary.OnInit(EventArgs e) in c:\documents and settings\mark gordon\my documents\visual studio

projects\hussey\etechprop\realestatesummary.ascx.cs:136
System.Web.UI.Control.InitRecursive(Control namingContainer) +235
System.Web.UI.Control.InitRecursive(Control namingContainer) +179
System.Web.UI.Control.InitRecursive(Control namingContainer) +179
System.Web.UI.Page.ProcessRequestMain() +171
GeneralRe: User Control Pin
James T. Johnson5-Mar-02 15:54
James T. Johnson5-Mar-02 15:54 
GeneralUsing System.Web.Mail Pin
Kristjan4-Mar-02 22:37
Kristjan4-Mar-02 22:37 
GeneralRe: Using System.Web.Mail Pin
Kristjan4-Mar-02 23:45
Kristjan4-Mar-02 23:45 
QuestionVS.NET ClassWizard? Pin
Travis D. Mathison4-Mar-02 14:26
Travis D. Mathison4-Mar-02 14:26 
AnswerRe: VS.NET ClassWizard? Pin
Mazdak5-Mar-02 0:42
Mazdak5-Mar-02 0:42 
GeneralRe: VS.NET ClassWizard? Pin
Travis D. Mathison5-Mar-02 3:25
Travis D. Mathison5-Mar-02 3:25 
GeneralRe: VS.NET ClassWizard? Pin
Mazdak5-Mar-02 4:19
Mazdak5-Mar-02 4:19 
GeneralRe: VS.NET ClassWizard? Pin
Travis D. Mathison5-Mar-02 4:21
Travis D. Mathison5-Mar-02 4:21 
GeneralRe: VS.NET ClassWizard? Pin
Chandram5-Mar-02 21:26
Chandram5-Mar-02 21:26 
GeneralRe: VS.NET ClassWizard? Pin
Kevin McFarlane26-Mar-02 8:28
Kevin McFarlane26-Mar-02 8:28 
GeneralEfficiency issues from VC++6.0 to VC++.NET Pin
myenigmaself4-Mar-02 9:51
myenigmaself4-Mar-02 9:51 
GeneralRe: Efficiency issues from VC++6.0 to VC++.NET Pin
Rick Crone14-Mar-02 9:29
Rick Crone14-Mar-02 9:29 
GeneralRe: Efficiency issues from VC++6.0 to VC++.NET Pin
16-Mar-02 6:54
suss16-Mar-02 6:54 
GeneralNeed help serializing object in c++ Pin
HJB4173-Mar-02 16:16
HJB4173-Mar-02 16:16 
QuestionHow much of .NET is .NET ? Pin
1-Mar-02 16:41
suss1-Mar-02 16:41 
AnswerRe: How much of .NET is .NET ? Pin
James T. Johnson1-Mar-02 18:13
James T. Johnson1-Mar-02 18:13 
AnswerRe: How much of .NET is .NET ? Pin
Daniel 'Tak' M.9-Mar-02 9:47
Daniel 'Tak' M.9-Mar-02 9:47 

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.