Damn ASCII art....should be: > +----------------------------+ > | Your Actual Page Type | > +----------------------------+ > | +----------------------+ | > | | System.Web.UI.Page | | -In System.Web.dll > | +----------------------+ | > | | | > | +----------------------+ | > | | YourCodeBehindClass | | -In your codebehind file > | +----------------------+ | > | | | > | +----------------------+ | > | | YourAspxPage | | -In your .aspx file > | +----------------------+ | > +----------------------------+
> -----Original Message----- > From: Murphy, James [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 25, 2002 11:22 AM > To: [EMAIL PROTECTED] > Subject: Re: [DOTNET] ASP.NET Problem > > > I'd spend a little time at [1] going through the ASP.NET tutorials. > > You need an .aspx file that contains an html "template" to > return. This > page can incorporate a code behind page and will derive from > it. The class > in the code behind page needs to inherit from > System.Web.UI.Page. The aspx > page does NOT go in the \bin directory but the assembly (dll) > that the code > behind is in does. This can be a little confusing until you > understand the > Page object model. > > +----------------------------+ > | You Actual Page Type | > +----------------------------+ > | +----------------------+ | > | | System.Web.UI.Page | | -In your .aspx file > | +----------------------+ | > | | | > | +----------------------+ | > | | YourCodeBehindClass | | -In your codebehind file > | +----------------------+ | > | | | > | +----------------------+ | > | | YourAspxPage | | -In System.Web.dll > | +----------------------+ | > +----------------------------+ > > 1. ASPTest.aspx file is in the virtual directory and will be > compile on > demand by the ASP.NET runtime. > > 2. The code behind class is in ASPTest.dll located in the > /bin directory. > It must be compiled ahead of time. > > Good Luck, > Jim > > > [1] http://www.gotdotnet.com > > > > -----Original Message----- > > From: Dinesh Upare [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, June 25, 2002 11:34 AM > > To: [EMAIL PROTECTED] > > Subject: [DOTNET] ASP.NET Problem > > > > > > I created a .NET component. > > > > I tried to use this component in .aspx page. > > > > But somehow the runtime is not able to find the Namespace I created. > > > > I created a bin directory in the virtual directory and put > > the .aspx file. > > > > I also tried to create a web.config file with add assembly element, > > > > but still the assembly is not loaded. > > > > Can somebody help me out to deploy a aspx application in IIS > > using .NET component.I would > > love if someone specifies it with the code. > > > > ***************** .NET Compoennt ASPTest2.dll ******************** > > > > Imports System > > > > Imports System.Text > > > > Imports Microsoft.VisualBasic > > > > Imports System.Reflection > > > > > > > > Namespace ASPTest2 > > > > Public Class HelloObjVB > > > > Private _name As String > > > > Public Sub New() > > > > MyBase.New() > > > > _name = "" > > > > End Sub > > > > Public Property FirstName() As String > > > > Get > > > > Return _name > > > > End Get > > > > Set(ByVal Value As String) > > > > _name = Value > > > > End Set > > > > End Property > > > > Public Function SayHello() As String > > > > Dim SB As StringBuilder > > > > SB = New StringBuilder("Hello ") > > > > If Not (_name = "") Then > > > > SB.Append(_name) > > > > Else > > > > SB.Append("World") > > > > End If > > > > SB.Append("!") > > > > Return SB.ToString() > > > > End Function > > > > End Class > > > > End Namespace > > > > > > > > > > Thanks > > > > Dinesh > > > > You can read messages from the DOTNET archive, unsubscribe > > from DOTNET, or > > subscribe to other DevelopMentor lists at http://discuss.develop.com. > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.