How do I debug apsx pages?

D

David Thielen

Hi;

I'm sure it's a simple answer but I can't find it. How do I debug an aspx
file? Is there some way to step through the processing of it?
 
J

Jeffrey Tan[MSFT]

Hi dave,

Thanks for your post!

I am not sure what code in aspx page you wanted to debug.

For server-side Asp.net code, we can just place break-point in the aspx
page, VS.net debugger will recognize this and stop in the aspx code.

Regarding client javascript code in aspx page, we should do some
configuration in the browser, the KB below documented the detailed steps:
"How to debug client-side script in Visual §³# .NET or in Visual C# 2005"
http://support.microsoft.com/kb/816173/en-us

Hope this helps!

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
D

David Thielen

Hi;

An example would be this:
<td><%# Eval("Vendor") %></td>

What if it displays nothing and I think it should have a value? How can I
step through the evaluation it makes to get the value for this cell?
 
P

Phillip Williams

I would setup a temporary method consuming the databinding event where you
can use the Trace.Write method to echo the values retrieved in the dataitem
object exposed by the eventargs parameter that is passed to that method.
(You need to set Trace="true" on the page directive)
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com


David Thielen said:
Hi;

An example would be this:
<td><%# Eval("Vendor") %></td>

What if it displays nothing and I think it should have a value? How can I
step through the evaluation it makes to get the value for this cell?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com



"Jeffrey Tan[MSFT]" said:
Hi dave,

Thanks for your post!

I am not sure what code in aspx page you wanted to debug.

For server-side Asp.net code, we can just place break-point in the aspx
page, VS.net debugger will recognize this and stop in the aspx code.

Regarding client javascript code in aspx page, we should do some
configuration in the browser, the KB below documented the detailed steps:
"How to debug client-side script in Visual §³# .NET or in Visual C# 2005"
http://support.microsoft.com/kb/816173/en-us

Hope this helps!

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
D

David Thielen

Trace=true is what I was looking for - this is very useful - I didn't know
about it.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com



Phillip Williams said:
I would setup a temporary method consuming the databinding event where you
can use the Trace.Write method to echo the values retrieved in the dataitem
object exposed by the eventargs parameter that is passed to that method.
(You need to set Trace="true" on the page directive)
--
HTH,
Phillip Williams
http://www.societopia.net
http://www.webswapp.com


David Thielen said:
Hi;

An example would be this:
<td><%# Eval("Vendor") %></td>

What if it displays nothing and I think it should have a value? How can I
step through the evaluation it makes to get the value for this cell?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com



"Jeffrey Tan[MSFT]" said:
Hi dave,

Thanks for your post!

I am not sure what code in aspx page you wanted to debug.

For server-side Asp.net code, we can just place break-point in the aspx
page, VS.net debugger will recognize this and stop in the aspx code.

Regarding client javascript code in aspx page, we should do some
configuration in the browser, the KB below documented the detailed steps:
"How to debug client-side script in Visual §³# .NET or in Visual C# 2005"
http://support.microsoft.com/kb/816173/en-us

Hope this helps!

Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top