INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS
Come Join Us!
Are you a
Computer / IT professional?
Join Tek-Tips now!
- Talk With Other Members
- Be Notified Of Responses
To Your Posts
- Keyword Search
- One-Click Access To Your
- Automated Signatures
On Your Posts
- Best Of All, It's Free!
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.
Partner With Us!
"Best Of Breed" Forums Add Stickiness To Your Site
(Download This Button Today!)
"...What a great service! This is the best site I've ever seen!!! It totally restores my faith in humanity when people take time out to help other people..."
Where in the world do Tek-Tips members come from?
Displaying TRACE data
Posted: 26 Apr 07
I Complied this tip from several places on the Internet
Add this code to the very beginning of your Page Load event...
If Request.QueryString("trace") = "true" Then
Trace.IsEnabled = True
To the end of your URL when ever you want to get TRACE information
Here is a addon to this...
If you are updating data and want to see what paremeters are being passed to your Stored procedure
Add this proc to the code behind file
Protected Sub SqlDataSource_Insert_Inserting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceCommandEventArgs) Handles SqlDataSource_Insert.Inserting
For x As Integer = 0 To e.Command.Parameters.Count - 1
This proc assumes your data source is called 'SqlDataSource_Insert' change this is it's not.
This proc combined with the '&trace=true ' from above will write out all the parameters being passed by your page to the TRACE
Back to Microsoft: ASP.NET FAQ Index
Back to Microsoft: ASP.NET Forum
Join Tek-Tips® Today!
Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.
Here's Why Members Love Tek-Tips Forums:
- Talk To Other Members
- Notification Of Responses To Questions
- Favorite Forums One Click Access
- Keyword Search Of All Posts, And More...
Register now while it's still free!
Already a member? Close this window and log in.
Join Us Close