Window.Print in an ASP.net web page

G

Guest

I am trying the javascript window.print function to print a asp.net web page
without much success.

I keep getting the error Stack Overflow on line....

Does anyone have any ideas what might be causing this error?

Or if anyone knows an alternative way of achieving this in c#?

Please help!!!
 
K

Kevin Spencer

Based on what you've posted, I can tell you this much: A Stack Overflow is
almost always caused by an infinite loop. It has nothing to do with
JavaScript, printing, or C#.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
 
G

Guest

I am not using a loop. The page simply displays data based on a data row. All
that is outputted on the page is a couple of labels that display the data
from the data row.
 
K

Kevin Spencer

A loop can be caused indirectly. For example, if function a calls function
b, which calls function c, and function c calls function a, you have an
infinite loop.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
 

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

Top