My favorites | Sign in
Project Logo
       
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Globalization;
using System.Web;

namespace Facebook.MvcWebControls
{
/// <summary>
///
/// </summary>
/// <typeparam name="TViewData">The type of the view data.</typeparam>
[AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public class CanvasIFrameViewMasterPage<TViewData> : CanvasIFrameViewMasterPage
{
/// <summary>
/// Gets the view data.
/// </summary>
/// <value>The view data.</value>
public new TViewData ViewData
{
get
{
CanvasIFrameViewPage<TViewData> viewPage = Page as CanvasIFrameViewPage<TViewData>;
if (viewPage == null)
{
throw new InvalidOperationException(String.Format(
CultureInfo.CurrentUICulture,
"A ViewMasterPage<TViewData> can only be used with content pages that derive from ViewPage<TViewData>."
));
}
return viewPage.ViewData;
}
}
}
}
Show details Hide details

Change log

r10 by nberardi on Apr 11, 2008   Diff
added facebook controls for MVC
Go to: 

Older revisions

All revisions of this file

File info

Size: 1117 bytes, 35 lines
Hosted by Google Code