Last post Dec 05, 2018 05:51 PM by Faraz A. Qureshi
Dec 05, 2018 05:11 PM|Faraz A. Qureshi|LINK
Question is quite a clear enough. With CRUD Scaffolding being used getting a on the
Delete Page one as a Button to confirm and submit, but the other as a link for the Back to List. Seek to know how to have buttons for both an additional one as follows:
Dec 05, 2018 05:19 PM|mgebhard|LINK
The best I can guess is you want a button as apposed to a link.
<button type="button" onclick="window.location.href = 'Index'">Cancel</button>
<button type="button" onclick="window.location.href = '/folder/page'">Cancel</button>
Dec 05, 2018 05:30 PM|Faraz A. Qureshi|LINK
But how to add the third one providing the current Item's ID and loading its Edit / Update page?
Dec 05, 2018 05:33 PM|khaled_cs|LINK
I would keep the link just change the text to cancel & change the class of the link to looks like button
something like this
here is the
<a class="btn btn-primary" asp-page="./Index">Cancel</a>
Dec 05, 2018 05:51 PM|Faraz A. Qureshi|LINK
That sure is a great advice Khalid!