Click here to Skip to main content
15,885,278 members
Home / Discussions / WPF
   

WPF

 
QuestionAny body helpme Pin
anishkannan13-Mar-09 19:49
anishkannan13-Mar-09 19:49 
AnswerRe: Any body helpme Pin
ABitSmart13-Mar-09 23:59
ABitSmart13-Mar-09 23:59 
AnswerRe: Any body helpme Pin
Mark Salsbery14-Mar-09 7:05
Mark Salsbery14-Mar-09 7:05 
QuestionWPF Custom Control with a Combo Box Pin
scarfinv13-Mar-09 18:05
scarfinv13-Mar-09 18:05 
AnswerRe: WPF Custom Control with a Combo Box Pin
ABitSmart14-Mar-09 1:41
ABitSmart14-Mar-09 1:41 
GeneralRe: WPF Custom Control with a Combo Box Pin
scarfinv14-Mar-09 5:03
scarfinv14-Mar-09 5:03 
GeneralRe: WPF Custom Control with a Combo Box Pin
scarfinv16-Mar-09 7:43
scarfinv16-Mar-09 7:43 
QuestionConnecting to SQL Server database in XBAP application [modified] Pin
Neeraj Kr13-Mar-09 5:10
Neeraj Kr13-Mar-09 5:10 
Hi I am a beginner in the .Net 3.5. I am making a XBAP application and trying to declare the connection string in the app.config file. When i am using the same in my code I am receiving an unexpected error:

Cannot create instance of 'Page1' defined in assembly 'WpfBrowserApplication1, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Exception has been thrown by the target of an invocation. Error in markup file 'Page1.xaml' Line 1 Position 7.

I am using the following in the code behind:
string conn = ConfigurationSettings.AppSettings["ConnectionString"].ToString();
            DataSet dsEmployees = SqlHelper.ExecuteDataset(conn, CommandType.StoredProcedure, "sp_fetchEmployees");
            lstEmployees.DataContext = dsEmployees;


Kindly help as I am stuck completely








-----Have A Nice Day-----

modified on Friday, March 13, 2009 11:16 AM

AnswerRe: Connecting to SQL Server database in XBAP application Pin
ABitSmart13-Mar-09 6:12
ABitSmart13-Mar-09 6:12 
GeneralRe: Connecting to SQL Server database in XBAP application Pin
Neeraj Kr13-Mar-09 7:14
Neeraj Kr13-Mar-09 7:14 
GeneralRe: Connecting to SQL Server database in XBAP application Pin
ABitSmart13-Mar-09 7:17
ABitSmart13-Mar-09 7:17 
GeneralRe: Connecting to SQL Server database in XBAP application Pin
Neeraj Kr13-Mar-09 7:34
Neeraj Kr13-Mar-09 7:34 
AnswerRe: Connecting to SQL Server database in XBAP application Pin
Eslam Afifi13-Mar-09 6:17
Eslam Afifi13-Mar-09 6:17 
GeneralRe: Connecting to SQL Server database in XBAP application Pin
Neeraj Kr13-Mar-09 7:12
Neeraj Kr13-Mar-09 7:12 
QuestionRe: Connecting to SQL Server database in XBAP application Pin
Eslam Afifi13-Mar-09 8:40
Eslam Afifi13-Mar-09 8:40 
AnswerRe: Connecting to SQL Server database in XBAP application Pin
Neeraj Kr13-Mar-09 8:44
Neeraj Kr13-Mar-09 8:44 
QuestionRe: Connecting to SQL Server database in XBAP application Pin
Eslam Afifi13-Mar-09 8:48
Eslam Afifi13-Mar-09 8:48 
QuestionDouble Animation Hell Pin
emptythetill13-Mar-09 2:55
emptythetill13-Mar-09 2:55 
AnswerRe: Double Animation Hell Pin
Insincere Dave13-Mar-09 8:06
Insincere Dave13-Mar-09 8:06 
GeneralRe: Double Animation Hell Pin
emptythetill14-Mar-09 5:21
emptythetill14-Mar-09 5:21 
QuestionHow to load only needed images? Pin
S.a.n.4.e.s12-Mar-09 7:35
S.a.n.4.e.s12-Mar-09 7:35 
AnswerRe: How to load only needed images? Pin
Eslam Afifi12-Mar-09 12:27
Eslam Afifi12-Mar-09 12:27 
GeneralRe: How to load only needed images? Pin
S.a.n.4.e.s12-Mar-09 19:18
S.a.n.4.e.s12-Mar-09 19:18 
GeneralRe: How to load only needed images? [modified] Pin
Eslam Afifi13-Mar-09 2:53
Eslam Afifi13-Mar-09 2:53 
AnswerRe: How to load only needed images? Pin
Luc Pattyn12-Mar-09 13:29
sitebuilderLuc Pattyn12-Mar-09 13:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.