Hi everybody
i met some problem in a simple test to data binding with the WPF
my XAML code as the following
<
</
when the user click the button, system should retrieve some data from the database and show cell of the result table in the text box ... as the following:
private
{
connString = "initial catalog=PADB-v2.3_2.4Hamouda;user id=ahmedh;password=ahmedh;data source=AHMEDH-SRV";
adapter.SelectCommand =
conn.Open();
adapter.Fill(dataSet,
m_orders = dataSet.Tables[
conn.Close();
txtFirstName.Text = m_orders.Rows[0].ItemArray[2].ToString();
}
when running and clicking the button, i recieve this error "Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed".
this although when trying the same code in asp, it works properly.
any advices will be appreciated :)
NAHR ELGANNAH