ASP.NET Code blog

Stijn v

  Home  |   Contact  |   Syndication    |   Login
  5 Posts | 0 Stories | 2 Comments | 0 Trackbacks

News



Archives

Friday, June 29, 2007 #

 

 

Reserved for future content.

http://office.microsoft.com/en-us/sharepointserver/HA101774731033.aspx


Thursday, June 28, 2007 #

 

I didn't understand how MOSS 2007 knows, to what repository an official file should be send. Well it is based on record routing ('doh). BUT, the 'Title' of the record routing rule MUST be the same as the content type name... This is here  and pretty confusing, to me at last.

 

Also, a document will be send to only one document library in the record repository. You can add more routing records that match the same content type. You will get no warning or error but the document will be handled by the FIRST routing record.

More info about it can be read here


I found a nice read \ explanation how WSP files are deployed into you farm. It tells also that new front end server are automatic updated.

 

you can read it here: http://blogs.msdn.com/cjohnson/archive/2006/09/11/749105.aspx

 

 I also found this slide in a powerpoint presentation:

http://blogs.macaw.nl/blogs/information_worker_solutions_intranet_extranet_office_system_enterprise_content_management/attachment/1719.ashx#271,31,%20Solution%20Deployment

 

Pretty cool heh


Click here for a webcast on msdn to understand the difference between page templates and page instances. A tutorial of how creating Site Pages with SharePoint 2007 designer.

http://download.microsoft.com/download/a/6/1/a61dd5df-f52c-42d5-a95c-7a7fb7a6a466/SharePointDesigner.wmv

 


Saturday, April 15, 2006 #

Many people have problems retrieving the session object in a dll that is loaded in your front end.
Imagen you have a front end layer, with your aspx files, and you backend (BLL /DAL) written in a class library and you want to retrieve some information you have saved in your ASP.NET session.


To be honoust it's quite simple, i'll show you how I did it:

1. Create a class witch will have acces to the session object in your back-end:
Public Class SessionManager
...
End Class



2. Since we want only 1 instance of this class we make it a singleton:

Private Sub New()

End Sub

Public Shared Function getInstance() As SessionManager

If (_Instance Is Nothing) Then
_Instance = New SessionManager
End If

Return _Instance
End Function


3. Import the class that contains the session:

Imports System.Web.HttpContext

4. Create a function that will retrieve a value from the session.
(You can also create 1 method witch will return a session object but i think this is better because it improves type safety)



Public Function getSelectedLanguage() As CultureInfo

Dim strCI As String = System.Web.HttpContext.Current.Session("SelectedLanguage")
If (strCI <> "") Then
Dim tmpCI As New CultureInfo(strCI)
Return tmpCI
Else
Return Configuration.getInstance.getDefaultLanguage()
End If
End Function

As you see, it's quite simple, have fun...