does anyone know how to show the new list element form on button click, that I have on my custom aspx page? Like when you have a sharepoint list and you click on "add item" and a new element form loads up in a new dialog window? I need the same thing to happen when I click on my button. I know how to do that in Sharepoint Designer, but I need to do it programmatically in visual studio. I assume Javascript must be involved in some way and I am terrible with it. Thaks in advance!
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
In SharePoint 2010(I think aslo in the previuos versions) using IE developer toolbar You can read the javascript assigned to the onClick attribute of the "Add new Item" button and then create Your own button with the same onClick method. Update: Open IE developertool bar -> click on the arrow in the top left corner of IE developer toolbar -> select the "Add new item" button on the desired list -> read the onClick javascript
|
||||
