0

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!

1 Answer 1

2

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

enter image description here

1
  • Thanks for the reply, zavaz. Coould you elaborate where exactly I can find it? I opened IE developer toolbar, but can't find where exactly this onClick method is
    – Alex
    Aug 12, 2011 at 8:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.