This is all that shows up on my trace oddly enough.....





Trace Information


Category

Message

>From First(s)

>From Last(s)

 

 

 

 

 

 


aspx.page

Begin Init

 

 

 

 

 

 

 

 


aspx.page

End Init

0.000056

0.000056

 

 

 

 

 

 


aspx.page

Begin PreRender

0.054429

0.054373

 

 

 

 

 

 


aspx.page

End PreRender

0.054761

0.000332

 

 

 

 

 

 


aspx.page

Begin SaveViewState

0.056624

0.001863

 

 

 

 

 

 


aspx.page

End SaveViewState

0.056744

0.000120

 

 

 

 

 

 


aspx.page

Begin Render

0.056761

0.000017

 

 

 

 

 

 


aspx.page

End Render

0.060502

0.003741

 

 

 

 

 

 

 

 

-----Original Message-----
From: Charles Carroll [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 04, 2005 8:09 PM
To: [email protected]
Subject: Re: [AspNetAnyQuestionIsOk] CHecking if a returned dataset or table
is null

 

 

Trace.warn(...)

makes it red and easy to see.

 

Take a look at:

http://www.learnasp.com/experiments/tracewow/sqlclientdropdown.aspx

which is a typical trace display.

 

Look for the word 

"Trace Information"

that is the table where all the action is. It contains:

a) all your trace.write and trace.warn statements

b) notice the column labelled "From First(s)"

this amazing column shows elapsed time since the script started, so

the last number would be the exact breakdown in seconds (with many

decimal places) that the script took.

 

I ahve more I want to tell you about trace it has some great info. but

I have some errands to run tonight. More about trace later.

 

On Apr 4, 2005 6:58 PM, Mike Belcher

<[EMAIL PROTECTED]> wrote:

>  I got the trace information to display but there is a ton of information

>  that is returned. What am I looking for and how can I get the typename I
am

>  not sure were to look. Huge listing. 

>  

>  -----Original Message-----

>  From: Charles Carroll [mailto:[EMAIL PROTECTED] 

>  Sent: Monday, April 04, 2005 6:17 PM

>  To: [email protected]

>  Subject: Re: [AspNetAnyQuestionIsOk] CHecking if a returned dataset or

> table

>  is null

>  

>  

>  <%@ trace="true"%>

>  

>  or add trace="true" to <[EMAIL PROTECTED] .... %> if already there.

>  

>  You really need to read

>  http://www.learnasp.com/freebook/learn/debug1.aspx

>  http://www.learnasp.com/freebook/learn/debug2.aspx

>  Trace is your friend along with typename.

>  

>  ASP.net without trace is rough going. Trace illuminates all things and

>  times all things.

>  

>  

>  On Apr 4, 2005 5:58 PM, Mike Belcher

>  <[EMAIL PROTECTED]> wrote:

>  >  I tried that but nothing prints out. Is there a way to response.Write

> the

>  >  results?

>  >  

>  >  -----Original Message-----

>  >  From: Charles Carroll [mailto:[EMAIL PROTECTED] 

>  >  Sent: Monday, April 04, 2005 4:26 PM

>  >  To: [email protected]

>  >  Subject: Re: [AspNetAnyQuestionIsOk] CHecking if a returned dataset or

>  > table

>  >  is null

>  >  

>  >  

>  >  On Apr 4, 2005 4:12 PM, Mike Belcher

>  >  <[EMAIL PROTECTED]>

> wrote:

>  >  >  Im still confused a little. I tried the below but it Doesn't work.
It

>  is

>  >  >  probably easy for one of you masters of .Net on here. 

>  >  >  

>  >  >  

>  >  >          'Create a DataSet

>  >  > ----------------------------------------

>  >  >          Dim objDataSet As New DataSet

>  >  >          'Create a DataSet

>  >  > ----------------------------------------

>  >  >  

>  >  >          'Create a DataAdapter

>  >  > ------------------------------------

>  >  >          Dim objDataAdapter As SqlDataAdapter

>  >  >          objDataAdapter = New SqlDataAdapter(strSQLstring, objConn)

>  >  >          objDataAdapter.Fill(objDataSet, "users")

>  >  >          'Create a DataAdapter

>  >  > ------------------------------------

>  >  

>  >             trace.warn("typename of

>  > objDataSet",typename(objDataSet))

>  >    

>  >  >          If Not objDataSet.Tables.Count = 0 Then

>  >  >              Session("SQLstring") = strSQLstring

>  >  >  

>  >  >          Else

>  >  >              Session("SQLstring") = "NoRecords"

>  >  >  

>  >  >          End If

>  >  

>  >  and now you can design an IF statement or CASE based on the typename

>  >  results once you see what typename an empty dataset looks like.

>  >  

>  >  

>  >  

>  >  Yahoo! Groups Links

>  >  

>  >  

>  >  

>  >  

>  >  

>  >  

>  >  

>  >  

>  >  

>  >  

>  >  

>  >  ________________________________

>  >  Yahoo! Groups Links

>  >  

>  >  

>  > To visit your group on the web, go to:

>  > http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

>  >   

>  > To unsubscribe from this group, send an email to:

>  > [EMAIL PROTECTED]

>  >   

>  > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

>  

>  

>  

>  Yahoo! Groups Links

>  

>  

>  

>  

>  

>  

>  

>  

>  

>  

>  

>  ________________________________

>  Yahoo! Groups Links

>  

>  

> To visit your group on the web, go to:

> http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

>   

> To unsubscribe from this group, send an email to:

> [EMAIL PROTECTED]

>   

> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

 

 

 

Yahoo! Groups Links

 

    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

 

    [EMAIL PROTECTED]

 

    http://docs.yahoo.com/info/terms/

 

 

 

 



[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to