473,591 Members | 2,842 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AspEnableParent Paths and Design Time Controls

I have created my site in the root (www.mysite.com) and have recently
added a directory called test (www.mysite.com/test/). The environment
setup is:

Server: Windows 2000 Server SP4
Development Machine: Windows 2000 Professional SP4
Development Software: Visual Interdev 6.0 SP5

When I drag DTC's onto a page in the new directory, I am propmted to
add the Scripting Object Model. Which according to the following
article, you have to say yes to:

PRB: Visual InterDev 6.0 Design-Time Controls Require Client-Side
Script
http://support.microsoft.com/default...b;en-us;221928

By selecting yes, the following code on gets placed onto the page

<% ' VI 6.0 Scripting Object Model Enabled %>
<!--#include file="../_ScriptLibrary/pm.asp"-->
<% if StartPageProces sing() Then Response.End() %>
<FORM name=thisForm METHOD=post>

Note the "../" before "_ScriptLib rary/pm.asp", this is obviously
placed there because the "_ScriptLib rary/pm.asp" is located in the
root of the project. This code cannot be modified through Interdev,
thus negating the resolution in the following article:

Err Msg: Active Server Pages, ASP 0131 Disallowed Parent Path
http://support.microsoft.com/default...b;en-us;226474

It can however be manually edited in notepad (which does work), but
this could prove to be quite tedious.

The alternative solution is NOT an option, as our servers must matain
a strict level of security. Note the security articles published by
Microsoft:

Secure Internet Information Services 5 Checklist
http://www.microsoft.com/technet/tre...ps/iis5chk.asp

Suggests Disable Parent Paths
The Parent Paths option allows you to use ".." in calls to functions
such as MapPath. By default, this option is enabled, and you should
disable it.

AND

AspEnableParent Paths MetaBase Property Should Be Set To False
http://support.microsoft.com/default...b;en-us;184717

Reiterates the first or vice versa.

What I would like to know is if there is a method, other than manual
method, whereby I drag the DTC onto my page and the following code is
automattically placed on my page:

<% ' VI 6.0 Scripting Object Model Enabled %>
<!--#include virtual="/_ScriptLibrary/pm.asp"-->
<% if StartPageProces sing() Then Response.End() %>
<FORM name=thisForm METHOD=post>

Any help would be much appreciated!
Jul 19 '05 #1
3 3680
Design-time controls are evil. Avoid them at all costs.

"Scott" <sc************ ***@hotmail.com > wrote in message
news:2f******** *************** ***@posting.goo gle.com...
I have created my site in the root (www.mysite.com) and have recently
added a directory called test (www.mysite.com/test/). The environment
setup is:

Server: Windows 2000 Server SP4
Development Machine: Windows 2000 Professional SP4
Development Software: Visual Interdev 6.0 SP5

When I drag DTC's onto a page in the new directory, I am propmted to
add the Scripting Object Model. Which according to the following
article, you have to say yes to:

PRB: Visual InterDev 6.0 Design-Time Controls Require Client-Side
Script
http://support.microsoft.com/default...b;en-us;221928

By selecting yes, the following code on gets placed onto the page

<% ' VI 6.0 Scripting Object Model Enabled %>
<!--#include file="../_ScriptLibrary/pm.asp"-->
<% if StartPageProces sing() Then Response.End() %>
<FORM name=thisForm METHOD=post>

Note the "../" before "_ScriptLib rary/pm.asp", this is obviously
placed there because the "_ScriptLib rary/pm.asp" is located in the
root of the project. This code cannot be modified through Interdev,
thus negating the resolution in the following article:

Err Msg: Active Server Pages, ASP 0131 Disallowed Parent Path
http://support.microsoft.com/default...b;en-us;226474

It can however be manually edited in notepad (which does work), but
this could prove to be quite tedious.

The alternative solution is NOT an option, as our servers must matain
a strict level of security. Note the security articles published by
Microsoft:

Secure Internet Information Services 5 Checklist
http://www.microsoft.com/technet/tre...ps/iis5chk.asp
Suggests Disable Parent Paths
The Parent Paths option allows you to use ".." in calls to functions
such as MapPath. By default, this option is enabled, and you should
disable it.

AND

AspEnableParent Paths MetaBase Property Should Be Set To False
http://support.microsoft.com/default...b;en-us;184717

Reiterates the first or vice versa.

What I would like to know is if there is a method, other than manual
method, whereby I drag the DTC onto my page and the following code is
automattically placed on my page:

<% ' VI 6.0 Scripting Object Model Enabled %>
<!--#include virtual="/_ScriptLibrary/pm.asp"-->
<% if StartPageProces sing() Then Response.End() %>
<FORM name=thisForm METHOD=post>

Any help would be much appreciated!

Jul 19 '05 #2
Took your advice and I have rewritten an entire site using VB for SQL
interaction Server-Side and Java Script for Client-Side. This has
proved to be a very educational exercise, as well as a wake up call to
how sloppy my code was before.

Now my site functions on most platforms. Whereas, before my site was
pretty much IE 5 or greater compliant ONLY.
Jul 19 '05 #3
You definitely did the right thing. You'll probably also notice your app
runs much faster than with DTCs. I found so many major problems with DTC's
years ago when I was first learning ASP that I forced myself to hand-code
everything too (still using Interdev).

"Scott" <sc************ ***@hotmail.com > wrote in message
news:2f******** *************** ***@posting.goo gle.com...
Took your advice and I have rewritten an entire site using VB for SQL
interaction Server-Side and Java Script for Client-Side. This has
proved to be a very educational exercise, as well as a wake up call to
how sloppy my code was before.

Now my site functions on most platforms. Whereas, before my site was
pretty much IE 5 or greater compliant ONLY.

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
5475
by: Matt Fielder | last post by:
I have developed a custom control to be used in my application. My application includes a form designer, so the control can be hosted while designmode for the control is either true or false, depending on whether they are using the form designer, or in "run mode". The custom control includes a slider control that is supposed to be active in our form designer (designmode=true) and inactive in our run mode (designmode=false). The problem...
0
1679
by: Jason | last post by:
What interface do I need to implement in order to get a component with a public property to show up in the data binding drop down boxes at design time in VS.net? I've tried to look just about every where I can think and I can not find the solution. The closest I can come is to implement IBindingList or IListSource to expose a list for the DataSource property on controls. This works great for controls like a list box but doesn't work...
0
2001
by: jb_in_marietta | last post by:
All, I have written a very simple custom composite control that includes a control of type System.Web.UI.WebControls.Table. The control renders fine in run time, but for some reason, it does not render properly in design time. In design time it renders something like this:
17
2686
by: tshad | last post by:
Many (if not most) have said that code-behind is best if working in teams - which does seem logical. How do you deal with the flow of the work? I have someone who is good at designing, but know nothing about ASP. He can build the design of the pages in HTML with tables, labels, textboxes etc. But then I would need to change them to ASP.net objects and write the code to make the page work (normally I do this as I go - can't do this...
7
2982
by: Shimon Sim | last post by:
I have a custom composite control I have following property
1
1308
by: PJ6 | last post by:
I have a simple container that I want to be able to use at design-time - as in, be able to drag a control into it and drop it in. I already went through of some problems in WinForms that this kind of functionality presents, so I don't exactly need it that nice - I'd be satisfied with just manually adding HTML in between the tags of the control. Just can't figure out how to get it to render what's inside its tags at the moment. TIA, Paul
14
4016
by: Jan Nielsen | last post by:
Hi In Microsoft Access it is possible to write code like this Sub test() DoCmd.OpenForm "TestForm", acDesign Dim a As Control For Each a In Forms("TestForm").Controls Do stuff Next End Sub
5
4099
by: gerry | last post by:
I am trying to create a custom container control that will only ever contain a specific type of control. At design time, when a control of a different type is added to the container I would like to wrap the control in the proper control type - which is also a container. At design time I want to be able to turn this : <my:container> <asp:textbox />
4
2450
by: Ken Fine | last post by:
I've been living with a frustrating issue with VS.NET for some months now and I need to figure out what the problem is. Hopefully someone has run into the same issue and can suggest a fix. I suspect some permissions problem. I'm running VS.NET 2008 in Vista. Symptoms and observations: * ASP.NET's native ImageMap and Image controls work just fine and provide a design-time preview of images that are referenced via the ImageUrl property *...
0
8362
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7992
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6639
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5732
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3850
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3891
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1465
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1199
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.