Ask a Question related to ASP.NET General, Design and Development.
-
Dave #1
Using SRC attribute with Visual Studio.NET
Hi,
I understand that the CodeBehind= is designed to be used
by VS and not actually part of the .NET framework
However, in my BenefitsVB project to test how the SRC
works, I created a simple aspx and codebind (below) and
added Src="WebFormSrc.aspx.vb" to the page directive.
I then tried to browse the page and got:
Parser Error Message: The base
type 'BenefitsVB.WebFormSrc' does not exist in the source
file 'WebFormSrc.aspx.vb'.
To get this to work, I had to change my inherits to
Inherits="WebFormSrc" and it ran OK. However when I
edited the code behind VS.NET put the project name back
into the Inherits attribute.
1.) Is the SRC designed to NOT be used with Visual Studio?
2.) When the SRC compiles the codebehind where does it put
the compiled version.
3.) If I want to tweak one codebehind file in VS.NET
project instead of recopiling the whole project to a
new .DLL is this possible using the SRC?
<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="WebFormSrc.aspx.vb"
Inherits="BenefitsVB.WebFormSrc" Src="WebFormSrc.aspx.vb"%>
<html>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post"
runat="server">
</form>
</body>
</html>
Public Class WebFormSrc
Inherits System.Web.UI.Page
Private Sub Page_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
Response.Write(System.DateTime.Now)
End Sub
End Class
Dave Guest
-
DW8 to Visual Studio
I would like to get my DW8 asp.NET pages to open up in Visual Studio 2003. I have some co workers that need to do some work as well..... I have... -
Visual studio?
Not that i dont like the flex ide, but i'd much rather use visual studio? has anyone found a plug in or tried to intergrade into vs.net yet? -
Security for Visual Studio.Net
I installed VS.NET 2003 on an XP/Pro Client. Also, MSDE 2000A. This configuration works fine. When I attempt to use another SQL Server on... -
Visual Studio .Net
You may need to repair your IIS mappings. To do this, run the following command: aspnet_regiis.exe -i Here's further information:... -
Visual Studio.NET and PHP
Hello, Does anyone have an idea how to integrate PHP into Visual Studio .NET 2003. Thanks, Albert Ahtenberg



Reply With Quote

