The spcontext tag has no wiki summary.
19
votes
1answer
7k views
Using SPContext.Current or using static URL
There are multiple ways to work in the SP object model. The starting point for instantiating objects looks different when you look at different developers.
Many times I see people doing this:
SPList ...
1
vote
3answers
266 views
sharepoint 2010 context menu event handler
i want to hide sharepoint 2010 list/library context menu based on users.
i am using below javascript
$(document).ready(function(){
$('.ms-MenuUIPopupBody').live('blur', function() { ...
5
votes
4answers
3k views
Get current web url in a SPRibbon Custom Action Command
I've a SPRibbon custom action with the purpose of open an custom app page in a modal dialog,
but I'm getting troubles for getting the current web URL, as well, set a reference for a .js with the right ...
0
votes
3answers
401 views
SPContext returns wrong user account [closed]
I'm creating a web part on a non local server and I need to get the current user logged in to SharePoint. I'm using the following code to get the username.
string currentUser = ...