SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using sharepoint 2010 List in which I am able to get the viewID of the list and while viewing an item it opens a poup window from the sharepoint list I need to get the viewID of that item can anyone give an solution to get the viewID of an item?

share|improve this question
thanks for the post. Actually i need to catch up the popup window in share point 2010 list item. Can any one please help me to find out. Thanks, Suresh – suresh Dec 1 '11 at 13:33

An Item doesn't have a View ID - only a list.

Why do you need the ViewID in the pop up window?

share|improve this answer

I'm not sure you've asked the right question. However, on the assumption that you really want the viewID, the following approach might work, so long as the viewID is in the url of the page that calls the dialog.

Use the HttpRequest.UrlReferrer property if you need the data server-side (or document.referrer if you need it client-side). This gets information about the URL of the client's previous request that linked to the current URL and should be parseable to pull out the viewID.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.