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
How to I response write this?
Old 05-12-2006, 10:02 PM How to I response write this?
Skilled Talker

Posts: 79
Trades: 0
' execute the update
Set MM_editCmd = Server.CreateObject("ADODB.Command")
MM_editCmd.ActiveConnection = MM_editConnection
MM_editCmd.CommandText = MM_editQuery
MM_editCmd.Execute
MM_editCmd.ActiveConnection.Close
If (MM_editRedirectUrl <> "") Then
Response.Redirect(MM_editRedirectUrl)
End If
End If
End If
%>
malhyp is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-12-2006, 10:15 PM Re: How to I response write this?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
What exactly do you want to Response.Write?
__________________

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 05-12-2006, 10:15 PM Re: How to I response write this?
Skilled Talker

Posts: 79
Trades: 0
I tried this but didnt work...

Response.Write MM_editCmd.Source <-----
Response.End() <-----
malhyp is offline
Reply With Quote
View Public Profile
 
Old 05-12-2006, 10:43 PM Re: How to I response write this?
Skilled Talker

Posts: 79
Trades: 0
I am supposed to add a line to write the output of my update sql.
malhyp is offline
Reply With Quote
View Public Profile
 
Old 05-13-2006, 12:55 AM Re: How to I response write this?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Put it immediately before that block of code. As in the line right before it.
__________________

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 05-13-2006, 07:40 AM Re: How to I response write this?
ExpressoDan's Avatar
Ultra Talker

Posts: 317
Name: This Space for Rent
Location: Georgia
Trades: 0
your going to have to comment out the Response.Redirect(MM_editRedirectUrl) so that it doesn't send you somewhere else before you see the output. try this

' execute the update
Set MM_editCmd = Server.CreateObject("ADODB.Command")
MM_editCmd.ActiveConnection = MM_editConnection
MM_editCmd.CommandText = MM_editQuery
'The following line will show your SQL
Response.Write(MM_editCmd.CommandText)
MM_editCmd.Execute
MM_editCmd.ActiveConnection.Close
If (MM_editRedirectUrl <> "") Then
'Response.Redirect(MM_editRedirectUrl)
__________________

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 05-14-2006, 03:58 AM Re: How to I response write this?
Skilled Talker

Posts: 79
Trades: 0
Thanks for the replys.

Mally.
malhyp is offline
Reply With Quote
View Public Profile
 
Old 05-16-2006, 03:24 AM Re: How to I response write this?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
What Dan said. I forgot about that line.
__________________

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!
 
Reply     « Reply to How to I response write this?
 

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 1.11926 seconds with 12 queries