Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 35604

Visual Web Part is a Web Part built using a User Control (.ascx)

3 votes
Accepted

Site not shared message after visual web part click

It all depends on the code you run on the button click. Can you please share it with us? It's more than probably something done by your code, and your user does not have permissions to perform the …
Evariste's user avatar
  • 9,731
2 votes
Accepted

get sharepoint DateTimeControl selected date?

You can get (or set) the selected value from code-behind (e.g. when user clicks a button) with myDateTimeControl.SelectedDate. EDIT: See https://karinebosch.wordpress.com/sharepoint-controls/dateti …
Evariste's user avatar
  • 9,731
0 votes

System.Runtime.InteropServices.COMException while adding web part to page

Ho, long time no see! This used to be a very common mistake, and the difficulty with it is: it occurs randomly most of the time under heavy user pressure only (hence the "it works fine on dev serv …
Evariste's user avatar
  • 9,731
1 vote

Creating Visual Web part for file upload

Adding attachments to list items is completely different than uploading files to a doc lib. You first need to get a reference to the SPPListItem you want to attach to, and then you use myListItem.Atta …
Evariste's user avatar
  • 9,731
0 votes

Deploy Web Part from Visual Studio to remote SharePoint

In addition to add/install the WSP package, you need to activate the feature that contains the Web part on each site collection you want it. Open your site collection root in a browser, go to "Site …
Evariste's user avatar
  • 9,731
1 vote

multi checkbox webpart properties

You have to store a string that serializes all your values. Obviously, since the string has now a special meaning, WebBrowsable only won(t do the magic to translate it into a nice selection UI. To han …
Evariste's user avatar
  • 9,731
1 vote
Accepted

Webpart stopped working after updating DLL version of VS solution

Changing the Assembly version of a DLL containing Web parts/Jobs/Workflows/Event receivers is not a good practice. All these artefacts point to the assembly, including its version number. And you cann …
Evariste's user avatar
  • 9,731
2 votes

SharePoint 2010 Adding Web Part Error: Object reference not set to an instance of an object

There's a lot of locations in your code that may fail with an NRE. For instance, it could be the group that is not found, or a group with no email address... Your only hope is to get more informati …
Evariste's user avatar
  • 9,731