|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
problem with Redirect function
I am trying to use the resopnse.redirect function but I'm having a hard time.
I write "response.redirect URL" in the body of the asp page, and an error is recived: " Response object error 'ASP 0156 : 80004005' Header Error /tests/dbr/wr2.asp, line 31 The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content. " If I put the redirect statment before the html tag it works, but I need it to execute after I do somethings in the body. any ideas? P.S Does anybody know if I can get a list of the tables in a database after I opend a ADO connection? If its posible, than how? |
|
#2
|
|||
|
|||
|
At the top of your asp page put
Code:
<% response.buffer = true %> This will buffer the html output until the asp side code completes or you do an explicit response.flush |
|
#3
|
|||
|
|||
|
OK, thanks, that worked.
But I realy wanted to know if their is a property in an ADO connection or anything else that enables to access a table in the database without knowing the table name, is their a collection that includes the names of the tables that are in the database? thanks anyway, ben. |
|
#4
|
|||
|
|||
|
SQL Server supports the ANSI INFORMATION_SCHEMA to query the db structure. I think I read somewhere that INFORMATION_SCHEMA will work with an Access 2000 DB and ADO.
SELECT * FROM INFORMATION_SCHEMA.Tables |
|
#5
|
|||
|
|||
|
wow, if only i knew this sooner.
![]() |
|
#6
|
|||
|
|||
|
thanks,
Do you where I can find information on the INFORMATION_SCHEMA? to learn how to use it... P.S. is the INFORMATION_SCHEMA availble in asp or only asp.net? Last edited by benseri : July 19th, 2003 at 12:27 PM. |
|
#7
|
|||
|
|||
|
The information_schema is built in to ms sql server. I'm pretty sure it's available with an access DB via OLEDB.
http://www.ocelot.ca/is.htm tells a bit more about information_schema. It's a database thing, not specific to asp/NET/php or any other language. DBMS's either do or don't provide the information_schema data. |
|
#8
|
|||
|
|||
|
what's DBMS?
|
|
#9
|
|||
|
|||
|
OK, I didn't understand any of the tutorials i read on information_schema, and neither understod the tutorials on DBMS, but I found something that could be it,
Is the OpenSchema method in an ADO connection is the INFORMATION_SCHEMA? I'm trying to work with it, but is it what you ment? Last edited by benseri : July 20th, 2003 at 04:44 PM. |
|
#10
|
|||
|
|||
|
Nevermind, I did it, Thanks anyway........
Last edited by benseri : July 20th, 2003 at 05:57 PM. |
|
#11
|
|||
|
|||
|
DBMS = DataBase Management System
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > problem with Redirect function |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|