Solved

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

Posted on 2009-04-10
2
310 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 500 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

688 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