Category Archives: Webpart

Select a view for Document Library web part

With MOSS 2007, after inserting a document library web part, you can select a specific view to use for this web part (same for other list web parts). However I found that once the web part is created, the changes … Continue reading

Posted in Document library, Webpart | Tagged | 5 Comments

Target Audiences – doesn’t work with domain groups

I have a webpart that I want to restrict the access (kind of) by specifying Target Audiences. I created a SharePoint security group (i.e. SP-Group1) which has domain users AND a domain group (say AD-group1) in it. The webpart works … Continue reading

Posted in Security, Webpart | Tagged | 7 Comments

Webpart and AJAX – do not forget the web.config

To enabled Ajax on your SharePoint site, you have to modify the web.config file as instructed here http://asp.net/AJAX/Documentation/Live/ConfiguringASPNETAJAX.aspx. The last 2 parts can be skipped if that doesn’t apply to your case. The good news is that this web.config file … Continue reading

Posted in Webpart | Tagged , | Leave a comment

Webpart and AJAX – second postback not working in UpdatePanel?

I successfully add a webpart with UpdatePanel. However the second post back doesn’t seem to trigger? Why? Excerpt from Mike Ammerlaan’s Blog Windows SharePoint Services JavaScript has a “form onSubmit wrapper” which is used to override the default form action. … Continue reading

Posted in Webpart | Tagged , | 5 Comments

Webpart and AJAX – tricks on creating ScriptManager

ScriptManager object is required if you want to use AJAX (Microsoft Atlas) in your webpart. In a ASPX page, there should only be one instance of ScriptManager object. However as just a component of a frame work/page, your webpart has … Continue reading

Posted in Webpart | Tagged , | 7 Comments

Webpart security

If the webpart need to access Sharepoint server info, there are 3 options when deploying the webpart in security context: Deploy to GAC, and no other settings need to be changed. Downside: need to recycle application pool when upgrade; webpart … Continue reading

Posted in Security, Webpart | Tagged , | Leave a comment