Databinder Examples
Home
|
Docs
|
Support
|
WebLog
|
Purchase
|
Contact us
Help
Home
|
Reset Page
|
Page created: 5/21/2012 7:25:15 PM
This page demonstrates simple control binding using a business object to a Linq To Sql Entity in a standard Postback interface. Fields are bound to product entity which are bound on first load or product change. Data is then automatically unbound into the entity when the Save button is clicked. Although binding here binds against a single entity you can bind multiple entities or data sources with a single DataBinder.
Select a Product:
Aniseed Syrup
Boston Crab Meat
Camembert Pierrot
Carnarvon Tigers
Chai
Chang
Chartreuse verte
Chef Anton's Cajun Seasoning
Chef Anton's Gumbo Mix
Chocolade
Côte de Blaye
Escargots de Bourgogne
Filo Mix
Flotemysost
Frank's Frizzy Fryers
Geitost
Genen Shouyu
Gnocchi di nonna Alice
Gorgonzola Telino
Grandma's Boysenberry Spread
Gravad lax
Guaraná Fantástica
Gudbrandsdalsost
Gula Malacca
Gumbär Gummibärchen
Gustaf's Knäckebröd
Ikura
Inlagd Sill
Ipoh Coffee
Jack's New England Clam Chowder
Konbu
Lakkalikööri
Laughing Lumberjack Lager
Longlife Tofu
Louisiana Fiery Hot Pepper Sauce
Louisiana Hot Spiced Okra
Manjimup Dried Apples
Mascarpone Fabioli
Maxilaku
Mishi Kobe Niku
Mozzarella di Giovanni
Nord-Ost Matjeshering
Northwoods Cranberry Sauce
NuNuCa Nuß-Nougat-Creme
Original Frankfurter grüne Soße
Outback Lager
Pâté chinois
Pavlova
Perth Pasties
Queso Cabrales
Queso Manchego La Pastora
Raclette Courdavault
Ravioli Angelo
Rhönbräu Klosterbier
Röd Kaviar
Rogede sild
Rössle Sauerkraut
Sasquatch Ale
Schoggi Schokolade
Scottish Longbreads
Singaporean Hokkien Fried Mee
Sir Rodney's Marmalade
Sir Rodney's Scones
Sirop d'érable
Spegesild
Steeleye Stout
Tarte au sucre
Teatime Chocolate Biscuits
Thüringer Rostbratwurst
Tofu
Tourtière
Tunnbröd
Uncle Bob's Organic Dried Pears
Valkoinen suklaa
Vegie-spread
Wimmers gute Semmelknödel
Zaanse koeken
New
Product Information
Pk:
Product Name:
Category:
Beverages
Condiments
Confections
Dairy Products
Grains/Cereals
Meat/Poultry
Produce
Seafood
Supplier:
Aux joyeux ecclésiastiques
Bigfoot Breweries
Cooperativa de Quesos 'Las Cabras'
Escargots Nouveaux
Exotic Liquids
Forêts d'érables
Formaggi Fortini s.r.l.
Gai pâturage
G'day, Mate
Grandma Kelly's Homestead
Heli Süßwaren GmbH & Co. KG
Karkki Oy
Leka Trading
Lyngbysild
Ma Maison
Mayumi's
New England Seafood Cannery
New Orleans Cajun Delights
Nord-Ost-Fisch Handelsgesellschaft mbH
Norske Meierier
Pasta Buttini s.r.l.
Pavlova, Ltd.
PB Knäckebröd AB
Plutzer Lebensmittelgroßmärkte AG
Refrescos Americanas LTDA
Specialty Biscuits, Ltd.
Svensk Sjöföda AB
Tokyo Traders
Zaanse Snoepfabriek
Unit Information
Unit Price:
Units in Stock:
Reorder Level:
Units on Order:
Expected on:
Discontinued
Binding to arbitrary Page Objects
Show these values in Save message
StringVar:
DecimalVar:
DateVar:
Null DateVar:
BoolVar:
Is it true?
Title of this Page:
Things to try on this page:
Leave the product name blank
you should see a business object rule validation binding error
Put in invalid numeric or date data
you should see binding errors in the appropriate controls.
Set the Page Title field
This field is bound to this.Title (Page.Title) and should affect the HTML document title of the page via binding.
Check the Show these Value in Save message
Then change some of the fields that are bound to an arbitrary standalone object. You should see the values echo'd back after a successful save operation. Note that you can bind controls to any object including to Page properties.