Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Per Hemmingson
Mar 8, 2008
  9855
(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
Solving the mystery of high memory usage

Sometimes, my work is easy, the problem could be resolved with one look (when I’m lucky enough to look at where it needs to be looked, just like th...

Quan Mai | Apr 22, 2024 | Syndicated blog

Search & Navigation reporting improvements

From version 16.1.0 there are some updates on the statistics pages: Add pagination to search phrase list Allows choosing a custom date range to get...

Phong | Apr 22, 2024

Optimizely and the never-ending story of the missing globe!

I've worked with Optimizely CMS for 14 years, and there are two things I'm obsessed with: Link validation and the globe that keeps disappearing on...

Tomas Hensrud Gulla | Apr 18, 2024 | Syndicated blog

Visitor Groups Usage Report For Optimizely CMS 12

This add-on offers detailed information on how visitor groups are used and how effective they are within Optimizely CMS. Editors can monitor and...

Adnan Zameer | Apr 18, 2024 | Syndicated blog