Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old February 17th, 2005, 05:19 AM
asptips asptips is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: asian
Posts: 389 asptips User rank is Sergeant (500 - 2000 Reputation Level)asptips User rank is Sergeant (500 - 2000 Reputation Level)asptips User rank is Sergeant (500 - 2000 Reputation Level)asptips User rank is Sergeant (500 - 2000 Reputation Level)asptips User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 1 h 45 m 12 sec
Reputation Power: 16
Picture Perfect Upload ... HELP!

i have just uploaded a picture in access but it overlook my page when i tried to view it.

ive tried this code and this page surely corrupt it!
i mean it covers the whole page with the picture i want when i use this code:

Code:
 ''''''''''''''''''''''''''''''''''
 ''''''''''''''''''''''''''''''''''
 <%
  
  
 dim ID
 id=Request.QueryString("ID")
  
 set rs=conn.execute("Select * from files where ID=" & ID & "")
  
 Response.ContentType=rs("Content Type")
 Response.BinaryWrite(rs("File Data"))
 %>
  
 <html>
 <table border="1" width="100%">
 <tr>
 <td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?
 <td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?
 <td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?
 </tr>
 <tr>[img]%22[/img]:( ">
 <td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?
 <td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?
 <td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?
 </tr>
 </table>
 </html>
 ''''''''''''''''''''''''''''''''''
 ''''''''''''''''''''''''''''''''''


thank you NOFRIENDS on replying to my thread! (I NEED THAT CHECKBOX HELP! and NUMBER OF RECORDS! NEED HELP)

Last edited by Shadow Wizard : February 19th, 2005 at 02:40 PM. Reason: added code tags around code - please do it yourself next.

Reply With Quote
  #2  
Old February 17th, 2005, 05:51 AM
nofriends's Avatar
nofriends nofriends is offline
Senior Water Wizard
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Aug 2004
Location: Cape Town, RSA
Posts: 10,186 nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)nofriends User rank is Brigadier General (60000 - 70000 Reputation Level)  Folding Points: 106757 Folding Title: Super Ultimate Folder - Level 1Folding Points: 106757 Folding Title: Super Ultimate Folder - Level 1Folding Points: 106757 Folding Title: Super Ultimate Folder - Level 1Folding Points: 106757 Folding Title: Super Ultimate Folder - Level 1Folding Points: 106757 Folding Title: Super Ultimate Folder - Level 1Folding Points: 106757 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 3 Months 2 Weeks 2 Days 7 h 36 m 24 sec
Reputation Power: 699
Hi,

use a seperate page, to show pics, then I can choose the size of the pic.

Code:
 <%
 dim ID
 strID=Request.QueryString("ID")
 %>
 
 <html>
 <table border="1" width="100%">
 <tr>
 <td width="33%"><img src="show_image.asp?ID=<%=strID%>" width="90" height="140"></td>
 <td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?</td>
 <td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?</td>
 </tr>
 <tr><img src=" i want my preferred picture in here but i dont know how to ">
 <td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?</td>
 <td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?</td>
 <td width="33%">this text wasn't seen!!! why? it covers the whole page with picture, wheres this table gone?</td>
 </tr>
 </table>
 </html>
 
 -------------
 show_image.asp
 
 <%
 ID = Request.QueryString("ID")
 set rs=conn.execute("Select * from files where ID=" & ID & "")
 
 Response.ContentType=rs("Content Type")
 Response.BinaryWrite(rs("File Data"))
 %>
 


hope this helps
__________________
Look! Its a ShemZilla



Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > Picture Perfect Upload ... HELP!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT