Re: content pages and code behind
Scott Allen <[email protected]> Wed, 11 Jul 2007 13:50:05 -0400
| Newsgroups | gmane.comp.windows.devel.dotnet.web |
|---|---|
| Message-ID | <00c401c7c3e3$ea585b00$bf091100$@net> |
You have to be in an ASP.NET Web Application Project [1], not an ASP.NET Web Site, for the CodeBehind attribute to work. Inside an ASP.NET Web Site you need to use the CodeFile attribute to specify the "code-behind" file. [1] http://msdn2.microsoft.com/en-us/asp.net/aa336618.aspx --s > -----Original Message----- > From: Discussion of building .NET applications targeted for the Web > [mailto:[email protected]] On Behalf Of Smotritsky, Alex > Sent: Wednesday, July 11, 2007 12:10 PM > To: [email protected] > Subject: Re: [DOTNET-WEB] content pages and code behind > > How do they support codebehind then? In the content page I have a page > directive which references the master page and does not support a > Codebehind attribute. A second page directive is not allowed. And when > I > double click a button control in the content page the server side > handling method is generated in the .aspx file. > > -----Original Message----- > From: Discussion of building .NET applications targeted for the Web > [mailto:[email protected]] On Behalf Of Efran Cobisi > Sent: Wednesday, July 11, 2007 10:42 AM > To: [email protected] > Subject: Re: [DOTNET-WEB] content pages and code behind > > If you are referring to pages that contain ContentPlaceholder control > istances then afaik no, it isn't correct. > Hope this helps. > > -- > Efran Cobisi > http://www.cobisi.com > > Smotritsky, Alex wrote: > > Is it correct to say that content pages do not support code behind? > > > > > > > > > > > > > > =================================== > > This list is hosted by DevelopMentor(r) http://www.develop.com > > > > View archives and manage your subscription(s) at > http://discuss.develop.com > > > > =================================== > This list is hosted by DevelopMentor(r) http://www.develop.com > > View archives and manage your subscription(s) at > http://discuss.develop.com > > =================================== > This list is hosted by DevelopMentor. http://www.develop.com > > View archives and manage your subscription(s) at > http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com