• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 289
  • Last Modified:

How to link VS ASPX web designer to the code behind

Am running VS2008 and it seems my web project's files are not linked properly. I created a web ASCX page and am populating the page with controls. When I attempt to add events to the code behind (via the designer properties back-tab) the designer creates a script block. How do I link the ASCX page to its respective code-behind file? I prefer to deploy the code-behind via a complied DLL.  I am running C#.

<%@ Register assembly="DevExpress.Xpo.v8.2, Version=8.2.5.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1" namespace="DevExpress.Xpo" tagprefix="dxxpo" %>

<script runat="server">

    protected void ASPxButtonUpdateReports_Click(object sender, EventArgs e)
    {

    }
</script>
0
TimPeer
Asked:
TimPeer
1 Solution
 
TechTiger007Commented:
Seems like you have not enabled the option to place code in seperate file.

While creating the new control visual studio displays a check box "place code behind in seperate file" you have to enable it. Delete the file and create it again and enable it.
0
 
TimPeerAuthor Commented:
Does VS have the ability to check this option (in or outside) the IDE? Perhaps I can toggle it there? I am not looking forward to rebuilding the already completed page.

Thanks for you quick response to the question!!!!!

Tim
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now