I have developed a custom SharePoint solution which is consisted of one ASPX application page. Now, I would like to integrate that functionality in list item edit form. I have decided to create a custom edit form in SharePoint Designer and to add an
<iframe> element to the bottom of the page. This
<iframe> would point to my page and embed it.
However, there are a couple of issues with that approach:
- Since my custom page contains a button which submits the content, including that button in the edit form and clicking on it would do strange things to the basic functionality of the form itself. Ideally, it would be great if the logic behind those buttons executes when the user saves the changes on the edit form, i.e. clicks the default Save button on the form. But how do I do that?
- My custom page takes the item id from the page URL as a parameter and I don't know how to include that parameter to the
scrproperty of the
I assume that using
<iframe> is not the best option here, but if I just place the ASPX elements directly on the edit form, how do I get the EditForm code-behind in order to implement my custom logic?
Also, how do I include the logic that I need to the default one related to the action when the user clicks Save button on the form?
If someone could just point me in the right direction, or to some resources with code examples, that would be perfect! Thanks.