Solved

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

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Suggested Solutions

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…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

756 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