» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > ASP forums and Tips

ASP forums and Tips Talk about ASP Scripting. .net and Cold Fusion as well.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-13-2006, 09:42 AM
federline federline is offline
Junior Member
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
federline is on a distinguished road
Default Execute file in ASP

How to execute a file in ASP

Code

server.execute("file.asp")That executes the file file.asp.

But how do i execute file.asp?count=10

Thanks in advance. -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-13-2006, 09:44 AM
christopher christopher is offline
OSP Starters
 
Join Date: Apr 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
christopher is on a distinguished road
Default

This code should help you

strCount=10
server.execute("file.asp")
strCount=""

in file.asp dont request("count")
just write
strCount

Have fun -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  #3  
Old 08-13-2006, 09:46 AM
techguru techguru is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
techguru is on a distinguished road
Default

Hello

Server.execute doesn't work quite that way. when server.execute executes an external page, it executes it as a stand-alone page with its own set of variables. local variables assigned on the "container" page don't affect the environment of the "executed" page. but your solution is VERY close.

in fact, you can do this with one teensy modification to your suggested container page code: instead of

Code:
session("strCount")=10
server.execute("file.asp")
session("strCount")=""
This will define a session variable, which you will find will be retrieved with no problems on the executed page. FILT, this code should work great for you. jsut remember that instead of referencing it via the request("count") method on file.asp, simply call the session variable session("strCount") in its place. should work fantastic.

By the way, -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free File Storage Hosts vishnuthegreat Domains For Sale - Fixed Price/Offer 1 03-06-2007 09:31 AM
text file into textfile nirvana ASP forums and Tips 1 07-31-2006 05:57 PM
text file.... bono ASP forums and Tips 1 07-30-2006 12:47 PM
wanna execute php in a file like test.jpg. savy PHP Programming and Tips 2 06-07-2006 03:18 PM
File Permission of a File and/or Directory jim PHP Programming and Tips 1 12-08-2005 06:03 AM


All times are GMT. The time now is 05:22 PM.