Using data binding expressions


show more Using data binding expressions provides you with in-depth training on Developer. Taught by David Gassner as part of the ASP.NET Essential Training show less
please wait ...

Using data binding expressions

There is another available approach for getting data out of a server control and displaying that data on the screen, using server-side data binding. Data binding is a particular syntax style that allows you to refer to a property of a server control and display or otherwise use that property in another server control. For this demonstration, I'll be using the file UsingDataBinding.aspx and a dissociated code file. Notice that in this version of the file, the panel at the bottom of the page contains three labels, named fnameLabel, lnameLabel and dobLabel. I'll select that code and then take a look at it in Source View.

Notice that it's an ASP panel, a server- side container that's translated into a <div > tag. And then the markup that you see is a combination of conventional HTML markup, such as the <strong > tags with the text, First Name, and server controls such as this Label control with an ID of fnameLabel. Here is how you implement data binding. You pla...

Using data binding expressions
Video duration: 4m 8s 6h 24m Beginner Updated Feb 13, 2013

Viewers:

Using data binding expressions provides you with in-depth training on Developer. Taught by David Gassner as part of the ASP.NET Essential Training

Subjects:
Developer Web
Software:
ASP.NET
Author:
please wait ...