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>
TimPeerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.