ASPX templates
Version 2.x > ASPX templates > Trying to send Email usign Kentico View modes: 
User avatar
Member
Member
roopangee-hotmail - 7/31/2009 6:19:13 AM
   
Trying to send Email usign Kentico
I have downloaded free version of Kentico 4 and am trying to include feature of sending mail using Kentico on a newly created website of my own for which I followed http://www.kentico.com/docs/devguide/index.html?modifying_the_code_of_standard_web_parts.htm link given to me.I have two issues as below
-----> However I am getting an error at step 3 when I am copying code as in screen shot.It says definition for bizformsnew is not included in the page defination.Hence I am unable to proceed. I have suceeded in creating a cloned webpart page "bizformwithemail.ascx" (I would like to confirm if I have to drag and drop the message confirmation label in bizform.ascx or bizformwithemail.ascx)
----> I would also like the user to enter his own email address and name and pass it.How do I get user written value from the control?I am unable to see any features since I could not proceed from step 3
I will be thankful for a response.

Thanks and Regards,
Roopangee

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 8/3/2009 8:48:04 AM
   
RE:Trying to send Email usign Kentico
Hi,

I’m not quite sure what exactly do you mean, but you can register BizForm event methods also in code behind of your web part. You can find examples on how to do this here:

http://devnet.kentico.com/Knowledge-Base/Web-parts---Controls/Making-BizForm-fields-inactive-after-submitting.aspx

Regarding your second question, you can simply add two fields to your BizForm and let users to submit this information with the BizForm. Then you can get the information using following code in some of the BizForm events:
this.<BizFormControlName>.BasicForm.DataRow["BizFormFieldName"]

Best Regards,
Miroslav Remias