Where is the code that controls the E-Learning Actions page stored?

Topics: Developer Forum
Jan 17, 2007 at 11:28 PM
Anyone know where the code that controls the E-Learning Actions page is stored? I've tracked down the file

\12\template\layouts\sharepointlearningkit\Actions.aspx

but it doesn't seem to contain the code that I am looking for, which is the validation code behind the link:

Add a site to this list.

Thanks.
Jan 18, 2007 at 12:19 AM

Rest of the logic is present in the code-behind which is packaged into the Microsoft.SharePointLearningKit dll. Within the source tree, it is present within slk/dll/appwebpages.
Jan 18, 2007 at 3:34 AM
Vandana, thanks for the information. We've located the Actions.aspx.cs file. In that file I am interested in changing line 705:

if (destinationWeb.ID.Equals(webListItem.SPWebGuid))
to something along the lines of
if (destinationWeb.URL.Equals(webListItem.URL))

in order for the comparison to be based on URL instead of ID. Do you or anyone else know of the correct syntax to use?

Thanks.
Jan 19, 2007 at 12:51 AM
Hi Mike,

Something like the following might achieve what you are looking for,

SPSite SiteInList = new SPSite(webListItem.SPSiteGuid);
if(destinationUrl.Equals(SiteInList.OpenWeb(webListItem.SPWebGuid).Url))
{
....


I assume this is to work around the extended application problem discussed in the User Forum? It will be interesting if this solves the problem. If the GUIDs of the 'intranet' and the 'extranet' sites are the same, I am afraid that assigning to the 'extranet' URL may not be sufficient enough to solve this. Do keep us posted on how it goes.