Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How can I get the html from an asp.net panel control?

Posted on 2009-04-10
2
Medium Priority
?
314 Views
Last Modified: 2012-05-06
Hello.  I have many different panels in a website where I sometimes need to send the contents of the currently displayed panel in an email.  

I've tried many solutions, some of which work, but all of which so far have unacceptable consequences, so I have some additional requirements.
*The panel "MUST" have textboxes, radio buttons, hiddenfields, and other web user controls that require viewstate.  I tried a solution that dynamically went through and switched each web user control to an equivelent html control, but unfortunately it changed the source panel too!  Which goes to my next requirement.
*After the function is done, the source panel should be unaffected! Or at the very least reverted to the same as it started.  Almost all solutions I've seen so far change the source panel because its a reference type. :(

 
0
Comment
Question by:dguillen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
williamcampbell earned 2000 total points
ID: 24116905
Probably need to intercept the Rendering pipe...

Possible Solution here

http://dotnettricks.com/blogs/craigbowesblog/archive/2006/09/09/105.aspx


0
 
LVL 1

Author Closing Comment

by:dguillen
ID: 31568962
Ok, that post describes all of my frustration for the past day, perfect.  It would have been really nice to not have to turn off event validation, but this works fulfilling all of my requirements, thank you.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question