Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 04-03-2006, 06:36 AM Displaying a Url
Novice Talker

Posts: 6
Trades: 0
Hello,
I use aspupload on my website to let visiters upload various things to my webserver. My question is how to I make my asp script show the url of the file they just uploaded? Server.HTMLEncode(File.Path
cryak is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-07-2006, 08:20 PM Re: Displaying a Url
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
The full path, or just the file name?

If it's the full path:

Response.Write (ASPUpload File, whatever you called your variable).Name

IIRC, it shows the full path to the file.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 04-09-2006, 08:03 AM Re: Displaying a Url
Novice Talker

Posts: 6
Trades: 0
Thank you for your response, I know how to make it display the path I.E. /D/Hosting/Bla bla. I would like it to display something like: the url to your file is http://www.mysite.com/Yourfile.file

Thank You
-Eric
cryak is offline
Reply With Quote
View Public Profile
 
Old 04-10-2006, 10:16 AM Re: Displaying a Url
ExpressoDan's Avatar
Ultra Talker

Posts: 317
Name: This Space for Rent
Location: Georgia
Trades: 0
Try
Response.Write("http://yoursite.com/image_folder/"&File.Filename)

If you want to make it clickable, then just wrap it in an a href tag.
__________________

Please login or register to view this content. Registration is FREE

"I think therefore I am, I think." <!-- George Carlin
ExpressoDan is offline
Reply With Quote
View Public Profile Visit ExpressoDan's homepage!
 
Old 04-18-2006, 05:10 PM Re: Displaying a Url
Novice Talker

Posts: 8
Trades: 0
I didnt quite understand.
Suppose my site is www.xyz.com
and there is a file abc.asp

so the URL would be
https://xyz/admin/abc.asp?EditorAction=SHIPPINGMANAGER

where SHIPPINGMANAGER is the name on the URl which is generated when i click a shipping link from the left menu items

so in the URL what do I type to get to see the file's complete coding

Do let me know how this can be done & if its so is it possible
sunita_shaw is offline
Reply With Quote
View Public Profile
 
Old 04-18-2006, 05:41 PM Re: Displaying a Url
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
what do you mean by "file's complete coding" ??
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-18-2006, 05:45 PM Re: Displaying a Url
Novice Talker

Posts: 8
Trades: 0
I mean the file should open up..I know there are ways of doing it..but I dunno know how to go about with it..I am just trying to test my site..trying ways to break it so dont get surprised or ideas that i am trying to hack into something
sunita_shaw is offline
Reply With Quote
View Public Profile
 
Old 04-18-2006, 05:49 PM Re: Displaying a Url
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
yes the file will probably open and display what the HTML code tells the browser,

are you asking about SQL injection attacks ?

are you asking about seeing the ASP code?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-18-2006, 05:54 PM Re: Displaying a Url
Novice Talker

Posts: 8
Trades: 0
If you know ways for testing both
SQL injection attacks ?
Seeing the ASP code?

Do help me ...
sunita_shaw is offline
Reply With Quote
View Public Profile
 
Old 04-18-2006, 06:02 PM Re: Displaying a Url
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Well you can't see the ASP code on .asp pages without having either FTP access or physical access to the server.

SQL Injection
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-18-2006, 06:08 PM Re: Displaying a Url
Novice Talker

Posts: 8
Trades: 0
No I dont wanna exactally see ASp code, I want ways to test those pages so that I generate Database related errors, java script errors or open up the HTML tags..ro whatever I'm not sure of...
sunita_shaw is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Displaying a Url
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31983 seconds with 12 queries