MergeFieldEventHandler problems

Hi,

evaluating aspose.word

using the mail merge feature but want to implement some if and else loops on the merged data.

I know i have to use MergeFieldEventHandler methed but am getting stuck implementing it in ASP pages.

I got hold of some sample code but i have tried 2 portal it to asp but have been unable…

doc.MailMerge.MergeField += new MergeFieldEventHandler(HandleMergeFieldEvent);

private void HandleMergeFieldEvent(object sender, MergeFieldEventArgs e)
{
//You have access to e.FieldName, e.FieldValue which is the value retrieved from your datatabalse and you can set e.Text which will be inserted into the document.
e.Text = e.FieldValue.ToString() + " User Modified.";
}

Can u write so it would work it asp?

Cheers

Hi,

Thank you for considering Aspose.

Sorry, if you mean classical ASP - this is not implemented there.