Not using Code Behind

M

Matt

Hava aspx file
ButtonTest.aspx, wiht below page directive
<%@ Page language="c#" Codebehind="ButtonTest.cs"
AutoEventWireup="false" Inherits="Actions.ButtonTest"%>

I like to access to ButtonTest.cs file do the button actions events.
not using aspx.cs. I have added a DLL project (actions)to my web
project(webproject) But i am gettin errors
like
Parser Error Message: Could not load type 'Actions.ButtonTest'.
Source Error:
Line 1: <%@ Page language="c#" Codebehind="ButtonTest.cs"
AutoEventWireup="false" Inherits="Actions.ButtonTest"%>

How can i load the cs. file to my aspx file.
src is working but i would like to use different dll.
 
M

Matt

I complile and put in
another dll already how do i referance it thouhg
Webfolder
ButtonTest.asxp
Actions
ButtonTest.cs
I have put the Actions.dll on Webfolder/bin already
How do i referance it from buttonTest.aspx
what is the syntax
 
M

Matt

I have used below, not worked
<%@ Page language="c#" Codebehind="ButtonTest.cs"
AutoEventWireup="false" Inherits="Actions.ButtonTest" %>
<%@ Page language="c#" src"ButtonTest.cs" AutoEventWireup="false"
Inherits="Actions.ButtonTest" %>
<%@ Page language="c#" AutoEventWireup="false"
Inherits="Actions.ButtonTest" %>
also i add in Actions as referance from WebFolder.

Pls help meeeeeeee i am about the lose it.
 
B

Brock Allen

If you have a compiled DLL in the bin directory then the first and third
should work. The CodeBehind directive is only used by Visual Studio and it's
ignored by ASP.NET. It's confusing, I know.

You only have one bin directory and it must be in the root if your application.


-Brock
DevelopMentor
http://staff.develop.com/ballen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top