Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 22nd, 2005, 12:42 PM
Authorized User
 
Join Date: Jun 2004
Location: Aurangabad, Maharashtra, India.
Posts: 54
Thanks: 0
Thanked 1 Time in 1 Post
Default Problem with #Include Virtual

Hi there,

I am working with asp.net 1.1. In my web application I have used an include file
I used "#Include Virtual" since file is on the same server but not in same physical folder. Now the problem I am facing is, I have declared a variable in Asp.net web form and that variable I am trying to use in #Include file (.asi). Logically, it should recognize the variable but, I may be wrong.

Any solution to use a variable declared in asp.net web form in .asi include file?

Vinod Pawar
India
__________________
Vinod Pawar
United States
  #2 (permalink)  
Old December 22nd, 2005, 12:59 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Why why why are you trying to use include files?? There are far better ways of doing things than using include files.

More importantly, you should not be trying to explicitly call something on the form from helper code. Call the helper code and pass it what you need from the form instead. This is a far better practice.

-Peter


Similar Threads
Thread Thread Starter Forum Replies Last Post
virtual host problem cjp17 BOOK: Professional Search Engine Optimization with PHP: A Dev's Guide to SEO ISBN: 978-0-470-10092-9 1 May 23rd, 2009 05:25 AM
using a #include virtual="file" is slow loading jtrifts Classic ASP Basics 5 April 3rd, 2008 07:12 AM
difference between include file & include virtual crmpicco Classic ASP Basics 2 January 23rd, 2006 11:50 AM
Problem regarding the making of virtual directory CsharpHelp C# 0 October 27th, 2005 01:07 AM
Virtual Include PHP file in HTML aingalsbe PHP How-To 0 May 3rd, 2004 10:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.