├── BootstrapFriendlyDynamicData
├── Content
│ ├── table-rounded.min.css
│ ├── table-rounded.css
│ ├── table-rounded.less
│ ├── Site.less
│ └── Site.min.css
├── Global.asax
├── fonts
│ ├── FontAwesome.otf
│ ├── fontawesome-webfont.eot
│ ├── fontawesome-webfont.ttf
│ ├── fontawesome-webfont.woff
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.ttf
│ └── glyphicons-halflings-regular.woff
├── App_Data
│ ├── Northwind.MDF
│ └── Northwind_log.ldf
├── DynamicData
│ ├── Content
│ │ ├── Images
│ │ │ ├── Back.gif
│ │ │ ├── plus.gif
│ │ │ ├── PgFirst.gif
│ │ │ ├── PgLast.gif
│ │ │ ├── PgNext.gif
│ │ │ ├── PgPrev.gif
│ │ │ └── header_back.gif
│ │ └── GridViewPager.ascx
│ ├── FieldTemplates
│ │ ├── Children_Insert.ascx
│ │ ├── Boolean.ascx
│ │ ├── Boolean_Edit.ascx
│ │ ├── Text.ascx
│ │ ├── DateTime.ascx
│ │ ├── Url.ascx
│ │ ├── Children.ascx
│ │ ├── Enumeration.ascx
│ │ ├── EmailAddress.ascx
│ │ ├── ManyToMany_Edit.ascx
│ │ ├── ForeignKey.ascx
│ │ ├── ManyToMany.ascx
│ │ ├── Children_Insert.ascx.cs
│ │ ├── Enumeration_Edit.ascx
│ │ ├── ForeignKey_Edit.ascx
│ │ ├── DateTime.ascx.cs
│ │ ├── Children_Insert.ascx.designer.cs
│ │ ├── Url.ascx.designer.cs
│ │ ├── Boolean.ascx.designer.cs
│ │ ├── DateTime.ascx.designer.cs
│ │ ├── Children.ascx.designer.cs
│ │ ├── Enumeration.ascx.designer.cs
│ │ ├── ManyToMany.ascx.designer.cs
│ │ ├── Boolean_Edit.ascx.designer.cs
│ │ ├── EmailAddress.ascx.designer.cs
│ │ ├── ForeignKey.ascx.designer.cs
│ │ ├── ManyToMany_Edit.ascx.designer.cs
│ │ ├── Url_Edit.ascx
│ │ ├── EmailAddress_Edit.ascx
│ │ ├── Boolean.ascx.cs
│ │ ├── Text.ascx.designer.cs
│ │ ├── Text_Edit.ascx
│ │ ├── EmailAddress.ascx.cs
│ │ ├── DateTime_Edit.ascx
│ │ ├── Url_Edit.ascx.designer.cs
│ │ ├── MultilineText_Edit.ascx
│ │ ├── EmailAddress_Edit.ascx.designer.cs
│ │ ├── Boolean_Edit.ascx.cs
│ │ ├── Url.ascx.cs
│ │ ├── Decimal_Edit.ascx
│ │ ├── Integer_Edit.ascx
│ │ ├── MultilineText_Edit.ascx.cs
│ │ ├── Decimal_Edit.ascx.cs
│ │ ├── Integer_Edit.ascx.cs
│ │ ├── Enumeration.ascx.cs
│ │ ├── Text.ascx.cs
│ │ ├── Url_Edit.ascx.cs
│ │ ├── Text_Edit.ascx.cs
│ │ ├── EmailAddress_Edit.ascx.cs
│ │ ├── ManyToMany.ascx.cs
│ │ ├── ForeignKey_Edit.ascx.designer.cs
│ │ ├── Enumeration_Edit.ascx.designer.cs
│ │ ├── Children.ascx.cs
│ │ └── ForeignKey.ascx.cs
│ ├── Filters
│ │ ├── Boolean.ascx
│ │ ├── Enumeration.ascx
│ │ ├── ForeignKey.ascx
│ │ ├── Boolean.ascx.designer.cs
│ │ ├── ForeignKey.ascx.designer.cs
│ │ └── Enumeration.ascx.designer.cs
│ ├── EntityTemplates
│ │ ├── Default.ascx
│ │ ├── Default_Edit.ascx
│ │ ├── Default_Insert.ascx
│ │ ├── Default.ascx.designer.cs
│ │ ├── Default_Edit.ascx.designer.cs
│ │ ├── Default_Insert.ascx.designer.cs
│ │ ├── Default.ascx.cs
│ │ ├── Default_Edit.ascx.cs
│ │ └── Default_Insert.ascx.cs
│ ├── web.config
│ └── PageTemplates
│ │ ├── Insert.aspx.cs
│ │ ├── Edit.aspx.cs
│ │ └── Details.aspx.cs
├── Default.aspx.cs
├── Models
│ ├── NorthwindModel.cs
│ ├── NorthwindModel.Designer.cs
│ ├── Region.cs
│ ├── Shipper.cs
│ ├── CustomerDemographic.cs
│ ├── Order_Detail.cs
│ ├── Category.cs
│ ├── Territory.cs
│ ├── Supplier.cs
│ ├── Customer.cs
│ ├── Product.cs
│ ├── NorthwindModel.Context.cs
│ └── Order.cs
├── packages.config
├── Default.aspx.designer.cs
├── Site.master.cs
├── web.Debug.config
├── web.Release.config
├── Properties
│ └── AssemblyInfo.cs
└── Site.master.designer.cs
├── README.md
├── EditPage.png
├── ListPage.png
├── ProjectTemplate
├── ProjectTemplates
│ ├── BootstrapFreindlyDynamicDataProjectTemplate
│ │ ├── Content
│ │ │ ├── table-rounded.min.css
│ │ │ ├── table-rounded.css
│ │ │ ├── table-rounded.less
│ │ │ ├── Site.less
│ │ │ └── Site.min.css
│ │ ├── Global.asax
│ │ ├── DynamicData
│ │ │ ├── FieldTemplates
│ │ │ │ ├── Children_Insert.ascx
│ │ │ │ ├── Boolean.ascx
│ │ │ │ ├── Boolean_Edit.ascx
│ │ │ │ ├── Text.ascx
│ │ │ │ ├── DateTime.ascx
│ │ │ │ ├── Url.ascx
│ │ │ │ ├── Children.ascx
│ │ │ │ ├── Enumeration.ascx
│ │ │ │ ├── EmailAddress.ascx
│ │ │ │ ├── ManyToMany_Edit.ascx
│ │ │ │ ├── ForeignKey.ascx
│ │ │ │ ├── ManyToMany.ascx
│ │ │ │ ├── Children_Insert.ascx.cs
│ │ │ │ ├── Enumeration_Edit.ascx
│ │ │ │ ├── ForeignKey_Edit.ascx
│ │ │ │ ├── DateTime.ascx.cs
│ │ │ │ ├── Children_Insert.ascx.designer.cs
│ │ │ │ ├── Boolean.ascx.designer.cs
│ │ │ │ ├── DateTime.ascx.designer.cs
│ │ │ │ ├── Url.ascx.designer.cs
│ │ │ │ ├── Children.ascx.designer.cs
│ │ │ │ ├── Boolean_Edit.ascx.designer.cs
│ │ │ │ ├── Enumeration.ascx.designer.cs
│ │ │ │ ├── ForeignKey.ascx.designer.cs
│ │ │ │ ├── ManyToMany.ascx.designer.cs
│ │ │ │ ├── EmailAddress.ascx.designer.cs
│ │ │ │ ├── ManyToMany_Edit.ascx.designer.cs
│ │ │ │ ├── Url_Edit.ascx
│ │ │ │ ├── EmailAddress_Edit.ascx
│ │ │ │ ├── Boolean.ascx.cs
│ │ │ │ ├── Text.ascx.designer.cs
│ │ │ │ ├── Text_Edit.ascx
│ │ │ │ ├── EmailAddress.ascx.cs
│ │ │ │ ├── DateTime_Edit.ascx
│ │ │ │ ├── MultilineText_Edit.ascx
│ │ │ │ ├── Url_Edit.ascx.designer.cs
│ │ │ │ ├── EmailAddress_Edit.ascx.designer.cs
│ │ │ │ ├── Boolean_Edit.ascx.cs
│ │ │ │ ├── Url.ascx.cs
│ │ │ │ ├── Decimal_Edit.ascx
│ │ │ │ ├── Integer_Edit.ascx
│ │ │ │ ├── MultilineText_Edit.ascx.cs
│ │ │ │ ├── Decimal_Edit.ascx.cs
│ │ │ │ ├── Integer_Edit.ascx.cs
│ │ │ │ ├── Enumeration.ascx.cs
│ │ │ │ ├── Text.ascx.cs
│ │ │ │ ├── Url_Edit.ascx.cs
│ │ │ │ ├── Text_Edit.ascx.cs
│ │ │ │ ├── EmailAddress_Edit.ascx.cs
│ │ │ │ ├── ManyToMany.ascx.cs
│ │ │ │ ├── Enumeration_Edit.ascx.designer.cs
│ │ │ │ ├── ForeignKey_Edit.ascx.designer.cs
│ │ │ │ └── Children.ascx.cs
│ │ │ ├── Content
│ │ │ │ ├── Images
│ │ │ │ │ ├── Back.gif
│ │ │ │ │ ├── plus.gif
│ │ │ │ │ ├── PgFirst.gif
│ │ │ │ │ ├── PgLast.gif
│ │ │ │ │ ├── PgNext.gif
│ │ │ │ │ ├── PgPrev.gif
│ │ │ │ │ └── header_back.gif
│ │ │ │ └── GridViewPager.ascx
│ │ │ ├── Filters
│ │ │ │ ├── Boolean.ascx
│ │ │ │ ├── Enumeration.ascx
│ │ │ │ ├── ForeignKey.ascx
│ │ │ │ ├── Boolean.ascx.designer.cs
│ │ │ │ ├── Enumeration.ascx.designer.cs
│ │ │ │ └── ForeignKey.ascx.designer.cs
│ │ │ ├── EntityTemplates
│ │ │ │ ├── Default.ascx
│ │ │ │ ├── Default_Edit.ascx
│ │ │ │ ├── Default_Insert.ascx
│ │ │ │ ├── Default.ascx.designer.cs
│ │ │ │ ├── Default_Edit.ascx.designer.cs
│ │ │ │ ├── Default_Insert.ascx.designer.cs
│ │ │ │ ├── Default.ascx.cs
│ │ │ │ ├── Default_Edit.ascx.cs
│ │ │ │ └── Default_Insert.ascx.cs
│ │ │ ├── web.config
│ │ │ └── PageTemplates
│ │ │ │ ├── Insert.aspx.cs
│ │ │ │ ├── Edit.aspx.cs
│ │ │ │ └── Details.aspx.cs
│ │ ├── __PreviewImage.png
│ │ ├── __TemplateIcon.ico
│ │ ├── fonts
│ │ │ ├── FontAwesome.otf
│ │ │ ├── fontawesome-webfont.eot
│ │ │ ├── fontawesome-webfont.ttf
│ │ │ ├── fontawesome-webfont.woff
│ │ │ ├── glyphicons-halflings-regular.eot
│ │ │ ├── glyphicons-halflings-regular.ttf
│ │ │ └── glyphicons-halflings-regular.woff
│ │ ├── Default.aspx.cs
│ │ ├── packages.config
│ │ ├── Default.aspx.designer.cs
│ │ ├── Site.master.cs
│ │ ├── web.Debug.config
│ │ ├── web.Release.config
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── web.config
│ └── BootstrapFreindlyDynamicDataProjectTemplate.zip
├── BootstrapFriendlyDynamicDataProjectTemplate.ico
├── BootstrapFriendlyDynamicDataProjectPreviewMedium.png
├── Properties
│ └── AssemblyInfo.cs
└── source.extension.vsixmanifest
├── EditPageMedium.png
├── ListPageMedium.png
├── BootstrapFriendlyDynamicDataProjectPreview.png
├── BootstrapFriendlyDynamicDataProjectTemplate.ico
├── BootstrapFriendlyDynamicDataProjectPreviewMedium.png
├── BootstrapFriendlyDynamicDataProjectPreviewSmall.png
├── BootstrapFriendlyDynamicData.sln.ide
└── graph
├── LICENSE.md
├── LICENSE.html
└── BootstrapFriendlyDynamicData.sln.GhostDoc.xml
/BootstrapFriendlyDynamicData/Content/table-rounded.min.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Content/table-rounded.css:
--------------------------------------------------------------------------------
1 | /* Back to Bootstrap 2 rounded tables */
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/README.md
--------------------------------------------------------------------------------
/EditPage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/EditPage.png
--------------------------------------------------------------------------------
/ListPage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ListPage.png
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/Content/table-rounded.min.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/EditPageMedium.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/EditPageMedium.png
--------------------------------------------------------------------------------
/ListPageMedium.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ListPageMedium.png
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/Content/table-rounded.css:
--------------------------------------------------------------------------------
1 | /* Back to Bootstrap 2 rounded tables */
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Language="C#" CodeBehind="Global.asax.cs" Inherits="DynamicDataBootstrapped.Global" %>
2 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicDataProjectPreview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/BootstrapFriendlyDynamicDataProjectPreview.png
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicDataProjectTemplate.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/BootstrapFriendlyDynamicDataProjectTemplate.ico
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/fonts/FontAwesome.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/BootstrapFriendlyDynamicData/fonts/FontAwesome.otf
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/App_Data/Northwind.MDF:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/BootstrapFriendlyDynamicData/App_Data/Northwind.MDF
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicDataProjectPreviewMedium.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/BootstrapFriendlyDynamicDataProjectPreviewMedium.png
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicDataProjectPreviewSmall.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/BootstrapFriendlyDynamicDataProjectPreviewSmall.png
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/App_Data/Northwind_log.ldf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/BootstrapFriendlyDynamicData/App_Data/Northwind_log.ldf
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Language="C#" CodeBehind="Global.asax.cs" Inherits="$safeprojectname$.Global" %>
2 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/fonts/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/BootstrapFriendlyDynamicData/fonts/fontawesome-webfont.eot
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/fonts/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/BootstrapFriendlyDynamicData/fonts/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/fonts/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/BootstrapFriendlyDynamicData/fonts/fontawesome-webfont.woff
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/Content/Images/Back.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/BootstrapFriendlyDynamicData/DynamicData/Content/Images/Back.gif
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/Content/Images/plus.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/BootstrapFriendlyDynamicData/DynamicData/Content/Images/plus.gif
--------------------------------------------------------------------------------
/ProjectTemplate/BootstrapFriendlyDynamicDataProjectTemplate.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ProjectTemplate/BootstrapFriendlyDynamicDataProjectTemplate.ico
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/Content/Images/PgFirst.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/BootstrapFriendlyDynamicData/DynamicData/Content/Images/PgFirst.gif
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/Content/Images/PgLast.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/BootstrapFriendlyDynamicData/DynamicData/Content/Images/PgLast.gif
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/Content/Images/PgNext.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/BootstrapFriendlyDynamicData/DynamicData/Content/Images/PgNext.gif
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/Content/Images/PgPrev.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/BootstrapFriendlyDynamicData/DynamicData/Content/Images/PgPrev.gif
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Children_Insert.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Children_Insert.ascx.cs" Inherits="DynamicDataBootstrapped.Children_InsertField" %>
2 |
3 |
4 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/BootstrapFriendlyDynamicData/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/BootstrapFriendlyDynamicData/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/BootstrapFriendlyDynamicData/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/ProjectTemplate/BootstrapFriendlyDynamicDataProjectPreviewMedium.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ProjectTemplate/BootstrapFriendlyDynamicDataProjectPreviewMedium.png
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/Content/Images/header_back.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/BootstrapFriendlyDynamicData/DynamicData/Content/Images/header_back.gif
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate.zip
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Boolean.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Boolean.ascx.cs" Inherits="DynamicDataBootstrapped.BooleanField" %>
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Boolean_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Boolean_Edit.ascx.cs" Inherits="DynamicDataBootstrapped.Boolean_EditField" %>
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Text.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Text.ascx.cs" Inherits="DynamicDataBootstrapped.TextField" %>
2 |
3 |
4 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Children_Insert.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Children_Insert.ascx.cs" Inherits="$safeprojectname$.Children_InsertField" %>
2 |
3 |
4 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/__PreviewImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/__PreviewImage.png
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/__TemplateIcon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/__TemplateIcon.ico
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/DateTime.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="DateTime.ascx.cs" Inherits="DynamicDataBootstrapped.DateTimeField" %>
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Url.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Url.ascx.cs" Inherits="DynamicDataBootstrapped.UrlField" %>
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/fonts/FontAwesome.otf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/fonts/FontAwesome.otf
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Children.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Children.ascx.cs" Inherits="DynamicDataBootstrapped.ChildrenField" %>
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Enumeration.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Enumeration.ascx.cs" Inherits="DynamicDataBootstrapped.EnumerationField" %>
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/fonts/fontawesome-webfont.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/fonts/fontawesome-webfont.eot
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/fonts/fontawesome-webfont.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/fonts/fontawesome-webfont.ttf
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/fonts/fontawesome-webfont.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/fonts/fontawesome-webfont.woff
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Boolean.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Boolean.ascx.cs" Inherits="$safeprojectname$.BooleanField" %>
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Boolean_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Boolean_Edit.ascx.cs" Inherits="$safeprojectname$.Boolean_EditField" %>
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Text.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Text.ascx.cs" Inherits="$safeprojectname$.TextField" %>
2 |
3 |
4 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/EmailAddress.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="EmailAddress.ascx.cs" Inherits="DynamicDataBootstrapped.EmailAddressField" %>
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Content/Images/Back.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Content/Images/Back.gif
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Content/Images/plus.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Content/Images/plus.gif
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Content/Images/PgFirst.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Content/Images/PgFirst.gif
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Content/Images/PgLast.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Content/Images/PgLast.gif
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Content/Images/PgNext.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Content/Images/PgNext.gif
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Content/Images/PgPrev.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Content/Images/PgPrev.gif
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/DateTime.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="DateTime.ascx.cs" Inherits="$safeprojectname$.DateTimeField" %>
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Content/Images/header_back.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sjnaughton/bootstrap-friendly-dynamic-data/HEAD/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Content/Images/header_back.gif
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Url.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Url.ascx.cs" Inherits="$safeprojectname$.UrlField" %>
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/ManyToMany_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="ManyToMany_Edit.ascx.cs" Inherits="DynamicDataBootstrapped.ManyToMany_EditField" %>
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Children.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Children.ascx.cs" Inherits="$safeprojectname$.ChildrenField" %>
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Enumeration.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Enumeration.ascx.cs" Inherits="$safeprojectname$.EnumerationField" %>
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/ForeignKey.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="ForeignKey.ascx.cs" Inherits="DynamicDataBootstrapped.ForeignKeyField" %>
2 |
3 |
6 |
7 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/EmailAddress.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="EmailAddress.ascx.cs" Inherits="$safeprojectname$.EmailAddressField" %>
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/ManyToMany_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="ManyToMany_Edit.ascx.cs" Inherits="$safeprojectname$.ManyToMany_EditField" %>
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/Filters/Boolean.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Boolean.ascx.cs" Inherits="DynamicDataBootstrapped.BooleanFilter" %>
2 |
3 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/ForeignKey.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="ForeignKey.ascx.cs" Inherits="$safeprojectname$.ForeignKeyField" %>
2 |
3 |
6 |
7 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Default.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel.DataAnnotations;
3 | using System.Web.DynamicData;
4 |
5 | namespace DynamicDataBootstrapped
6 | {
7 | public partial class _Default : System.Web.UI.Page
8 | {
9 | protected void Page_Load(object sender, EventArgs e)
10 | {
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/ManyToMany.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="ManyToMany.ascx.cs" Inherits="DynamicDataBootstrapped.ManyToManyField" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Filters/Boolean.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Boolean.ascx.cs" Inherits="$safeprojectname$.BooleanFilter" %>
2 |
3 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData.sln.ide/graph:
--------------------------------------------------------------------------------
1 |
2 | 2013-12-22T18:08:31.3097524Z
3 |
4 |
5 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/Default.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel.DataAnnotations;
3 | using System.Web.DynamicData;
4 |
5 | namespace $safeprojectname$
6 | {
7 | public partial class _Default : System.Web.UI.Page
8 | {
9 | protected void Page_Load(object sender, EventArgs e)
10 | {
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/ManyToMany.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="ManyToMany.ascx.cs" Inherits="$safeprojectname$.ManyToManyField" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/Filters/Enumeration.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Enumeration.ascx.cs" Inherits="DynamicDataBootstrapped.EnumerationFilter" %>
2 |
3 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/Filters/ForeignKey.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="ForeignKey.ascx.cs" Inherits="DynamicDataBootstrapped.ForeignKeyFilter" %>
2 |
3 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Filters/Enumeration.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Enumeration.ascx.cs" Inherits="$safeprojectname$.EnumerationFilter" %>
2 |
3 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Filters/ForeignKey.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="ForeignKey.ascx.cs" Inherits="$safeprojectname$.ForeignKeyFilter" %>
2 |
3 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Children_Insert.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace DynamicDataBootstrapped
10 | {
11 | public partial class Children_InsertField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 |
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Models/NorthwindModel.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated from a template.
4 | //
5 | // Manual changes to this file may cause unexpected behavior in your application.
6 | // Manual changes to this file will be overwritten if the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Children_Insert.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace $safeprojectname$
10 | {
11 | public partial class Children_InsertField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 |
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | Copyright © 2013 Stephen J Naughton
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
4 |
5 | http://www.apache.org/licenses/LICENSE-2.0
6 |
7 | Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Enumeration_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Enumeration_Edit.ascx.cs" Inherits="DynamicDataBootstrapped.Enumeration_EditField" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/ForeignKey_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="ForeignKey_Edit.ascx.cs" Inherits="DynamicDataBootstrapped.ForeignKey_EditField" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/EntityTemplates/Default.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Default.ascx.cs" Inherits="DynamicDataBootstrapped.DefaultEntityTemplate" %>
2 |
3 |
4 |
5 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Enumeration_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Enumeration_Edit.ascx.cs" Inherits="$safeprojectname$.Enumeration_EditField" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/DateTime.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace DynamicDataBootstrapped
10 | {
11 | public partial class DateTimeField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | public override Control DataControl
14 | {
15 | get
16 | {
17 | return Literal1;
18 | }
19 | }
20 |
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/ForeignKey_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="ForeignKey_Edit.ascx.cs" Inherits="$safeprojectname$.ForeignKey_EditField" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Children_Insert.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace DynamicDataBootstrapped
12 | {
13 |
14 |
15 | public partial class Children_InsertField
16 | {
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/LICENSE.html:
--------------------------------------------------------------------------------
1 |
Copyright © 2013 Stephen J Naughton
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
4 |
5 | http://www.apache.org/licenses/LICENSE-2.0
6 |
7 | Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/EntityTemplates/Default.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Default.ascx.cs" Inherits="$safeprojectname$.DefaultEntityTemplate" %>
2 |
3 |
4 |
5 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/DateTime.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace $safeprojectname$
10 | {
11 | public partial class DateTimeField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | public override Control DataControl
14 | {
15 | get
16 | {
17 | return Literal1;
18 | }
19 | }
20 |
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/web.config:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Children_Insert.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace $safeprojectname$
12 | {
13 |
14 |
15 | public partial class Children_InsertField
16 | {
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Url.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace DynamicDataBootstrapped
12 | {
13 |
14 |
15 | public partial class UrlField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.HyperLink HyperLinkUrl;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Boolean.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace DynamicDataBootstrapped
12 | {
13 |
14 |
15 | public partial class BooleanField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.CheckBox CheckBox1;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/DateTime.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace DynamicDataBootstrapped
12 | {
13 |
14 |
15 | public partial class DateTimeField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.Literal Literal1;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Children.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace DynamicDataBootstrapped
12 | {
13 |
14 |
15 | public partial class ChildrenField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.HyperLink HyperLink1;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Enumeration.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace DynamicDataBootstrapped
12 | {
13 |
14 |
15 | public partial class EnumerationField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.Literal Literal1;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/ManyToMany.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace DynamicDataBootstrapped
12 | {
13 |
14 |
15 | public partial class ManyToManyField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.Repeater Repeater1;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Boolean_Edit.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace DynamicDataBootstrapped
12 | {
13 |
14 |
15 | public partial class Boolean_EditField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.CheckBox CheckBox1;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/EmailAddress.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace DynamicDataBootstrapped
12 | {
13 |
14 |
15 | public partial class EmailAddressField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.HyperLink HyperLink1;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/ForeignKey.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace DynamicDataBootstrapped
12 | {
13 |
14 |
15 | public partial class ForeignKeyField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.HyperLink HyperLink1;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/ManyToMany_Edit.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace DynamicDataBootstrapped
12 | {
13 |
14 |
15 | public partial class ManyToMany_EditField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.CheckBoxList CheckBoxList1;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/web.config:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Boolean.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace $safeprojectname$
12 | {
13 |
14 |
15 | public partial class BooleanField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.CheckBox CheckBox1;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/DateTime.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace $safeprojectname$
12 | {
13 |
14 |
15 | public partial class DateTimeField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.Literal Literal1;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Url.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace $safeprojectname$
12 | {
13 |
14 |
15 | public partial class UrlField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.HyperLink HyperLinkUrl;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Children.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace $safeprojectname$
12 | {
13 |
14 |
15 | public partial class ChildrenField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.HyperLink HyperLink1;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Boolean_Edit.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace $safeprojectname$
12 | {
13 |
14 |
15 | public partial class Boolean_EditField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.CheckBox CheckBox1;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Enumeration.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace $safeprojectname$
12 | {
13 |
14 |
15 | public partial class EnumerationField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.Literal Literal1;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/ForeignKey.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace $safeprojectname$
12 | {
13 |
14 |
15 | public partial class ForeignKeyField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.HyperLink HyperLink1;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/ManyToMany.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace $safeprojectname$
12 | {
13 |
14 |
15 | public partial class ManyToManyField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.Repeater Repeater1;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/EmailAddress.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace $safeprojectname$
12 | {
13 |
14 |
15 | public partial class EmailAddressField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.HyperLink HyperLink1;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/EntityTemplates/Default_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Default_Edit.ascx.cs" Inherits="DynamicDataBootstrapped.Default_EditEntityTemplate" %>
2 |
3 | <%@ Reference Control="~/DynamicData/EntityTemplates/Default.ascx" %>
4 |
5 |
6 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/ManyToMany_Edit.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace $safeprojectname$
12 | {
13 |
14 |
15 | public partial class ManyToMany_EditField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.CheckBoxList CheckBoxList1;
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/EntityTemplates/Default_Insert.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Default_Insert.ascx.cs" Inherits="DynamicDataBootstrapped.Default_InsertEntityTemplate" %>
2 |
3 | <%@ Reference Control="~/DynamicData/EntityTemplates/Default.ascx" %>
4 |
5 |
6 |
7 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Url_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" AutoEventWireup="true" CodeFile="Url_Edit.ascx.cs" Inherits="DynamicDataBootstrapped.Url_EditField" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/EntityTemplates/Default_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Default_Edit.ascx.cs" Inherits="$safeprojectname$.Default_EditEntityTemplate" %>
2 |
3 | <%@ Reference Control="~/DynamicData/EntityTemplates/Default.ascx" %>
4 |
5 |
6 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/EmailAddress_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" AutoEventWireup="true" CodeFile="EmailAddress_Edit.ascx.cs" Inherits="DynamicDataBootstrapped.EmailAddress_EditField" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/EntityTemplates/Default_Insert.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Default_Insert.ascx.cs" Inherits="$safeprojectname$.Default_InsertEntityTemplate" %>
2 |
3 | <%@ Reference Control="~/DynamicData/EntityTemplates/Default.ascx" %>
4 |
5 |
6 |
7 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Url_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" AutoEventWireup="true" CodeFile="Url_Edit.ascx.cs" Inherits="$safeprojectname$.Url_EditField" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/EmailAddress_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" AutoEventWireup="true" CodeFile="EmailAddress_Edit.ascx.cs" Inherits="$safeprojectname$.EmailAddress_EditField" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Models/NorthwindModel.Designer.cs:
--------------------------------------------------------------------------------
1 | // T4 code generation is enabled for model 'D:\Visual Studio\GitHub\bootstrap-freindly-dynamic-data\BootstrapFreindlyDynamicData\Models\NorthwindModel.edmx'.
2 | // To enable legacy code generation, change the value of the 'Code Generation Strategy' designer
3 | // property to 'Legacy ObjectContext'. This property is available in the Properties Window when the model
4 | // is open in the designer.
5 |
6 | // If no context and entity classes have been generated, it may be because you created an empty model but
7 | // have not yet chosen which version of Entity Framework to use. To generate a context class and entity
8 | // classes for your model, open the model in the designer, right-click on the designer surface, and
9 | // select 'Update Model from Database...', 'Generate Database from Model...', or 'Add Code Generation
10 | // Item...'.
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Boolean.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace DynamicDataBootstrapped
10 | {
11 | public partial class BooleanField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | protected override void OnDataBinding(EventArgs e)
14 | {
15 | base.OnDataBinding(e);
16 |
17 | object val = FieldValue;
18 | if (val != null)
19 | CheckBox1.Checked = (bool)val;
20 | }
21 |
22 | public override Control DataControl
23 | {
24 | get
25 | {
26 | return CheckBox1;
27 | }
28 | }
29 |
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Default.aspx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped {
11 |
12 |
13 | public partial class _Default {
14 |
15 | ///
16 | /// ScriptManagerProxy1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.ScriptManagerProxy ScriptManagerProxy1;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Text.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped {
11 |
12 |
13 | public partial class TextField {
14 |
15 | ///
16 | /// Literal1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.WebControls.Literal Literal1;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Text_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Text_Edit.ascx.cs" Inherits="DynamicDataBootstrapped.Text_EditField" %>
2 |
3 |
8 |
9 |
16 |
23 |
29 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/Filters/Boolean.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped {
11 |
12 |
13 | public partial class BooleanFilter {
14 |
15 | ///
16 | /// DropDownList1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.WebControls.DropDownList DropDownList1;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Boolean.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace $safeprojectname$
10 | {
11 | public partial class BooleanField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | protected override void OnDataBinding(EventArgs e)
14 | {
15 | base.OnDataBinding(e);
16 |
17 | object val = FieldValue;
18 | if (val != null)
19 | CheckBox1.Checked = (bool)val;
20 | }
21 |
22 | public override Control DataControl
23 | {
24 | get
25 | {
26 | return CheckBox1;
27 | }
28 | }
29 |
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/Filters/ForeignKey.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped {
11 |
12 |
13 | public partial class ForeignKeyFilter {
14 |
15 | ///
16 | /// DropDownList1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.WebControls.DropDownList DropDownList1;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/Filters/Enumeration.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped {
11 |
12 |
13 | public partial class EnumerationFilter {
14 |
15 | ///
16 | /// DropDownList1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.WebControls.DropDownList DropDownList1;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/EntityTemplates/Default.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped {
11 |
12 |
13 | public partial class DefaultEntityTemplate {
14 |
15 | ///
16 | /// EntityTemplate1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.DynamicData.EntityTemplate EntityTemplate1;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/Default.aspx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace $safeprojectname$ {
11 |
12 |
13 | public partial class _Default {
14 |
15 | ///
16 | /// ScriptManagerProxy1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.ScriptManagerProxy ScriptManagerProxy1;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Text.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace $safeprojectname$ {
11 |
12 |
13 | public partial class TextField {
14 |
15 | ///
16 | /// Literal1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.WebControls.Literal Literal1;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/EntityTemplates/Default_Edit.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped {
11 |
12 |
13 | public partial class Default_EditEntityTemplate {
14 |
15 | ///
16 | /// EntityTemplate1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.DynamicData.EntityTemplate EntityTemplate1;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/EntityTemplates/Default_Insert.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped {
11 |
12 |
13 | public partial class Default_InsertEntityTemplate {
14 |
15 | ///
16 | /// EntityTemplate1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.DynamicData.EntityTemplate EntityTemplate1;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Text_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Text_Edit.ascx.cs" Inherits="$safeprojectname$.Text_EditField" %>
2 |
3 |
8 |
9 |
16 |
23 |
29 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Filters/Boolean.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace $safeprojectname$ {
11 |
12 |
13 | public partial class BooleanFilter {
14 |
15 | ///
16 | /// DropDownList1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.WebControls.DropDownList DropDownList1;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Models/Region.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated from a template.
4 | //
5 | // Manual changes to this file may cause unexpected behavior in your application.
6 | // Manual changes to this file will be overwritten if the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped.Models
11 | {
12 | using System;
13 | using System.Collections.Generic;
14 |
15 | public partial class Region
16 | {
17 | public Region()
18 | {
19 | this.Territories = new HashSet();
20 | }
21 |
22 | public int RegionID { get; set; }
23 | public string RegionDescription { get; set; }
24 |
25 | public virtual ICollection Territories { get; set; }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Filters/Enumeration.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace $safeprojectname$ {
11 |
12 |
13 | public partial class EnumerationFilter {
14 |
15 | ///
16 | /// DropDownList1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.WebControls.DropDownList DropDownList1;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Filters/ForeignKey.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace $safeprojectname$ {
11 |
12 |
13 | public partial class ForeignKeyFilter {
14 |
15 | ///
16 | /// DropDownList1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.WebControls.DropDownList DropDownList1;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/EmailAddress.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace DynamicDataBootstrapped
10 | {
11 | public partial class EmailAddressField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | protected override void OnDataBinding(EventArgs e)
14 | {
15 | string url = FieldValueString;
16 | if (!url.StartsWith("mailto:", StringComparison.OrdinalIgnoreCase))
17 | {
18 | url = "mailto:" + url;
19 | }
20 | HyperLink1.NavigateUrl = url;
21 | }
22 |
23 | public override Control DataControl
24 | {
25 | get
26 | {
27 | return HyperLink1;
28 | }
29 | }
30 |
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/EntityTemplates/Default.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace $safeprojectname$ {
11 |
12 |
13 | public partial class DefaultEntityTemplate {
14 |
15 | ///
16 | /// EntityTemplate1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.DynamicData.EntityTemplate EntityTemplate1;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/EntityTemplates/Default_Edit.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace $safeprojectname$ {
11 |
12 |
13 | public partial class Default_EditEntityTemplate {
14 |
15 | ///
16 | /// EntityTemplate1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.DynamicData.EntityTemplate EntityTemplate1;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/DateTime_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="DateTime_Edit.ascx.cs" Inherits="DynamicDataBootstrapped.DateTime_EditField" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Models/Shipper.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated from a template.
4 | //
5 | // Manual changes to this file may cause unexpected behavior in your application.
6 | // Manual changes to this file will be overwritten if the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped.Models
11 | {
12 | using System;
13 | using System.Collections.Generic;
14 |
15 | public partial class Shipper
16 | {
17 | public Shipper()
18 | {
19 | this.Orders = new HashSet();
20 | }
21 |
22 | public int ShipperID { get; set; }
23 | public string CompanyName { get; set; }
24 | public string Phone { get; set; }
25 |
26 | public virtual ICollection Orders { get; set; }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/EntityTemplates/Default_Insert.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace $safeprojectname$ {
11 |
12 |
13 | public partial class Default_InsertEntityTemplate {
14 |
15 | ///
16 | /// EntityTemplate1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.DynamicData.EntityTemplate EntityTemplate1;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Url_Edit.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace DynamicDataBootstrapped
12 | {
13 |
14 |
15 | public partial class Url_EditField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.TextBox TextBox1;
19 |
20 | protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1;
21 |
22 | protected global::System.Web.UI.WebControls.RegularExpressionValidator RegularExpressionValidator1;
23 |
24 | protected global::System.Web.DynamicData.DynamicValidator DynamicValidator1;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Models/CustomerDemographic.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated from a template.
4 | //
5 | // Manual changes to this file may cause unexpected behavior in your application.
6 | // Manual changes to this file will be overwritten if the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped.Models
11 | {
12 | using System;
13 | using System.Collections.Generic;
14 |
15 | public partial class CustomerDemographic
16 | {
17 | public CustomerDemographic()
18 | {
19 | this.Customers = new HashSet();
20 | }
21 |
22 | public string CustomerTypeID { get; set; }
23 | public string CustomerDesc { get; set; }
24 |
25 | public virtual ICollection Customers { get; set; }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/MultilineText_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="MultilineText_Edit.ascx.cs" Inherits="DynamicDataBootstrapped.MultilineText_EditField" %>
2 |
3 |
11 |
18 |
25 |
31 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/EmailAddress.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace $safeprojectname$
10 | {
11 | public partial class EmailAddressField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | protected override void OnDataBinding(EventArgs e)
14 | {
15 | string url = FieldValueString;
16 | if (!url.StartsWith("mailto:", StringComparison.OrdinalIgnoreCase))
17 | {
18 | url = "mailto:" + url;
19 | }
20 | HyperLink1.NavigateUrl = url;
21 | }
22 |
23 | public override Control DataControl
24 | {
25 | get
26 | {
27 | return HyperLink1;
28 | }
29 | }
30 |
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/EmailAddress_Edit.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace DynamicDataBootstrapped
12 | {
13 |
14 |
15 | public partial class EmailAddress_EditField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.TextBox TextBox1;
19 |
20 | protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1;
21 |
22 | protected global::System.Web.UI.WebControls.RegularExpressionValidator RegularExpressionValidator1;
23 |
24 | protected global::System.Web.DynamicData.DynamicValidator DynamicValidator1;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Models/Order_Detail.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated from a template.
4 | //
5 | // Manual changes to this file may cause unexpected behavior in your application.
6 | // Manual changes to this file will be overwritten if the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped.Models
11 | {
12 | using System;
13 | using System.Collections.Generic;
14 |
15 | public partial class Order_Detail
16 | {
17 | public int OrderID { get; set; }
18 | public int ProductID { get; set; }
19 | public decimal UnitPrice { get; set; }
20 | public short Quantity { get; set; }
21 | public float Discount { get; set; }
22 |
23 | public virtual Order Order { get; set; }
24 | public virtual Product Product { get; set; }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/DateTime_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="DateTime_Edit.ascx.cs" Inherits="$safeprojectname$.DateTime_EditField" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/MultilineText_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="MultilineText_Edit.ascx.cs" Inherits="$safeprojectname$.MultilineText_EditField" %>
2 |
3 |
11 |
18 |
25 |
31 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Url_Edit.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace $safeprojectname$
12 | {
13 |
14 |
15 | public partial class Url_EditField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.TextBox TextBox1;
19 |
20 | protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1;
21 |
22 | protected global::System.Web.UI.WebControls.RegularExpressionValidator RegularExpressionValidator1;
23 |
24 | protected global::System.Web.DynamicData.DynamicValidator DynamicValidator1;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Boolean_Edit.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace DynamicDataBootstrapped
10 | {
11 | public partial class Boolean_EditField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | protected override void OnDataBinding(EventArgs e)
14 | {
15 | base.OnDataBinding(e);
16 |
17 | object val = FieldValue;
18 | if (val != null)
19 | CheckBox1.Checked = (bool)val;
20 | }
21 |
22 | protected override void ExtractValues(IOrderedDictionary dictionary)
23 | {
24 | dictionary[Column.Name] = CheckBox1.Checked;
25 | }
26 |
27 | public override Control DataControl
28 | {
29 | get
30 | {
31 | return CheckBox1;
32 | }
33 | }
34 |
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Models/Category.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated from a template.
4 | //
5 | // Manual changes to this file may cause unexpected behavior in your application.
6 | // Manual changes to this file will be overwritten if the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped.Models
11 | {
12 | using System;
13 | using System.Collections.Generic;
14 |
15 | public partial class Category
16 | {
17 | public Category()
18 | {
19 | this.Products = new HashSet();
20 | }
21 |
22 | public int CategoryID { get; set; }
23 | public string CategoryName { get; set; }
24 | public string Description { get; set; }
25 | public byte[] Picture { get; set; }
26 |
27 | public virtual ICollection Products { get; set; }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/EmailAddress_Edit.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.17351
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace $safeprojectname$
12 | {
13 |
14 |
15 | public partial class EmailAddress_EditField
16 | {
17 |
18 | protected global::System.Web.UI.WebControls.TextBox TextBox1;
19 |
20 | protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1;
21 |
22 | protected global::System.Web.UI.WebControls.RegularExpressionValidator RegularExpressionValidator1;
23 |
24 | protected global::System.Web.DynamicData.DynamicValidator DynamicValidator1;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Models/Territory.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated from a template.
4 | //
5 | // Manual changes to this file may cause unexpected behavior in your application.
6 | // Manual changes to this file will be overwritten if the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped.Models
11 | {
12 | using System;
13 | using System.Collections.Generic;
14 |
15 | public partial class Territory
16 | {
17 | public Territory()
18 | {
19 | this.Employees = new HashSet();
20 | }
21 |
22 | public string TerritoryID { get; set; }
23 | public string TerritoryDescription { get; set; }
24 | public int RegionID { get; set; }
25 |
26 | public virtual Region Region { get; set; }
27 | public virtual ICollection Employees { get; set; }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Boolean_Edit.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace $safeprojectname$
10 | {
11 | public partial class Boolean_EditField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | protected override void OnDataBinding(EventArgs e)
14 | {
15 | base.OnDataBinding(e);
16 |
17 | object val = FieldValue;
18 | if (val != null)
19 | CheckBox1.Checked = (bool)val;
20 | }
21 |
22 | protected override void ExtractValues(IOrderedDictionary dictionary)
23 | {
24 | dictionary[Column.Name] = CheckBox1.Checked;
25 | }
26 |
27 | public override Control DataControl
28 | {
29 | get
30 | {
31 | return CheckBox1;
32 | }
33 | }
34 |
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Url.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace DynamicDataBootstrapped
10 | {
11 | public partial class UrlField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | protected override void OnDataBinding(EventArgs e)
14 | {
15 | HyperLinkUrl.NavigateUrl = ProcessUrl(FieldValueString);
16 | }
17 |
18 | private string ProcessUrl(string url)
19 | {
20 | if (url.StartsWith("http://", StringComparison.OrdinalIgnoreCase) || url.StartsWith("https://", StringComparison.OrdinalIgnoreCase))
21 | {
22 | return url;
23 | }
24 |
25 | return "http://" + url;
26 | }
27 |
28 | public override Control DataControl
29 | {
30 | get
31 | {
32 | return HyperLinkUrl;
33 | }
34 | }
35 |
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData.sln.GhostDoc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | D:\GitHub\bootstrap-freindly-dynamic-data\BootstrapFriendlyDynamicData\Help
13 |
14 |
15 | true
16 | false
17 | false
18 | false
19 |
20 |
21 | true
22 | false
23 | false
24 | false
25 | true
26 | false
27 |
28 |
29 | true
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Content/table-rounded.less:
--------------------------------------------------------------------------------
1 | /* Back to Bootstrap 2 rounded tables */
2 |
3 | .add-rounded-tables(@border-color: #ccc) {
4 | .table-rounded {
5 | border-collapse: separate;
6 | border: solid @border-color 1px;
7 | border-radius: 6px;
8 | border-left: 0px;
9 | border-top: 0px;
10 |
11 | & > thead:first-child > tr:first-child > th {
12 | border-bottom: 0px;
13 | border-top: solid @border-color 1px;
14 | }
15 |
16 | & td,
17 | & th {
18 | border-left: 1px solid @border-color;
19 | border-top: 1px solid @border-color;
20 | }
21 |
22 | & > :first-child > :first-child > :first-child {
23 | border-top-left-radius: 6px;
24 | }
25 |
26 | & > :first-child > :first-child > :last-child {
27 | border-top-right-radius: 6px;
28 | }
29 |
30 | & > :last-child > :last-child > :first-child {
31 | border-bottom-left-radius: 6px;
32 | }
33 |
34 | & > :last-child > :last-child > :last-child {
35 | border-bottom-right-radius: 6px;
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Url.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace $safeprojectname$
10 | {
11 | public partial class UrlField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | protected override void OnDataBinding(EventArgs e)
14 | {
15 | HyperLinkUrl.NavigateUrl = ProcessUrl(FieldValueString);
16 | }
17 |
18 | private string ProcessUrl(string url)
19 | {
20 | if (url.StartsWith("http://", StringComparison.OrdinalIgnoreCase) || url.StartsWith("https://", StringComparison.OrdinalIgnoreCase))
21 | {
22 | return url;
23 | }
24 |
25 | return "http://" + url;
26 | }
27 |
28 | public override Control DataControl
29 | {
30 | get
31 | {
32 | return HyperLinkUrl;
33 | }
34 | }
35 |
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Decimal_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Decimal_Edit.ascx.cs" Inherits="DynamicDataBootstrapped.Decimal_EditField" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
10 |
11 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Integer_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Integer_Edit.ascx.cs" Inherits="DynamicDataBootstrapped.Integer_EditField" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
10 |
11 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/MultilineText_Edit.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace DynamicDataBootstrapped
10 | {
11 | public partial class MultilineText_EditField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | protected void Page_Load(object sender, EventArgs e)
14 | {
15 | TextBox1.MaxLength = Column.MaxLength;
16 | TextBox1.ToolTip = Column.Description;
17 |
18 | SetUpValidator(RequiredFieldValidator1);
19 | SetUpValidator(RegularExpressionValidator1);
20 | SetUpValidator(DynamicValidator1);
21 | }
22 |
23 | protected override void ExtractValues(IOrderedDictionary dictionary)
24 | {
25 | dictionary[Column.Name] = ConvertEditedValue(TextBox1.Text);
26 | }
27 |
28 | public override Control DataControl
29 | {
30 | get
31 | {
32 | return TextBox1;
33 | }
34 | }
35 |
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/Content/table-rounded.less:
--------------------------------------------------------------------------------
1 | /* Back to Bootstrap 2 rounded tables */
2 |
3 | .add-rounded-tables(@border-color: #ccc) {
4 | .table-rounded {
5 | border-collapse: separate;
6 | border: solid @border-color 1px;
7 | border-radius: 6px;
8 | border-left: 0px;
9 | border-top: 0px;
10 |
11 | & > thead:first-child > tr:first-child > th {
12 | border-bottom: 0px;
13 | border-top: solid @border-color 1px;
14 | }
15 |
16 | & td,
17 | & th {
18 | border-left: 1px solid @border-color;
19 | border-top: 1px solid @border-color;
20 | }
21 |
22 | & > :first-child > :first-child > :first-child {
23 | border-top-left-radius: 6px;
24 | }
25 |
26 | & > :first-child > :first-child > :last-child {
27 | border-top-right-radius: 6px;
28 | }
29 |
30 | & > :last-child > :last-child > :first-child {
31 | border-bottom-left-radius: 6px;
32 | }
33 |
34 | & > :last-child > :last-child > :last-child {
35 | border-bottom-right-radius: 6px;
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Decimal_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Decimal_Edit.ascx.cs" Inherits="$safeprojectname$.Decimal_EditField" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
10 |
11 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Integer_Edit.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="Integer_Edit.ascx.cs" Inherits="$safeprojectname$.Integer_EditField" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
10 |
11 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Decimal_Edit.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace DynamicDataBootstrapped
10 | {
11 | public partial class Decimal_EditField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | protected void Page_Load(object sender, EventArgs e)
14 | {
15 | TextBox1.ToolTip = Column.Description;
16 |
17 | SetUpValidator(RequiredFieldValidator1);
18 | SetUpValidator(CompareValidator1);
19 | SetUpValidator(RegularExpressionValidator1);
20 | SetUpValidator(RangeValidator1);
21 | SetUpValidator(DynamicValidator1);
22 | }
23 |
24 | protected override void ExtractValues(IOrderedDictionary dictionary)
25 | {
26 | dictionary[Column.Name] = ConvertEditedValue(TextBox1.Text);
27 | }
28 |
29 | public override Control DataControl
30 | {
31 | get
32 | {
33 | return TextBox1;
34 | }
35 | }
36 |
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Integer_Edit.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace DynamicDataBootstrapped
10 | {
11 | public partial class Integer_EditField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | protected void Page_Load(object sender, EventArgs e)
14 | {
15 | TextBox1.ToolTip = Column.Description;
16 |
17 | SetUpValidator(RequiredFieldValidator1);
18 | SetUpValidator(CompareValidator1);
19 | SetUpValidator(RegularExpressionValidator1);
20 | SetUpValidator(RangeValidator1);
21 | SetUpValidator(DynamicValidator1);
22 | }
23 |
24 | protected override void ExtractValues(IOrderedDictionary dictionary)
25 | {
26 | dictionary[Column.Name] = ConvertEditedValue(TextBox1.Text);
27 | }
28 |
29 | public override Control DataControl
30 | {
31 | get
32 | {
33 | return TextBox1;
34 | }
35 | }
36 |
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Enumeration.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace DynamicDataBootstrapped
10 | {
11 | public partial class EnumerationField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | public override Control DataControl
14 | {
15 | get
16 | {
17 | return Literal1;
18 | }
19 | }
20 |
21 | public string EnumFieldValueString
22 | {
23 | get
24 | {
25 | if (FieldValue == null)
26 | {
27 | return FieldValueString;
28 | }
29 |
30 | Type enumType = Column.GetEnumType();
31 | if (enumType != null)
32 | {
33 | object enumValue = System.Enum.ToObject(enumType, FieldValue);
34 | return FormatFieldValue(enumValue);
35 | }
36 |
37 | return FieldValueString;
38 | }
39 | }
40 |
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Text.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace DynamicDataBootstrapped
10 | {
11 | public partial class TextField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | private const int MAX_DISPLAYLENGTH_IN_LIST = 25;
14 |
15 | public override string FieldValueString
16 | {
17 | get
18 | {
19 | string value = base.FieldValueString;
20 | if (ContainerType == ContainerType.List)
21 | {
22 | if (value != null && value.Length > MAX_DISPLAYLENGTH_IN_LIST)
23 | {
24 | value = value.Substring(0, MAX_DISPLAYLENGTH_IN_LIST - 3) + "...";
25 | }
26 | }
27 | return value;
28 | }
29 | }
30 |
31 | public override Control DataControl
32 | {
33 | get
34 | {
35 | return Literal1;
36 | }
37 | }
38 |
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/MultilineText_Edit.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace $safeprojectname$
10 | {
11 | public partial class MultilineText_EditField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | protected void Page_Load(object sender, EventArgs e)
14 | {
15 | TextBox1.MaxLength = Column.MaxLength;
16 | TextBox1.ToolTip = Column.Description;
17 |
18 | SetUpValidator(RequiredFieldValidator1);
19 | SetUpValidator(RegularExpressionValidator1);
20 | SetUpValidator(DynamicValidator1);
21 | }
22 |
23 | protected override void ExtractValues(IOrderedDictionary dictionary)
24 | {
25 | dictionary[Column.Name] = ConvertEditedValue(TextBox1.Text);
26 | }
27 |
28 | public override Control DataControl
29 | {
30 | get
31 | {
32 | return TextBox1;
33 | }
34 | }
35 |
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Site.master.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel.DataAnnotations;
3 | using System.Web.DynamicData;
4 | using System.Web.UI.WebControls;
5 |
6 | namespace DynamicDataBootstrapped
7 | {
8 | public partial class Site : System.Web.UI.MasterPage
9 | {
10 | protected void Page_Init(object sender, EventArgs e)
11 | {
12 | if (!IsPostBack)
13 | {
14 | System.Collections.IList visibleTables = Global.DefaultModel.VisibleTables;
15 | if (visibleTables.Count == 0)
16 | throw new InvalidOperationException("There are no accessible tables. Make sure that at least one data model is registered in Global.asax and scaffolding is enabled or implement custom pages.");
17 |
18 | Menu1.Items.Add(new MenuItem("Home", "Home") { NavigateUrl = "~/Default.aspx" });
19 | var tables = new MenuItem("Tables") { Selectable = false };
20 | foreach (MetaTable table in visibleTables)
21 | {
22 | tables.ChildItems.Add(new MenuItem(table.DisplayName, table.Name) { NavigateUrl = table.ListActionPath });
23 | }
24 | Menu1.Items.Add(tables);
25 | }
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Decimal_Edit.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace $safeprojectname$
10 | {
11 | public partial class Decimal_EditField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | protected void Page_Load(object sender, EventArgs e)
14 | {
15 | TextBox1.ToolTip = Column.Description;
16 |
17 | SetUpValidator(RequiredFieldValidator1);
18 | SetUpValidator(CompareValidator1);
19 | SetUpValidator(RegularExpressionValidator1);
20 | SetUpValidator(RangeValidator1);
21 | SetUpValidator(DynamicValidator1);
22 | }
23 |
24 | protected override void ExtractValues(IOrderedDictionary dictionary)
25 | {
26 | dictionary[Column.Name] = ConvertEditedValue(TextBox1.Text);
27 | }
28 |
29 | public override Control DataControl
30 | {
31 | get
32 | {
33 | return TextBox1;
34 | }
35 | }
36 |
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Integer_Edit.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace $safeprojectname$
10 | {
11 | public partial class Integer_EditField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | protected void Page_Load(object sender, EventArgs e)
14 | {
15 | TextBox1.ToolTip = Column.Description;
16 |
17 | SetUpValidator(RequiredFieldValidator1);
18 | SetUpValidator(CompareValidator1);
19 | SetUpValidator(RegularExpressionValidator1);
20 | SetUpValidator(RangeValidator1);
21 | SetUpValidator(DynamicValidator1);
22 | }
23 |
24 | protected override void ExtractValues(IOrderedDictionary dictionary)
25 | {
26 | dictionary[Column.Name] = ConvertEditedValue(TextBox1.Text);
27 | }
28 |
29 | public override Control DataControl
30 | {
31 | get
32 | {
33 | return TextBox1;
34 | }
35 | }
36 |
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Enumeration.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace $safeprojectname$
10 | {
11 | public partial class EnumerationField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | public override Control DataControl
14 | {
15 | get
16 | {
17 | return Literal1;
18 | }
19 | }
20 |
21 | public string EnumFieldValueString
22 | {
23 | get
24 | {
25 | if (FieldValue == null)
26 | {
27 | return FieldValueString;
28 | }
29 |
30 | Type enumType = Column.GetEnumType();
31 | if (enumType != null)
32 | {
33 | object enumValue = System.Enum.ToObject(enumType, FieldValue);
34 | return FormatFieldValue(enumValue);
35 | }
36 |
37 | return FieldValueString;
38 | }
39 | }
40 |
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Text.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace $safeprojectname$
10 | {
11 | public partial class TextField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | private const int MAX_DISPLAYLENGTH_IN_LIST = 25;
14 |
15 | public override string FieldValueString
16 | {
17 | get
18 | {
19 | string value = base.FieldValueString;
20 | if (ContainerType == ContainerType.List)
21 | {
22 | if (value != null && value.Length > MAX_DISPLAYLENGTH_IN_LIST)
23 | {
24 | value = value.Substring(0, MAX_DISPLAYLENGTH_IN_LIST - 3) + "...";
25 | }
26 | }
27 | return value;
28 | }
29 | }
30 |
31 | public override Control DataControl
32 | {
33 | get
34 | {
35 | return Literal1;
36 | }
37 | }
38 |
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Content/Site.less:
--------------------------------------------------------------------------------
1 | @import 'table-rounded';
2 | .add-rounded-tables;
3 |
4 | .form-group {
5 | input[type=checkbox] {
6 | margin-top: 9px;
7 | }
8 |
9 | a {
10 | line-height: 34px;
11 | }
12 | }
13 |
14 | .filters {
15 | .form-group {
16 | margin-bottom: 4px;
17 |
18 | &:last-child {
19 | margin-bottom: 0;
20 | }
21 | }
22 | }
23 |
24 | .btn-round {
25 | font-size: 10px;
26 | content: "";
27 | vertical-align: middle;
28 | width: 18px !important;
29 | height: 18px;
30 | padding: 1.5px 2px 2px 2px;
31 | border-radius: 15px;
32 | text-align: center;
33 | }
34 |
35 | .btn-round-large {
36 | font-size: 14px;
37 | content: "";
38 | vertical-align: middle;
39 | width: 28px !important;
40 | height: 28px;
41 | padding: 4px 6px 5px 5px;
42 | border-radius: 15px;
43 | text-align: center;
44 | }
45 |
46 | .table {
47 | margin-bottom: 0;
48 | }
49 |
50 | .table-overflow {
51 | overflow-x: auto;
52 | overflow-y: hidden;
53 | -ms-overflow-style: -ms-autohiding-scrollbar;
54 | -webkit-overflow-scrolling: touch;
55 | padding-bottom: 0;
56 | }
57 |
58 | .spacer {
59 | margin-bottom: 8px;
60 | }
61 |
62 | .navbar-default{
63 | margin-bottom: 4px;
64 | }
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Content/Site.min.css:
--------------------------------------------------------------------------------
1 | .table-rounded{border-collapse:separate;border:solid #ccc 1px;border-radius:6px;border-left:0;border-top:0}.table-rounded>thead:first-child>tr:first-child>th{border-bottom:0;border-top:solid #ccc 1px}.table-rounded td,.table-rounded th{border-left:1px solid #ccc;border-top:1px solid #ccc}.table-rounded>:first-child>:first-child>:first-child{border-top-left-radius:6px}.table-rounded>:first-child>:first-child>:last-child{border-top-right-radius:6px}.table-rounded>:last-child>:last-child>:first-child{border-bottom-left-radius:6px}.table-rounded>:last-child>:last-child>:last-child{border-bottom-right-radius:6px}.form-group input[type=checkbox]{margin-top:9px}.form-group a{line-height:34px}.filters .form-group{margin-bottom:4px}.filters .form-group:last-child{margin-bottom:0}.btn-round{font-size:10px;content:"";vertical-align:middle;width:18px!important;height:18px;padding:1.5px 2px 2px 2px;border-radius:15px;text-align:center}.btn-round-large{font-size:14px;content:"";vertical-align:middle;width:28px!important;height:28px;padding:4px 6px 5px 5px;border-radius:15px;text-align:center}.table{margin-bottom:0}.table-overflow{overflow-x:auto;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-overflow-scrolling:touch;padding-bottom:0}.spacer{margin-bottom:8px}.navbar-default{margin-bottom:4px}
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/Site.master.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel.DataAnnotations;
3 | using System.Web.DynamicData;
4 | using System.Web.UI.WebControls;
5 |
6 | namespace $safeprojectname$
7 | {
8 | public partial class Site : System.Web.UI.MasterPage
9 | {
10 | protected void Page_Init(object sender, EventArgs e)
11 | {
12 | if (!IsPostBack)
13 | {
14 | System.Collections.IList visibleTables = Global.DefaultModel.VisibleTables;
15 | if (visibleTables.Count == 0)
16 | throw new InvalidOperationException("There are no accessible tables. Make sure that at least one data model is registered in Global.asax and scaffolding is enabled or implement custom pages.");
17 |
18 | Menu1.Items.Add(new MenuItem("Home", "Home") { NavigateUrl = "~/Default.aspx" });
19 | var tables = new MenuItem("Tables") { Selectable = false };
20 | foreach (MetaTable table in visibleTables)
21 | {
22 | tables.ChildItems.Add(new MenuItem(table.DisplayName, table.Name) { NavigateUrl = table.ListActionPath });
23 | }
24 | Menu1.Items.Add(tables);
25 | }
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/Content/Site.less:
--------------------------------------------------------------------------------
1 | @import 'table-rounded';
2 | .add-rounded-tables;
3 |
4 | .form-group {
5 | input[type=checkbox] {
6 | margin-top: 9px;
7 | }
8 |
9 | a {
10 | line-height: 34px;
11 | }
12 | }
13 |
14 | .filters {
15 | .form-group {
16 | margin-bottom: 4px;
17 |
18 | &:last-child {
19 | margin-bottom: 0;
20 | }
21 | }
22 | }
23 |
24 | .btn-round {
25 | font-size: 10px;
26 | content: "";
27 | vertical-align: middle;
28 | width: 18px !important;
29 | height: 18px;
30 | padding: 1.5px 2px 2px 2px;
31 | border-radius: 15px;
32 | text-align: center;
33 | }
34 |
35 | .btn-round-large {
36 | font-size: 14px;
37 | content: "";
38 | vertical-align: middle;
39 | width: 28px !important;
40 | height: 28px;
41 | padding: 4px 6px 5px 5px;
42 | border-radius: 15px;
43 | text-align: center;
44 | }
45 |
46 | .table {
47 | margin-bottom: 0;
48 | }
49 |
50 | .table-overflow {
51 | overflow-x: auto;
52 | overflow-y: hidden;
53 | -ms-overflow-style: -ms-autohiding-scrollbar;
54 | -webkit-overflow-scrolling: touch;
55 | padding-bottom: 0;
56 | }
57 |
58 | .spacer {
59 | margin-bottom: 8px;
60 | }
61 |
62 | .navbar-default{
63 | margin-bottom: 4px;
64 | }
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/Content/Site.min.css:
--------------------------------------------------------------------------------
1 | .table-rounded{border-collapse:separate;border:solid #ccc 1px;border-radius:6px;border-left:0;border-top:0}.table-rounded>thead:first-child>tr:first-child>th{border-bottom:0;border-top:solid #ccc 1px}.table-rounded td,.table-rounded th{border-left:1px solid #ccc;border-top:1px solid #ccc}.table-rounded>:first-child>:first-child>:first-child{border-top-left-radius:6px}.table-rounded>:first-child>:first-child>:last-child{border-top-right-radius:6px}.table-rounded>:last-child>:last-child>:first-child{border-bottom-left-radius:6px}.table-rounded>:last-child>:last-child>:last-child{border-bottom-right-radius:6px}.form-group input[type=checkbox]{margin-top:9px}.form-group a{line-height:34px}.filters .form-group{margin-bottom:4px}.filters .form-group:last-child{margin-bottom:0}.btn-round{font-size:10px;content:"";vertical-align:middle;width:18px!important;height:18px;padding:1.5px 2px 2px 2px;border-radius:15px;text-align:center}.btn-round-large{font-size:14px;content:"";vertical-align:middle;width:28px!important;height:28px;padding:4px 6px 5px 5px;border-radius:15px;text-align:center}.table{margin-bottom:0}.table-overflow{overflow-x:auto;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-overflow-scrolling:touch;padding-bottom:0}.spacer{margin-bottom:8px}.navbar-default{margin-bottom:4px}
--------------------------------------------------------------------------------
/ProjectTemplate/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("ProjectTemplate")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("ProjectTemplate")]
13 | [assembly: AssemblyCopyright("")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // Version information for an assembly consists of the following four values:
23 | //
24 | // Major Version
25 | // Minor Version
26 | // Build Number
27 | // Revision
28 | //
29 | // You can specify all the values or you can default the Build and Revision Numbers
30 | // by using the '*' as shown below:
31 | // [assembly: AssemblyVersion("1.0.*")]
32 | [assembly: AssemblyVersion("1.0.0.0")]
33 | [assembly: AssemblyFileVersion("1.0.0.0")]
34 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/web.Debug.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
29 |
30 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/EntityTemplates/Default.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.DynamicData;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace DynamicDataBootstrapped
10 | {
11 | public partial class DefaultEntityTemplate : System.Web.DynamicData.EntityTemplateUserControl
12 | {
13 | private MetaColumn currentColumn;
14 |
15 | protected override void OnLoad(EventArgs e)
16 | {
17 | foreach (MetaColumn column in Table.GetScaffoldColumns(Mode, ContainerType))
18 | {
19 | currentColumn = column;
20 | Control item = new _NamingContainer();
21 | EntityTemplate1.ItemTemplate.InstantiateIn(item);
22 | EntityTemplate1.Controls.Add(item);
23 | }
24 | }
25 |
26 | protected void Label_Init(object sender, EventArgs e)
27 | {
28 | Label label = (Label)sender;
29 | label.Text = currentColumn.DisplayName;
30 | }
31 |
32 | protected void DynamicControl_Init(object sender, EventArgs e)
33 | {
34 | DynamicControl dynamicControl = (DynamicControl)sender;
35 | dynamicControl.DataField = currentColumn.Name;
36 | }
37 |
38 | public class _NamingContainer : Control, INamingContainer { }
39 |
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/web.Debug.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
29 |
30 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Models/Supplier.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated from a template.
4 | //
5 | // Manual changes to this file may cause unexpected behavior in your application.
6 | // Manual changes to this file will be overwritten if the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped.Models
11 | {
12 | using System;
13 | using System.Collections.Generic;
14 |
15 | public partial class Supplier
16 | {
17 | public Supplier()
18 | {
19 | this.Products = new HashSet();
20 | }
21 |
22 | public int SupplierID { get; set; }
23 | public string CompanyName { get; set; }
24 | public string ContactName { get; set; }
25 | public string ContactTitle { get; set; }
26 | public string Address { get; set; }
27 | public string City { get; set; }
28 | public string Region { get; set; }
29 | public string PostalCode { get; set; }
30 | public string Country { get; set; }
31 | public string Phone { get; set; }
32 | public string Fax { get; set; }
33 | public string HomePage { get; set; }
34 |
35 | public virtual ICollection Products { get; set; }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/web.Release.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
19 |
30 |
31 |
--------------------------------------------------------------------------------
/ProjectTemplate/source.extension.vsixmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | BootstrapFreindlyDynamicDataProjectTemplate
6 | Bootstrap Freindly Dynamic Data Entity Framework Project Template
7 | http://csharpbits.notaclue.net/2013/07/bootstrap-friendly-dynamic-data.html
8 | BootstrapFriendlyDynamicDataProjectTemplate.ico
9 | BootstrapFriendlyDynamicDataProjectPreviewMedium.png
10 | Bootstrap,Dynamic Data,Entity Framework
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/EntityTemplates/Default.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.DynamicData;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace $safeprojectname$
10 | {
11 | public partial class DefaultEntityTemplate : System.Web.DynamicData.EntityTemplateUserControl
12 | {
13 | private MetaColumn currentColumn;
14 |
15 | protected override void OnLoad(EventArgs e)
16 | {
17 | foreach (MetaColumn column in Table.GetScaffoldColumns(Mode, ContainerType))
18 | {
19 | currentColumn = column;
20 | Control item = new _NamingContainer();
21 | EntityTemplate1.ItemTemplate.InstantiateIn(item);
22 | EntityTemplate1.Controls.Add(item);
23 | }
24 | }
25 |
26 | protected void Label_Init(object sender, EventArgs e)
27 | {
28 | Label label = (Label)sender;
29 | label.Text = currentColumn.DisplayName;
30 | }
31 |
32 | protected void DynamicControl_Init(object sender, EventArgs e)
33 | {
34 | DynamicControl dynamicControl = (DynamicControl)sender;
35 | dynamicControl.DataField = currentColumn.Name;
36 | }
37 |
38 | public class _NamingContainer : Control, INamingContainer { }
39 |
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/web.Release.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
19 |
30 |
31 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("DynamicDataBootstrapped")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("DynamicDataBootstrapped")]
13 | [assembly: AssemblyCopyright("Copyright © 2013")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("1679717f-e94f-4e44-bd7b-ecfe267f5dca")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Revision and Build Numbers
33 | // by using the '*' as shown below:
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/PageTemplates/Insert.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web.Routing;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 | using System.Web.UI.WebControls.Expressions;
9 |
10 | namespace DynamicDataBootstrapped
11 | {
12 | public partial class Insert : System.Web.UI.Page
13 | {
14 | protected MetaTable table;
15 |
16 | protected void Page_Init(object sender, EventArgs e)
17 | {
18 | table = DynamicDataRouteHandler.GetRequestMetaTable(Context);
19 | FormView1.SetMetaTable(table, table.GetColumnValuesFromRoute(Context));
20 | DetailsDataSource.EntityTypeFilter = table.EntityType.Name;
21 | }
22 |
23 | protected void Page_Load(object sender, EventArgs e)
24 | {
25 | Title = table.DisplayName;
26 | }
27 |
28 | protected void FormView1_ItemCommand(object sender, FormViewCommandEventArgs e)
29 | {
30 | if (e.CommandName == DataControlCommands.CancelCommandName)
31 | {
32 | Response.Redirect(table.ListActionPath);
33 | }
34 | }
35 |
36 | protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
37 | {
38 | if (e.Exception == null || e.ExceptionHandled)
39 | {
40 | Response.Redirect(table.ListActionPath);
41 | }
42 | }
43 |
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Models/Customer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated from a template.
4 | //
5 | // Manual changes to this file may cause unexpected behavior in your application.
6 | // Manual changes to this file will be overwritten if the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped.Models
11 | {
12 | using System;
13 | using System.Collections.Generic;
14 |
15 | public partial class Customer
16 | {
17 | public Customer()
18 | {
19 | this.Orders = new HashSet();
20 | this.CustomerDemographics = new HashSet();
21 | }
22 |
23 | public string CustomerID { get; set; }
24 | public string CompanyName { get; set; }
25 | public string ContactName { get; set; }
26 | public string ContactTitle { get; set; }
27 | public string Address { get; set; }
28 | public string City { get; set; }
29 | public string Region { get; set; }
30 | public string PostalCode { get; set; }
31 | public string Country { get; set; }
32 | public string Phone { get; set; }
33 | public string Fax { get; set; }
34 |
35 | public virtual ICollection Orders { get; set; }
36 | public virtual ICollection CustomerDemographics { get; set; }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Models/Product.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated from a template.
4 | //
5 | // Manual changes to this file may cause unexpected behavior in your application.
6 | // Manual changes to this file will be overwritten if the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped.Models
11 | {
12 | using System;
13 | using System.Collections.Generic;
14 |
15 | public partial class Product
16 | {
17 | public Product()
18 | {
19 | this.Order_Details = new HashSet();
20 | }
21 |
22 | public int ProductID { get; set; }
23 | public string ProductName { get; set; }
24 | public Nullable SupplierID { get; set; }
25 | public Nullable CategoryID { get; set; }
26 | public string QuantityPerUnit { get; set; }
27 | public Nullable UnitPrice { get; set; }
28 | public Nullable UnitsInStock { get; set; }
29 | public Nullable UnitsOnOrder { get; set; }
30 | public Nullable ReorderLevel { get; set; }
31 | public bool Discontinued { get; set; }
32 |
33 | public virtual Category Category { get; set; }
34 | public virtual ICollection Order_Details { get; set; }
35 | public virtual Supplier Supplier { get; set; }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("$safeprojectname$")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("$safeprojectname$")]
13 | [assembly: AssemblyCopyright("Copyright © 2013")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("1679717f-e94f-4e44-bd7b-ecfe267f5dca")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Revision and Build Numbers
33 | // by using the '*' as shown below:
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Url_Edit.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace DynamicDataBootstrapped
10 | {
11 | public partial class Url_EditField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | protected void Page_Load(object sender, EventArgs e)
14 | {
15 | if (Column.MaxLength < 20)
16 | {
17 | TextBox1.Columns = Column.MaxLength;
18 | }
19 | TextBox1.ToolTip = Column.Description;
20 |
21 | SetUpValidator(RequiredFieldValidator1);
22 | SetUpValidator(RegularExpressionValidator1);
23 | SetUpValidator(DynamicValidator1);
24 | }
25 |
26 | protected override void OnDataBinding(EventArgs e)
27 | {
28 | base.OnDataBinding(e);
29 | if (Column.MaxLength > 0)
30 | {
31 | TextBox1.MaxLength = Math.Max(FieldValueEditString.Length, Column.MaxLength);
32 | }
33 | }
34 |
35 | protected override void ExtractValues(IOrderedDictionary dictionary)
36 | {
37 | dictionary[Column.Name] = ConvertEditedValue(TextBox1.Text);
38 | }
39 |
40 | public override Control DataControl
41 | {
42 | get
43 | {
44 | return TextBox1;
45 | }
46 | }
47 |
48 | }
49 | }
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Text_Edit.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace DynamicDataBootstrapped
10 | {
11 | public partial class Text_EditField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | protected void Page_Load(object sender, EventArgs e)
14 | {
15 | if (Column.MaxLength < 20)
16 | {
17 | TextBox1.Columns = Column.MaxLength;
18 | }
19 | TextBox1.ToolTip = Column.Description;
20 |
21 | SetUpValidator(RequiredFieldValidator1);
22 | SetUpValidator(RegularExpressionValidator1);
23 | SetUpValidator(DynamicValidator1);
24 | }
25 |
26 | protected override void OnDataBinding(EventArgs e)
27 | {
28 | base.OnDataBinding(e);
29 | if (Column.MaxLength > 0)
30 | {
31 | TextBox1.MaxLength = Math.Max(FieldValueEditString.Length, Column.MaxLength);
32 | }
33 | }
34 |
35 | protected override void ExtractValues(IOrderedDictionary dictionary)
36 | {
37 | dictionary[Column.Name] = ConvertEditedValue(TextBox1.Text);
38 | }
39 |
40 | public override Control DataControl
41 | {
42 | get
43 | {
44 | return TextBox1;
45 | }
46 | }
47 |
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/PageTemplates/Edit.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web.Routing;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 | using System.Web.UI.WebControls.Expressions;
9 |
10 | namespace DynamicDataBootstrapped
11 | {
12 | public partial class Edit : System.Web.UI.Page
13 | {
14 | protected MetaTable table;
15 |
16 | protected void Page_Init(object sender, EventArgs e)
17 | {
18 | table = DynamicDataRouteHandler.GetRequestMetaTable(Context);
19 | FormView1.SetMetaTable(table);
20 | DetailsDataSource.EntityTypeFilter = table.EntityType.Name;
21 | }
22 |
23 | protected void Page_Load(object sender, EventArgs e)
24 | {
25 | Title = table.DisplayName;
26 | DetailsDataSource.Include = table.ForeignKeyColumnsNames;
27 | }
28 |
29 | protected void FormView1_ItemCommand(object sender, FormViewCommandEventArgs e)
30 | {
31 | if (e.CommandName == DataControlCommands.CancelCommandName)
32 | {
33 | Response.Redirect(table.ListActionPath);
34 | }
35 | }
36 |
37 | protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
38 | {
39 | if (e.Exception == null || e.ExceptionHandled)
40 | {
41 | Response.Redirect(table.ListActionPath);
42 | }
43 | }
44 |
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/EmailAddress_Edit.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace DynamicDataBootstrapped
10 | {
11 | public partial class EmailAddress_EditField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | protected void Page_Load(object sender, EventArgs e)
14 | {
15 | if (Column.MaxLength < 20)
16 | {
17 | TextBox1.Columns = Column.MaxLength;
18 | }
19 | TextBox1.ToolTip = Column.Description;
20 |
21 | SetUpValidator(RequiredFieldValidator1);
22 | SetUpValidator(RegularExpressionValidator1);
23 | SetUpValidator(DynamicValidator1);
24 | }
25 |
26 | protected override void OnDataBinding(EventArgs e)
27 | {
28 | base.OnDataBinding(e);
29 | if (Column.MaxLength > 0)
30 | {
31 | TextBox1.MaxLength = Math.Max(FieldValueEditString.Length, Column.MaxLength);
32 | }
33 | }
34 |
35 | protected override void ExtractValues(IOrderedDictionary dictionary)
36 | {
37 | dictionary[Column.Name] = ConvertEditedValue(TextBox1.Text);
38 | }
39 |
40 | public override Control DataControl
41 | {
42 | get
43 | {
44 | return TextBox1;
45 | }
46 | }
47 |
48 | }
49 | }
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/PageTemplates/Details.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web.Routing;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 | using System.Web.UI.WebControls.Expressions;
9 |
10 | namespace DynamicDataBootstrapped
11 | {
12 | public partial class Details : System.Web.UI.Page
13 | {
14 | protected MetaTable table;
15 |
16 | protected void Page_Init(object sender, EventArgs e)
17 | {
18 | table = DynamicDataRouteHandler.GetRequestMetaTable(Context);
19 | FormView1.SetMetaTable(table);
20 | DetailsDataSource.EntityTypeFilter = table.EntityType.Name;
21 | }
22 |
23 | protected void Page_Load(object sender, EventArgs e)
24 | {
25 | Title = table.DisplayName;
26 | DetailsDataSource.Include = table.ForeignKeyColumnsNames;
27 | }
28 |
29 | protected void FormView1_ItemCommand(object sender, FormViewCommandEventArgs e)
30 | {
31 | if (e.CommandName == DataControlCommands.CancelCommandName)
32 | {
33 | Response.Redirect(table.ListActionPath);
34 | }
35 | }
36 |
37 | protected void FormView1_ItemDeleted(object sender, FormViewDeletedEventArgs e)
38 | {
39 | if (e.Exception == null || e.ExceptionHandled)
40 | {
41 | Response.Redirect(table.ListActionPath);
42 | }
43 | }
44 |
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/PageTemplates/Insert.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web.Routing;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 | using System.Web.UI.WebControls.Expressions;
9 |
10 | namespace $safeprojectname$
11 | {
12 | public partial class Insert : System.Web.UI.Page
13 | {
14 | protected MetaTable table;
15 |
16 | protected void Page_Init(object sender, EventArgs e)
17 | {
18 | table = DynamicDataRouteHandler.GetRequestMetaTable(Context);
19 | FormView1.SetMetaTable(table, table.GetColumnValuesFromRoute(Context));
20 | DetailsDataSource.EntityTypeFilter = table.EntityType.Name;
21 | }
22 |
23 | protected void Page_Load(object sender, EventArgs e)
24 | {
25 | Title = table.DisplayName;
26 | }
27 |
28 | protected void FormView1_ItemCommand(object sender, FormViewCommandEventArgs e)
29 | {
30 | if (e.CommandName == DataControlCommands.CancelCommandName)
31 | {
32 | Response.Redirect(table.ListActionPath);
33 | }
34 | }
35 |
36 | protected void FormView1_ItemInserted(object sender, FormViewInsertedEventArgs e)
37 | {
38 | if (e.Exception == null || e.ExceptionHandled)
39 | {
40 | Response.Redirect(table.ListActionPath);
41 | }
42 | }
43 |
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Url_Edit.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace $safeprojectname$
10 | {
11 | public partial class Url_EditField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | protected void Page_Load(object sender, EventArgs e)
14 | {
15 | if (Column.MaxLength < 20)
16 | {
17 | TextBox1.Columns = Column.MaxLength;
18 | }
19 | TextBox1.ToolTip = Column.Description;
20 |
21 | SetUpValidator(RequiredFieldValidator1);
22 | SetUpValidator(RegularExpressionValidator1);
23 | SetUpValidator(DynamicValidator1);
24 | }
25 |
26 | protected override void OnDataBinding(EventArgs e)
27 | {
28 | base.OnDataBinding(e);
29 | if (Column.MaxLength > 0)
30 | {
31 | TextBox1.MaxLength = Math.Max(FieldValueEditString.Length, Column.MaxLength);
32 | }
33 | }
34 |
35 | protected override void ExtractValues(IOrderedDictionary dictionary)
36 | {
37 | dictionary[Column.Name] = ConvertEditedValue(TextBox1.Text);
38 | }
39 |
40 | public override Control DataControl
41 | {
42 | get
43 | {
44 | return TextBox1;
45 | }
46 | }
47 |
48 | }
49 | }
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/ManyToMany.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections;
3 | using System.ComponentModel;
4 | using System.ComponentModel.DataAnnotations;
5 | using System.Data.Objects;
6 | using System.Data.Objects.DataClasses;
7 | using System.Web.DynamicData;
8 | using System.Web.UI;
9 | using System.Web.UI.WebControls;
10 |
11 | namespace DynamicDataBootstrapped
12 | {
13 | public partial class ManyToManyField : System.Web.DynamicData.FieldTemplateUserControl
14 | {
15 | protected override void OnDataBinding(EventArgs e)
16 | {
17 | base.OnDataBinding(e);
18 |
19 | object entity;
20 | ICustomTypeDescriptor rowDescriptor = Row as ICustomTypeDescriptor;
21 | if (rowDescriptor != null)
22 | {
23 | entity = rowDescriptor.GetPropertyOwner(null);
24 | }
25 | else
26 | {
27 | entity = Row;
28 | }
29 |
30 | var entityCollection = Column.EntityTypeProperty.GetValue(entity, null);
31 | var realEntityCollection = entityCollection as RelatedEnd;
32 | if (realEntityCollection != null && !realEntityCollection.IsLoaded)
33 | {
34 | realEntityCollection.Load();
35 | }
36 |
37 | Repeater1.DataSource = entityCollection;
38 | Repeater1.DataBind();
39 | }
40 |
41 | public override Control DataControl
42 | {
43 | get
44 | {
45 | return Repeater1;
46 | }
47 | }
48 |
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Text_Edit.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace $safeprojectname$
10 | {
11 | public partial class Text_EditField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | protected void Page_Load(object sender, EventArgs e)
14 | {
15 | if (Column.MaxLength < 20)
16 | {
17 | TextBox1.Columns = Column.MaxLength;
18 | }
19 | TextBox1.ToolTip = Column.Description;
20 |
21 | SetUpValidator(RequiredFieldValidator1);
22 | SetUpValidator(RegularExpressionValidator1);
23 | SetUpValidator(DynamicValidator1);
24 | }
25 |
26 | protected override void OnDataBinding(EventArgs e)
27 | {
28 | base.OnDataBinding(e);
29 | if (Column.MaxLength > 0)
30 | {
31 | TextBox1.MaxLength = Math.Max(FieldValueEditString.Length, Column.MaxLength);
32 | }
33 | }
34 |
35 | protected override void ExtractValues(IOrderedDictionary dictionary)
36 | {
37 | dictionary[Column.Name] = ConvertEditedValue(TextBox1.Text);
38 | }
39 |
40 | public override Control DataControl
41 | {
42 | get
43 | {
44 | return TextBox1;
45 | }
46 | }
47 |
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/PageTemplates/Edit.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web.Routing;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 | using System.Web.UI.WebControls.Expressions;
9 |
10 | namespace $safeprojectname$
11 | {
12 | public partial class Edit : System.Web.UI.Page
13 | {
14 | protected MetaTable table;
15 |
16 | protected void Page_Init(object sender, EventArgs e)
17 | {
18 | table = DynamicDataRouteHandler.GetRequestMetaTable(Context);
19 | FormView1.SetMetaTable(table);
20 | DetailsDataSource.EntityTypeFilter = table.EntityType.Name;
21 | }
22 |
23 | protected void Page_Load(object sender, EventArgs e)
24 | {
25 | Title = table.DisplayName;
26 | DetailsDataSource.Include = table.ForeignKeyColumnsNames;
27 | }
28 |
29 | protected void FormView1_ItemCommand(object sender, FormViewCommandEventArgs e)
30 | {
31 | if (e.CommandName == DataControlCommands.CancelCommandName)
32 | {
33 | Response.Redirect(table.ListActionPath);
34 | }
35 | }
36 |
37 | protected void FormView1_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
38 | {
39 | if (e.Exception == null || e.ExceptionHandled)
40 | {
41 | Response.Redirect(table.ListActionPath);
42 | }
43 | }
44 |
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/PageTemplates/Details.aspx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web.Routing;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 | using System.Web.UI.WebControls.Expressions;
9 |
10 | namespace $safeprojectname$
11 | {
12 | public partial class Details : System.Web.UI.Page
13 | {
14 | protected MetaTable table;
15 |
16 | protected void Page_Init(object sender, EventArgs e)
17 | {
18 | table = DynamicDataRouteHandler.GetRequestMetaTable(Context);
19 | FormView1.SetMetaTable(table);
20 | DetailsDataSource.EntityTypeFilter = table.EntityType.Name;
21 | }
22 |
23 | protected void Page_Load(object sender, EventArgs e)
24 | {
25 | Title = table.DisplayName;
26 | DetailsDataSource.Include = table.ForeignKeyColumnsNames;
27 | }
28 |
29 | protected void FormView1_ItemCommand(object sender, FormViewCommandEventArgs e)
30 | {
31 | if (e.CommandName == DataControlCommands.CancelCommandName)
32 | {
33 | Response.Redirect(table.ListActionPath);
34 | }
35 | }
36 |
37 | protected void FormView1_ItemDeleted(object sender, FormViewDeletedEventArgs e)
38 | {
39 | if (e.Exception == null || e.ExceptionHandled)
40 | {
41 | Response.Redirect(table.ListActionPath);
42 | }
43 | }
44 |
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/EmailAddress_Edit.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace $safeprojectname$
10 | {
11 | public partial class EmailAddress_EditField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | protected void Page_Load(object sender, EventArgs e)
14 | {
15 | if (Column.MaxLength < 20)
16 | {
17 | TextBox1.Columns = Column.MaxLength;
18 | }
19 | TextBox1.ToolTip = Column.Description;
20 |
21 | SetUpValidator(RequiredFieldValidator1);
22 | SetUpValidator(RegularExpressionValidator1);
23 | SetUpValidator(DynamicValidator1);
24 | }
25 |
26 | protected override void OnDataBinding(EventArgs e)
27 | {
28 | base.OnDataBinding(e);
29 | if (Column.MaxLength > 0)
30 | {
31 | TextBox1.MaxLength = Math.Max(FieldValueEditString.Length, Column.MaxLength);
32 | }
33 | }
34 |
35 | protected override void ExtractValues(IOrderedDictionary dictionary)
36 | {
37 | dictionary[Column.Name] = ConvertEditedValue(TextBox1.Text);
38 | }
39 |
40 | public override Control DataControl
41 | {
42 | get
43 | {
44 | return TextBox1;
45 | }
46 | }
47 |
48 | }
49 | }
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/ManyToMany.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections;
3 | using System.ComponentModel;
4 | using System.ComponentModel.DataAnnotations;
5 | using System.Data.Objects;
6 | using System.Data.Objects.DataClasses;
7 | using System.Web.DynamicData;
8 | using System.Web.UI;
9 | using System.Web.UI.WebControls;
10 |
11 | namespace $safeprojectname$
12 | {
13 | public partial class ManyToManyField : System.Web.DynamicData.FieldTemplateUserControl
14 | {
15 | protected override void OnDataBinding(EventArgs e)
16 | {
17 | base.OnDataBinding(e);
18 |
19 | object entity;
20 | ICustomTypeDescriptor rowDescriptor = Row as ICustomTypeDescriptor;
21 | if (rowDescriptor != null)
22 | {
23 | entity = rowDescriptor.GetPropertyOwner(null);
24 | }
25 | else
26 | {
27 | entity = Row;
28 | }
29 |
30 | var entityCollection = Column.EntityTypeProperty.GetValue(entity, null);
31 | var realEntityCollection = entityCollection as RelatedEnd;
32 | if (realEntityCollection != null && !realEntityCollection.IsLoaded)
33 | {
34 | realEntityCollection.Load();
35 | }
36 |
37 | Repeater1.DataSource = entityCollection;
38 | Repeater1.DataBind();
39 | }
40 |
41 | public override Control DataControl
42 | {
43 | get
44 | {
45 | return Repeater1;
46 | }
47 | }
48 |
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Models/NorthwindModel.Context.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated from a template.
4 | //
5 | // Manual changes to this file may cause unexpected behavior in your application.
6 | // Manual changes to this file will be overwritten if the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped.Models
11 | {
12 | using System;
13 | using System.Data.Entity;
14 | using System.Data.Entity.Infrastructure;
15 |
16 | public partial class NorthwindEntities : DbContext
17 | {
18 | public NorthwindEntities()
19 | : base("name=NorthwindEntities")
20 | {
21 | }
22 |
23 | protected override void OnModelCreating(DbModelBuilder modelBuilder)
24 | {
25 | throw new UnintentionalCodeFirstException();
26 | }
27 |
28 | public DbSet Categories { get; set; }
29 | public DbSet CustomerDemographics { get; set; }
30 | public DbSet Customers { get; set; }
31 | public DbSet Employees { get; set; }
32 | public DbSet Order_Details { get; set; }
33 | public DbSet Orders { get; set; }
34 | public DbSet Products { get; set; }
35 | public DbSet Regions { get; set; }
36 | public DbSet Shippers { get; set; }
37 | public DbSet Suppliers { get; set; }
38 | public DbSet Territories { get; set; }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/ForeignKey_Edit.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped {
11 |
12 |
13 | public partial class ForeignKey_EditField {
14 |
15 | ///
16 | /// DropDownList1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.WebControls.DropDownList DropDownList1;
23 |
24 | ///
25 | /// RequiredFieldValidator1 control.
26 | ///
27 | ///
28 | /// Auto-generated field.
29 | /// To modify move field declaration from designer file to code-behind file.
30 | ///
31 | protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1;
32 |
33 | ///
34 | /// DynamicValidator1 control.
35 | ///
36 | ///
37 | /// Auto-generated field.
38 | /// To modify move field declaration from designer file to code-behind file.
39 | ///
40 | protected global::System.Web.DynamicData.DynamicValidator DynamicValidator1;
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Enumeration_Edit.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped {
11 |
12 |
13 | public partial class Enumeration_EditField {
14 |
15 | ///
16 | /// DropDownList1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.WebControls.DropDownList DropDownList1;
23 |
24 | ///
25 | /// RequiredFieldValidator1 control.
26 | ///
27 | ///
28 | /// Auto-generated field.
29 | /// To modify move field declaration from designer file to code-behind file.
30 | ///
31 | protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1;
32 |
33 | ///
34 | /// DynamicValidator1 control.
35 | ///
36 | ///
37 | /// Auto-generated field.
38 | /// To modify move field declaration from designer file to code-behind file.
39 | ///
40 | protected global::System.Web.DynamicData.DynamicValidator DynamicValidator1;
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Enumeration_Edit.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace $safeprojectname$ {
11 |
12 |
13 | public partial class Enumeration_EditField {
14 |
15 | ///
16 | /// DropDownList1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.WebControls.DropDownList DropDownList1;
23 |
24 | ///
25 | /// RequiredFieldValidator1 control.
26 | ///
27 | ///
28 | /// Auto-generated field.
29 | /// To modify move field declaration from designer file to code-behind file.
30 | ///
31 | protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1;
32 |
33 | ///
34 | /// DynamicValidator1 control.
35 | ///
36 | ///
37 | /// Auto-generated field.
38 | /// To modify move field declaration from designer file to code-behind file.
39 | ///
40 | protected global::System.Web.DynamicData.DynamicValidator DynamicValidator1;
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/ForeignKey_Edit.ascx.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace $safeprojectname$ {
11 |
12 |
13 | public partial class ForeignKey_EditField {
14 |
15 | ///
16 | /// DropDownList1 control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.WebControls.DropDownList DropDownList1;
23 |
24 | ///
25 | /// RequiredFieldValidator1 control.
26 | ///
27 | ///
28 | /// Auto-generated field.
29 | /// To modify move field declaration from designer file to code-behind file.
30 | ///
31 | protected global::System.Web.UI.WebControls.RequiredFieldValidator RequiredFieldValidator1;
32 |
33 | ///
34 | /// DynamicValidator1 control.
35 | ///
36 | ///
37 | /// Auto-generated field.
38 | /// To modify move field declaration from designer file to code-behind file.
39 | ///
40 | protected global::System.Web.DynamicData.DynamicValidator DynamicValidator1;
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Models/Order.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated from a template.
4 | //
5 | // Manual changes to this file may cause unexpected behavior in your application.
6 | // Manual changes to this file will be overwritten if the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped.Models
11 | {
12 | using System;
13 | using System.Collections.Generic;
14 |
15 | public partial class Order
16 | {
17 | public Order()
18 | {
19 | this.Order_Details = new HashSet();
20 | }
21 |
22 | public int OrderID { get; set; }
23 | public string CustomerID { get; set; }
24 | public Nullable EmployeeID { get; set; }
25 | public Nullable OrderDate { get; set; }
26 | public Nullable RequiredDate { get; set; }
27 | public Nullable ShippedDate { get; set; }
28 | public Nullable ShipVia { get; set; }
29 | public Nullable Freight { get; set; }
30 | public string ShipName { get; set; }
31 | public string ShipAddress { get; set; }
32 | public string ShipCity { get; set; }
33 | public string ShipRegion { get; set; }
34 | public string ShipPostalCode { get; set; }
35 | public string ShipCountry { get; set; }
36 |
37 | public virtual Customer Customer { get; set; }
38 | public virtual Employee Employee { get; set; }
39 | public virtual ICollection Order_Details { get; set; }
40 | public virtual Shipper Shipper { get; set; }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/Children.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace DynamicDataBootstrapped
10 | {
11 | public partial class ChildrenField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | private bool _allowNavigation = true;
14 | private string _navigateUrl;
15 |
16 | public string NavigateUrl
17 | {
18 | get
19 | {
20 | return _navigateUrl;
21 | }
22 | set
23 | {
24 | _navigateUrl = value;
25 | }
26 | }
27 |
28 | public bool AllowNavigation
29 | {
30 | get
31 | {
32 | return _allowNavigation;
33 | }
34 | set
35 | {
36 | _allowNavigation = value;
37 | }
38 | }
39 |
40 | protected void Page_Load(object sender, EventArgs e)
41 | {
42 | HyperLink1.Text = "View " + ChildrenColumn.ChildTable.DisplayName;
43 | }
44 |
45 | protected string GetChildrenPath()
46 | {
47 | if (!AllowNavigation)
48 | {
49 | return null;
50 | }
51 |
52 | if (String.IsNullOrEmpty(NavigateUrl))
53 | {
54 | return ChildrenPath;
55 | }
56 | else
57 | {
58 | return BuildChildrenPath(NavigateUrl);
59 | }
60 | }
61 |
62 | public override Control DataControl
63 | {
64 | get
65 | {
66 | return HyperLink1;
67 | }
68 | }
69 |
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/web.config:
--------------------------------------------------------------------------------
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 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/Content/GridViewPager.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="GridViewPager.ascx.cs" Inherits="DynamicDataBootstrapped.GridViewPager" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | of
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/FieldTemplates/Children.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace $safeprojectname$
10 | {
11 | public partial class ChildrenField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | private bool _allowNavigation = true;
14 | private string _navigateUrl;
15 |
16 | public string NavigateUrl
17 | {
18 | get
19 | {
20 | return _navigateUrl;
21 | }
22 | set
23 | {
24 | _navigateUrl = value;
25 | }
26 | }
27 |
28 | public bool AllowNavigation
29 | {
30 | get
31 | {
32 | return _allowNavigation;
33 | }
34 | set
35 | {
36 | _allowNavigation = value;
37 | }
38 | }
39 |
40 | protected void Page_Load(object sender, EventArgs e)
41 | {
42 | HyperLink1.Text = "View " + ChildrenColumn.ChildTable.DisplayName;
43 | }
44 |
45 | protected string GetChildrenPath()
46 | {
47 | if (!AllowNavigation)
48 | {
49 | return null;
50 | }
51 |
52 | if (String.IsNullOrEmpty(NavigateUrl))
53 | {
54 | return ChildrenPath;
55 | }
56 | else
57 | {
58 | return BuildChildrenPath(NavigateUrl);
59 | }
60 | }
61 |
62 | public override Control DataControl
63 | {
64 | get
65 | {
66 | return HyperLink1;
67 | }
68 | }
69 |
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/EntityTemplates/Default_Edit.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.DynamicData;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace DynamicDataBootstrapped
10 | {
11 | public partial class Default_EditEntityTemplate : System.Web.DynamicData.EntityTemplateUserControl
12 | {
13 | private MetaColumn currentColumn;
14 |
15 | protected override void OnLoad(EventArgs e)
16 | {
17 | foreach (MetaColumn column in Table.GetScaffoldColumns(Mode, ContainerType))
18 | {
19 | currentColumn = column;
20 | Control item = new DefaultEntityTemplate._NamingContainer();
21 | EntityTemplate1.ItemTemplate.InstantiateIn(item);
22 | EntityTemplate1.Controls.Add(item);
23 | }
24 | }
25 |
26 | protected void Label_Init(object sender, EventArgs e)
27 | {
28 | Label label = (Label)sender;
29 | label.Text = currentColumn.DisplayName;
30 | }
31 |
32 | protected void Label_PreRender(object sender, EventArgs e)
33 | {
34 | Label label = (Label)sender;
35 | DynamicControl dynamicControl = (DynamicControl)label.FindControl("DynamicControl");
36 | FieldTemplateUserControl ftuc = dynamicControl.FieldTemplate as FieldTemplateUserControl;
37 | if (ftuc != null && ftuc.DataControl != null)
38 | {
39 | label.AssociatedControlID = ftuc.DataControl.GetUniqueIDRelativeTo(label);
40 | }
41 | }
42 |
43 | protected void DynamicControl_Init(object sender, EventArgs e)
44 | {
45 | DynamicControl dynamicControl = (DynamicControl)sender;
46 | dynamicControl.DataField = currentColumn.Name;
47 | }
48 |
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/EntityTemplates/Default_Insert.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.DynamicData;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace DynamicDataBootstrapped
10 | {
11 | public partial class Default_InsertEntityTemplate : System.Web.DynamicData.EntityTemplateUserControl
12 | {
13 | private MetaColumn currentColumn;
14 |
15 | protected override void OnLoad(EventArgs e)
16 | {
17 | foreach (MetaColumn column in Table.GetScaffoldColumns(Mode, ContainerType))
18 | {
19 | currentColumn = column;
20 | Control item = new DefaultEntityTemplate._NamingContainer();
21 | EntityTemplate1.ItemTemplate.InstantiateIn(item);
22 | EntityTemplate1.Controls.Add(item);
23 | }
24 | }
25 |
26 | protected void Label_Init(object sender, EventArgs e)
27 | {
28 | Label label = (Label)sender;
29 | label.Text = currentColumn.DisplayName;
30 | }
31 |
32 | protected void Label_PreRender(object sender, EventArgs e)
33 | {
34 | Label label = (Label)sender;
35 | DynamicControl dynamicControl = (DynamicControl)label.FindControl("DynamicControl");
36 | FieldTemplateUserControl ftuc = dynamicControl.FieldTemplate as FieldTemplateUserControl;
37 | if (ftuc != null && ftuc.DataControl != null)
38 | {
39 | label.AssociatedControlID = ftuc.DataControl.GetUniqueIDRelativeTo(label);
40 | }
41 | }
42 |
43 | protected void DynamicControl_Init(object sender, EventArgs e)
44 | {
45 | DynamicControl dynamicControl = (DynamicControl)sender;
46 | dynamicControl.DataField = currentColumn.Name;
47 | }
48 |
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/Content/GridViewPager.ascx:
--------------------------------------------------------------------------------
1 | <%@ Control Language="C#" CodeBehind="GridViewPager.ascx.cs" Inherits="$safeprojectname$.GridViewPager" %>
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | of
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/Site.master.designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | //
5 | // Changes to this file may cause incorrect behavior and will be lost if
6 | // the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace DynamicDataBootstrapped {
11 |
12 |
13 | public partial class Site {
14 |
15 | ///
16 | /// head control.
17 | ///
18 | ///
19 | /// Auto-generated field.
20 | /// To modify move field declaration from designer file to code-behind file.
21 | ///
22 | protected global::System.Web.UI.WebControls.ContentPlaceHolder head;
23 |
24 | ///
25 | /// form1 control.
26 | ///
27 | ///
28 | /// Auto-generated field.
29 | /// To modify move field declaration from designer file to code-behind file.
30 | ///
31 | protected global::System.Web.UI.HtmlControls.HtmlForm form1;
32 |
33 | ///
34 | /// Menu1 control.
35 | ///
36 | ///
37 | /// Auto-generated field.
38 | /// To modify move field declaration from designer file to code-behind file.
39 | ///
40 | protected global::System.Web.UI.WebControls.Menu Menu1;
41 |
42 | ///
43 | /// ContentPlaceHolder1 control.
44 | ///
45 | ///
46 | /// Auto-generated field.
47 | /// To modify move field declaration from designer file to code-behind file.
48 | ///
49 | protected global::System.Web.UI.WebControls.ContentPlaceHolder ContentPlaceHolder1;
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/BootstrapFriendlyDynamicData/DynamicData/FieldTemplates/ForeignKey.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Specialized;
3 | using System.ComponentModel.DataAnnotations;
4 | using System.Web.DynamicData;
5 | using System.Web;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace DynamicDataBootstrapped
10 | {
11 | public partial class ForeignKeyField : System.Web.DynamicData.FieldTemplateUserControl
12 | {
13 | private bool _allowNavigation = true;
14 |
15 | public string NavigateUrl
16 | {
17 | get;
18 | set;
19 | }
20 |
21 | public bool AllowNavigation
22 | {
23 | get
24 | {
25 | return _allowNavigation;
26 | }
27 | set
28 | {
29 | _allowNavigation = value;
30 | }
31 | }
32 |
33 | protected string GetDisplayString()
34 | {
35 | object value = FieldValue;
36 |
37 | if (value == null)
38 | {
39 | return FormatFieldValue(ForeignKeyColumn.GetForeignKeyString(Row));
40 | }
41 | else
42 | {
43 | return FormatFieldValue(ForeignKeyColumn.ParentTable.GetDisplayString(value));
44 | }
45 | }
46 |
47 | protected string GetNavigateUrl()
48 | {
49 | if (!AllowNavigation)
50 | {
51 | return null;
52 | }
53 |
54 | if (String.IsNullOrEmpty(NavigateUrl))
55 | {
56 | return ForeignKeyPath;
57 | }
58 | else
59 | {
60 | return BuildForeignKeyPath(NavigateUrl);
61 | }
62 | }
63 |
64 | public override Control DataControl
65 | {
66 | get
67 | {
68 | return HyperLink1;
69 | }
70 | }
71 |
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/EntityTemplates/Default_Edit.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.DynamicData;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace $safeprojectname$
10 | {
11 | public partial class Default_EditEntityTemplate : System.Web.DynamicData.EntityTemplateUserControl
12 | {
13 | private MetaColumn currentColumn;
14 |
15 | protected override void OnLoad(EventArgs e)
16 | {
17 | foreach (MetaColumn column in Table.GetScaffoldColumns(Mode, ContainerType))
18 | {
19 | currentColumn = column;
20 | Control item = new DefaultEntityTemplate._NamingContainer();
21 | EntityTemplate1.ItemTemplate.InstantiateIn(item);
22 | EntityTemplate1.Controls.Add(item);
23 | }
24 | }
25 |
26 | protected void Label_Init(object sender, EventArgs e)
27 | {
28 | Label label = (Label)sender;
29 | label.Text = currentColumn.DisplayName;
30 | }
31 |
32 | protected void Label_PreRender(object sender, EventArgs e)
33 | {
34 | Label label = (Label)sender;
35 | DynamicControl dynamicControl = (DynamicControl)label.FindControl("DynamicControl");
36 | FieldTemplateUserControl ftuc = dynamicControl.FieldTemplate as FieldTemplateUserControl;
37 | if (ftuc != null && ftuc.DataControl != null)
38 | {
39 | label.AssociatedControlID = ftuc.DataControl.GetUniqueIDRelativeTo(label);
40 | }
41 | }
42 |
43 | protected void DynamicControl_Init(object sender, EventArgs e)
44 | {
45 | DynamicControl dynamicControl = (DynamicControl)sender;
46 | dynamicControl.DataField = currentColumn.Name;
47 | }
48 |
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/ProjectTemplate/ProjectTemplates/BootstrapFreindlyDynamicDataProjectTemplate/DynamicData/EntityTemplates/Default_Insert.ascx.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.DynamicData;
6 | using System.Web.UI;
7 | using System.Web.UI.WebControls;
8 |
9 | namespace $safeprojectname$
10 | {
11 | public partial class Default_InsertEntityTemplate : System.Web.DynamicData.EntityTemplateUserControl
12 | {
13 | private MetaColumn currentColumn;
14 |
15 | protected override void OnLoad(EventArgs e)
16 | {
17 | foreach (MetaColumn column in Table.GetScaffoldColumns(Mode, ContainerType))
18 | {
19 | currentColumn = column;
20 | Control item = new DefaultEntityTemplate._NamingContainer();
21 | EntityTemplate1.ItemTemplate.InstantiateIn(item);
22 | EntityTemplate1.Controls.Add(item);
23 | }
24 | }
25 |
26 | protected void Label_Init(object sender, EventArgs e)
27 | {
28 | Label label = (Label)sender;
29 | label.Text = currentColumn.DisplayName;
30 | }
31 |
32 | protected void Label_PreRender(object sender, EventArgs e)
33 | {
34 | Label label = (Label)sender;
35 | DynamicControl dynamicControl = (DynamicControl)label.FindControl("DynamicControl");
36 | FieldTemplateUserControl ftuc = dynamicControl.FieldTemplate as FieldTemplateUserControl;
37 | if (ftuc != null && ftuc.DataControl != null)
38 | {
39 | label.AssociatedControlID = ftuc.DataControl.GetUniqueIDRelativeTo(label);
40 | }
41 | }
42 |
43 | protected void DynamicControl_Init(object sender, EventArgs e)
44 | {
45 | DynamicControl dynamicControl = (DynamicControl)sender;
46 | dynamicControl.DataField = currentColumn.Name;
47 | }
48 |
49 | }
50 | }
51 |
--------------------------------------------------------------------------------