none
bug in opening page from ribbon button(Dispform.aspx) RRS feed

  • Question

  • I have put a Sharepoint Designer 2010-> Custom Action-> Display form ribbon button on the Display form of my List. i have given it a NavigateToURL as http://ronefive:2012/SitePages/MyPositions.aspx?ID={ItemId}

    When i open my browser and click on a list item from that list, the display form opens up with the button i just added and all other default info. [IMG]http://i51.tinypic.com/14ddmhe.png[/IMG]

    When I click on it, it throws the error highlighted below. [IMG]http://i55.tinypic.com/zx8tav.png[/IMG]

    Strange.. is this a sharepoint bug?

    No item exists at http://ronefive:2012/SitePages/MyPositions.aspx?ID=288 It may have been deleted or renamed by another user.

    Tuesday, May 24, 2011 5:49 AM

Answers

  • I have put a Sharepoint Designer 2010-> Custom Action-> Display form ribbon button on the Display form of my List. i have given it a NavigateToURL as http://ronefive:2012/SitePages/MyPositions.aspx?ID={ItemId}

    When i open my browser and click on a list item from that list, the display form opens up with the button i just added and all other default info. [IMG]http://i51.tinypic.com/14ddmhe.png[/IMG]

    When I click on it, it throws the error highlighted below. [IMG]http://i55.tinypic.com/zx8tav.png[/IMG]

    Strange.. is this a sharepoint bug?

    No item exists at http://ronefive:2012/SitePages/MyPositions.aspx?ID=288 It may have been deleted or renamed by another user.

    i got the soln..

    The problem is in my custom ASPX page, I am using a querystring with the key "id". Do you believe this? which is causing the problem?

    Yes, 100% sure. This is what causing the problem. This problem came in  my two successive SharePoint projects and finally by changing the querystring key from id to someother key named like "sid" or "aid" or something other than "id" worked.

    I am not really 100% sure what's happening when I use "id" key in the querystring, but by changing that everything works fine. So, don't use the querystring "id" in your cusotm SharePoint ASPX pages.

    Note: There are chances that you may think the page is checked out or removed by some other user, then that's a mistake.

    Hope this helps and save you from killing so much time to know the problem.

    i refered to http://praveenbattula.blogspot.com/2010/02/sharepoint-exception-no-item-exists-url.html for this soln.

    Tuesday, May 24, 2011 6:30 AM