.NETGURU
Calendar Control
Messages   Related Types
This message was discovered on ASPFriends.com 'aspngvb' list.


isaacs@journalinteractive.com (Scott Isaacs)
Hi,

Is it possible to have the HTML generated by calendar control
stored in a string rather than streamed to the screen? How?

Also, is this possible for objects in general? Or does the
object developer specifically have to create a method/property
to accomplish this?

Thanks

Scott

Reply to this message...
 
    
Andy Smith
I imagine _could_ do it fairly easily by wrapping a HtmlTextWriter =
around a memory stream, and call RenderControl on the Calendar, passing =
your writer...

but I can't of why you would want to do this.

__
Andy Smith
Keyboard Jockey #3a7-2.78.1

[Original message clipped]

Reply to this message...
 
    
Michael Wells

Are you looking to generate HTML emails? If you can avoid security
concerns, it's probably simpler to generate the email directly from a
"live" ASPX page. However, you may have to watch out for fancy
javascripting, etc, that some of the controls produce. It may create
problems if the user clicks on controls in the email, since there isn't
really an ASP.NET session running when the user views the email.

Again, I'm guessing that this is your intent...

-- Michael Wells

[Original message clipped]

Reply to this message...
 
    
Patrick Steele
For the HTML control, yes, it's possible with subclassing:

http://radio.weblogs.com/0110109/stories/2002/06/27/gettingTheRawHtmlFro
mAWebControl.html

For objects in general, you'd have to design your class so it's
serializable. Then just serialize using the XML formatter, and you'd
have a string.

---
Patrick Steele (Click here to reveal e-mail address)
Lead Software Architect
Image Process Design

-----Original Message-----
From: Scott Isaacs [mailto:Click here to reveal e-mail address]=20
Sent: Wednesday, July 17, 2002 12:15 PM
To: aspngvb
Subject: [aspngvb] Calendar Control

Hi,

Is it possible to have the HTML generated by calendar control=20
stored in a string rather than streamed to the screen? How?

Also, is this possible for objects in general? Or does the=20
object developer specifically have to create a method/property=20
to accomplish this?

Thanks

Scott

| [aspngvb] member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspngvb.asp =3D JOIN/QUIT

Reply to this message...
 
 
System.Web.UI.HtmlTextWriter




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification