XP for the programmer
To render a aspx page to a HTML simply execute the following code:
1: StringWriter writer = new StringWriter();
2: HttpContext.Current.Server.Execute("~/MyPage.aspx", writer);
To convert to a string:
1: writer.ToString()
Hi,When running this piece of code it enters a infinite loop...Thanks
Hi,The solution uses the .net framework object model.I use this solution without any problem.Can you post your code?
Post a Comment
2 comments:
Hi,
When running this piece of code it enters a infinite loop...
Thanks
Hi,
The solution uses the .net framework object model.
I use this solution without any problem.
Can you post your code?
Post a Comment