Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

Custom Action - Get selected List item using C#

$
0
0

Hi,

I've created a custom action for one of my SharePoint lists and the custom action button is linked to an application page.

In the application page we're entering external data values which will then update that list item.

My question is how I can update the selected list item after I click on the custom action and fill in the external data fields in the application page.

I've tried:

SPContext.Current.ListItem - Returns null

SPContext.Current.ListItemID - Returns null

request.QueryString["ID"] - Returns null

Not sure how I can get the current/selected items URL.

Any help is greatly appreciated.

Thanks.

KP


KP


Viewing all articles
Browse latest Browse all 11508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>