web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Embed Webform on Contact form

(0) ShareShare
ReportReport
Posted on by 40

The Web Page (HTML) Web Resources doc link - https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/webpage-html-web-resources - leads to a page that says: “An HTML web resource can’t contain any code that must be executed on the server. ASP.NET pages can’t be uploaded as HTML web resources.”

 I take this to mean we can’t use ASP.NET pages with C# server code.  However this link indicates it is possible: https://salimadamoncrm.com/2016/02/15/custom-user-interface-in-crm-html5javascript-or-asp-net-web-application/

I would much prefer using a server-side C# solution as we can re-use code rather than rewriting to a HTML5/Javascript solution.  Is this possible? The contact guid needs to be passed to the webform.

I have the same question (0)
  • Verified answer
    Saad Kabarousse Profile Picture
    734 on at

    Hello my friend,

    Yes in fact you can do so:

    1- Develop your ASPX Page and deploy it on IIS or Azure

    2- On your form level Add an Iframe, specify the url of you page

    pastedimage1575983545454v2.png

    3- Once your Form will be loeaded, you'll be able to see the contecnt of your page ASPx.

    Hope this helps :), and please do not forget to mark as verified.

  • NeilN Profile Picture
    40 on at

    This works but the buttons in the iframe don't.  For example, I have a button that makes a asp panel visible. When I click it, nothing happens.  If I add the iframe on a vanilla aspx page, everything works as expected. Any ideas?

  • NeilN Profile Picture
    40 on at

    Figured it out. Had to disable restrict cross-frame scripting.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 72 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 29 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans