Search:
Namespaces
Discussions
.NET v1.1
Feedback
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
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com