Đang Thực Hiện

include asp page in aspx

I have aspx pages I'm trying to protect from unauthorized users. I have a script which uses asp pages to manage my authorized users. It protects pages with [url removed, login to view] so an include is to be used such as

When I do this I get this:

Compiler Error Message: BC30689: Statement cannot appear outside of a method body.

Source Error:

Line 3:

Line 4:

Line 5: IF Session("MM_Username") "" then

The [url removed, login to view] is attached. The security process work fine on asp pages, I only have the problem with aspx pages.

How should I configure this to make it work? The aspx is written in C#. As you can see the asp is in VB.

Thanks for reading the project!

This was cut off from above:

I have aspx pages I'm trying to protect from unauthorized users. I have a script which uses asp pages to manage my authorized users. It protects pages with security.asp so an include is to be used such as: ()

I've tried twice to put a standard include line but it won't take it, let me try this way: #include file="security.asp

When I try to include the security.asp I get the compilation error listed above.

Kỹ năng: .NET, ASP, Visual Basic

Xem thêm: aspx include, aspx include asp, include asp aspx, bc30689 statement appear outside method body, include aspx, statement appear outside method body, include asp page aspx page, include asp page aspx, include aspx asp, aspx include page, include asp, asp include page, include aspx page, asp include, include page aspx, error bc30689 statement appear outside method body, aspx include aspx, statement appear outside, bc30689, asp include aspx, asp statement appear outside method body, asp include asp, include html aspx, aspx include file, include asp file aspx

Về Bên Thuê:
( 13 nhận xét ) Lincoln, United States

Mã Dự Án: #47960

Đã trao cho:

itsabidhere

see personal message board

$30 USD trong 1 ngày
(1 Đánh Giá)
1.0

5 freelancer đang chào giá trung bình $65 cho công việc này

omsoftware

Hello , Please check PMB for more details. Thankx

$50 USD trong 0 ngày
(25 Đánh Giá)
6.9
solutions2006

Please check PMB..

$65 USD trong 2 ngày
(1 Đánh Giá)
1.0
ernestbpo

We are a software company backed with years of experience and the right expertise to handle all your requirements. With an in-house team of some of the best skilled hands, we assure you of quality work on time, every s Thêm

$80 USD trong 7 ngày
(0 Đánh Giá)
0.0
hiensys

Dear Sir Hiensys IT Consulting is an emerging global technology services company delivering business solutions to its clients. We deliver the full range of application outsourcing, business process outsourcing, con Thêm

$100 USD trong 15 ngày
(0 Đánh Giá)
0.0