Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

914 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now