Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

??Response.write/Response.end implementation

Status
Not open for further replies.

pabby

IS-IT--Management
Jan 5, 2004
47
GB
HI,

How do I implement response.write/response.end pairs to look at debugging a problem? Where in the code do you put it - can anyone provide sample code to illustrate?

thanks,

Paul
 
Code:
<%
strConn = "your connection string here"

Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open strConn

strSQL = "SELECT field1, field2 FROM mytable WHERE id='" & Request.QueryString("id") & "'"

[red]Response.Write strSQL
Response.End[/red]

Set objRS = objConn.Execute(strSQL)
%>
This will Response.Write your SQL statement then do a Response.End before it gets a chance to Execute the SQL statement

Tony
[red]_________________________________________________________________[/red]
Webmaster -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top