Tagged Questions
C# is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.
0
votes
0answers
5 views
How to reset all instances in IOC Container
I have made an C# WPF Application using the MVVM Light framework. My Application uses the ViewModelLocator class to locate the viewmodels during runtime. The ViewModelLocator makes usage of the ...
0
votes
0answers
10 views
Custom configuation file issue in asp.net
I have got below sample code in web.config file.
<configuration>
<configSections>
<section name="secureAppSettings" type="System.Configuration.NameValueSectionHandler, ...
0
votes
0answers
3 views
Update DataGrid on updating a property from the class which is an item for an ObservableCollection binded to the DataGrid
I've a problem on updating a datagrid cells when properies are changed.
So I have such program structure:
there is an ObservableCollection which contains some objects. These objects as you ...
0
votes
0answers
23 views
C# Editing items of two lists with same references
I have a List of myClass objects (some elements are added before)
List<myClass> myClassList1;
Then I copy some of the elements in this list into another list
List<myClass> myClassList2 ...
0
votes
0answers
6 views
Lync PowerShell: Enable a User for Enterprise Voice
I have the below code used for enabling a user for Lync using Power Shell commands. The code has two steps, the first one is to enable the user, the second one is to enable Enterprise Voice.
using ...
0
votes
0answers
25 views
passing a C# object to Javascript never get the assigned value
In c# code behind i am creating an object and try to access that in front-end javascript. but it is always getting instantiate value but not the object value; Please see the code below:
public class ...
0
votes
1answer
16 views
HttpWebRequest is not visible in my System.Net Reference
I have a WindowsApplication project where the Reference-folder is missing a file. I've compared it with another project where I do find the file, and it should be found here:
...
0
votes
0answers
4 views
Secure asymmetric key implementation client-side
I'm currently trying to develop a client-server structure, with the client being in .NET and the server being a PHP based SOAP server.
Now, I'm trying to implement an asymmetric key system using ...
2
votes
0answers
35 views
Path is not a legal Form C#
I get an error saying:"Path is not a legal form" at the line:
fileSystemWatcher2.EnableRaisingEvents = true;
Here is my code:
private void Browse_file_Click(object sender, EventArgs e)
{
...
2
votes
0answers
10 views
Why is MemberInfo.GetCustomAttributes(Type) defined to return an array of attributes?
public enum Animal
{
[Description("King of jungle")]
Lion= 1,
[Description("Tallest there")]
Giraffe = 2
}
Suppose I have the FieldInfo, I can go about it two ways:
//static one on ...
-2
votes
0answers
34 views
what is wrong with this code? i am trying to
I am trying to get "CTDESC " value in combobox named " cmbCTDesc". And sqlConnection is already created. In which event do i add this code-SelectedIndexChanged or button ?
DataSet ds = ...
1
vote
0answers
7 views
selecting Node does not work using HtmlAgilityPack
I am using VS2010 and using HTMLAGilityPack1.4.6 (from Net40-folder).
Following is my HTML
<html>
<body>
<div id="header">
<h2 id="hd1">
Patient Name
</h2>
...
1
vote
0answers
10 views
C# Drag&Drop, hard time selecting draggable panel because of content
I have a (rather small) Panel full of labels and a few other controls.
I've made this panel draggable, but because of the size and content there are only a few "holes" which actually activate the ...
0
votes
0answers
6 views
Calling ServiceStack Service Cross-Domain with Cors Issue
I am in the process of testing some web services on my local machine. Because the test page sits on the root at port 80, and the web-services on different ports, I get the following error from ...
1
vote
0answers
9 views
app.config and Entity Framework for remote connection
I have a connection string to a local database which works ok.
<connectionStrings>
<add name="Entities"
connectionString="metadata=res://*/RNADataModel.csdl|
...