Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Per Hemmingson
Mar 8, 2008
  10053
(0 votes)

Databinding in asp.net 3.5

MIX08 seminar "Bring your data to life with WPF".

Anson Tsao from Microsoft talk about how to databind in Windows Presentation foundation and what's new in Asp.net 3.5 as well as a changing user interface during and after development and how to adapt to that.

First of, what is databinding?

  • Target: Dependent Property
  • Source: any public property (CLR and WPF properties)

In WPF you can now databind to other properties, e.g. opacity, rotation etc. The demo was pretty basic and already well known to all that has already used WPF. Anyhow, I found it useful and it showed you can do simple neat things with databinding and some layout skills (..) to your web app. You can watch it online at http://sessions.visitmix.com/

Summarized up, what's new in asp.net 3.5

  • New debugging Mechanism
  • Support for IdataErrorInfo
  • Alternative syntax for Datavalidation
  • and Linq support

Happy Binding,

Per

Mar 08, 2008

Comments

Sep 21, 2010 10:32 AM

how to use data gridview in asp.net3.5??????
/ ashish

Sep 21, 2010 10:32 AM

In your code:

Because the View is responsible to render the model, we will do the data binding in the code-behind of the View.

public partial class Products : ViewPage>

{

public void Page_Load()

{

productList.DataSource = ViewData;

productList.DataBind();

}

}

You do not include a declaration of the productList ListView. Normally this would be handled via a designer partial class that is generated with the ViewPage, but my desinger does not produce this partial class.

Is there something I am missing here? I am producing a compile time error using the technique you are showing.


/ sheshdhar, HCL Infosystems

Please login to comment.
Latest blogs
Removing a Segment from the URL in Optimizely CMS 12 using Partial Routing

Problem Statement In Optimizely CMS 12, dynamically generated pages inherit URL segments from their container pages. However, in certain cases, som...

Adnan Zameer | Mar 14, 2025 |

Optimizely Configured Commerce and Spire CMS - Figuring out Handlers

I recently entered the world of Optimizely Configured Commerce and Spire CMS. Intriguing, interesting and challenging at the same time, especially...

Ritu Madan | Mar 12, 2025

Another console app for calling the Optimizely CMS REST API

Introducing a Spectre.Console.Cli app for exploring an Optimizely SaaS CMS instance and to source code control definitions.

Johan Kronberg | Mar 11, 2025 |

Extending UrlResolver to Generate Lowercase Links in Optimizely CMS 12

When working with Optimizely CMS 12, URL consistency is crucial for SEO and usability. By default, Optimizely does not enforce lowercase URLs, whic...

Santiago Morla | Mar 7, 2025 |