Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Contributor
2240 Points
531 Posts
Mar 09, 2007 09:10 AM|LINK
Hehe, u will... [;)]
Concerning mailing the info, well ther's a way, but u cannot save to XML, coz u have no structered data.
I can give u the code to save ur forms data into a string, and then u can send a mail with this string as body.
Try this
Dim SW as new System.IO.
dim HTW as System.Web.UI.HtmlTextWriter =
Form.RenderControl(HTW)
dim body as string = sw.Tostring() ' All the form content as shown in the page will be included in body
In order for not throwing an error include the following in ur codeBehind
and leave it empty as is
Public
Glad to be of help Carla
Ramzi.Aynati
Contributor
2240 Points
531 Posts
Re: Web Form Dilemma
Mar 09, 2007 09:10 AM|LINK
Hehe, u will... [;)]
Concerning mailing the info, well ther's a way, but u cannot save to XML, coz u have no structered data.
I can give u the code to save ur forms data into a string, and then u can send a mail with this string as body.
Try this
Dim SW as new System.IO.
StringWriterdim HTW as System.Web.UI.HtmlTextWriter =
new System.Web.UI.HtmlTextWriter(SW)Form.RenderControl(HTW)
dim body as string = sw.Tostring() ' All the form content as shown in the page will be included in body
In order for not throwing an error include the following in ur codeBehind
and leave it empty as is
Public
Overrides Sub VerifyRenderingInServerForm(ByVal control As Control)
' Confirms that an HtmlForm control is rendered for the ' specified ASP.NET server control at run time. End SubGlad to be of help Carla
Ramzi
--------------------------------------------
Dont Forget to mark the post as answered once replied.