Solved

WPF Application and WPF Browser app

Posted on 2010-08-20
9
494 Views
Last Modified: 2013-11-27
Hi Experts,
I am getting into WPF but are struggling with databinding from dataset to WPF designer as follows;
When I drag & drop a datset from datasources onto the grid (WPF application project) all code is  generated correctly, XAML and code behind and data is displayed correctly when you run the app.
When I do the same using WPF browser app, the XAML is created correctly but with no code behind. When you run it, the controls are displayed in the browser but no data.
If I use similar code behind (for the connection string, etc.) as was generated in the WPF windows app (that works) the same result. Controls are displayed but no data
What am I missing?
Please help!
I am using Visual Studio 2010 (VB)
0
Comment
Question by:esps
  • 3
9 Comments
 
LVL 29

Expert Comment

by:Gautham Janardhan
Comment Utility
Its probably a permissions or trust issue..There were so many things that you couldnt do because of trust problems.. How are you getting the data from your SQL database to the dataset in the XBAP, is it passed through a web service or WCF service or something like that or are you just trying to directly pull data from SQL in the XBAP?..
0
 
LVL 29

Expert Comment

by:Gautham Janardhan
Comment Utility
To add to that, i would use the dataset so generously in the WPF/Silver light world.. i would rather retrieve the data from SQL as objects(though EF or using some ORM) which is way more easier to handle w.r.t binding to the controls.
0
 

Author Comment

by:esps
Comment Utility
Being new to WPF, I will use any method to get data from SQL and to be able to have the data available as a dataset or any other metod that I can link the data fields to text boxes, etc.
Would appreciate some guidelines and/or code snippet.
In your previous post you mentioned sQL as object(through EF or using some ORM) would you please give more detail
regards
0
 
LVL 29

Accepted Solution

by:
Gautham Janardhan earned 500 total points
Comment Utility
this would be a best place to start with if you are using EF (which i would recommend)

http://msdn.microsoft.com/en-us/library/bb896242.aspx
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now