Saturday, April 21, 2007

Using ASP.Net user controls in your WSSV3/MOSS ASPX pages

Following on from Chris Johnson's post of application dev on SharePoint (here), I have had some people ask how to embed ASP.Net User Controls in the pages you can add to your site using Option 4 (see post for more details on what this option is).


Well ... i did some digging/research and have this set of steps to achieve this. Here goes:

1. Create a Directory called "usercontrols" in the root of your sharepoint web site on the file system E.g. C:\Inetpub\wwwroot\wss\VirtualDirectories\moss.litwareinc.com80\UserControls

2. Open IIS manager and in the root of your SharePoint site create a VirtualDirectory called "_controls" and point it to that newly created directory.

3. Put your user control in that newly created directory on the filesystem

4. Open the web.config file and add the following:

5. In your ASPX page add the following:
<%@ Register src="~/_controls/SomeControl.ascx" mce_src="~/_controls/SomeControl.ascx" TagName="somecontrol" TagPrefix="uc2" %>
And...

6. Run your ASPX page and your control should render correctly.

View Complete article...

2 comments:

lijialefw said...

Why was there no follow on bankruptcy then? The bailout of AIG FP went to (wow power leveling) hedge funds that bound credit swaps on Lehman failing or others betting on rating (wow power leveling) declines. AIG has drained over 100 billion from the government. Which had to go to (wow power leveling) those who bet on failures and downgrades. Many of whom (power leveling)were hedge funds. I-banks that had offsetting swaps needed the money from the AIG bailout or they would have been caught. Its an (wow powerleveling) insiders game and it takes just a little bit too much time for most people to think (wow gold) through where the AIG 100 billion bailout money went to, hedge funds and players, many of whom hire from the top ranks of DOJ, Fed, Treasury, CAOBO

said...

Arthritis means inflammation of jointsMicrosoft Office 2010csdxumei02 It is one of several Office 2010diseases commonly called rheumatism. Arthritis arises from many causes and it is treated in many various methodsMicrosoft Office 2007Arthritis has been classified as follows: - * Arthritis caused by infection.airOffice 2007Arthritis has been classified as follows: - * Arthritis caused by infection.airMicrosoft OfficeRheumatoid arthritis. * Degenerative arthritis. * Arthritis due to joint injuries.supra shoes Office 2007 keyArthritis originating from the nervous Office 2007 downloadRheumatoid arthritis and arthritis caused by rheumatic Office 2007 Professionalfever are classified as collagen disease. * Rheumatoid arthritis and degenerative nfl jerseysMicrosoft outlooktwo common types. Millions of men and women Microsoft outlook 2010are afflicted with them. But good treatment begun early and continued faithfully can often do much to alleviate the pain