Timeline for How to get the URL of the current page in CSOM
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 12, 2017 at 16:10 | comment | added | SaulR | aspx button. Clicking on the icon in the ribbon causes an aspx page to be displayed. The user then fills out the information and clicks on a button at the bottom of the page. In the code behind for that aspx page, I need the URL of the page when the user clicked on the icon in the ribbon which is the itemUrl. In my elements.xml file, how can I add in the Javascript to get the current URL and pass that into the CommandAction. | |
| Jul 12, 2017 at 8:39 | comment | added | Swayam Siddha | How are you redirecting the user on the button click, are you using href tag? or is it an aspx button? | |
| Jul 12, 2017 at 0:40 | comment | added | SaulR | How do I specify the javascript in the CommandAction as it needs to start with ~remoteAppUrl. CommandAction="javascript: .... does not work. | |
| Jul 11, 2017 at 6:19 | history | edited | Aakash Maurya | CC BY-SA 3.0 | deleted 32 characters in body |
| Jul 11, 2017 at 6:08 | history | answered | Swayam Siddha | CC BY-SA 3.0 |