|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How do I debug apsx pages?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? 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. 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? Show quoteHide quote > 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. > > 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) Show quoteHide quote "David Thielen" wrote: > 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]"" wrote: > > > 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. > > > > Trace=true is what I was looking for - this is very useful - I didn't know
about it. Show quoteHide quote "Phillip Williams" wrote: > 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" wrote: > > > 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]"" wrote: > > > > > 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. > > > > > > |
|||||||||||||||||||||||