public static bool AllNodesChecked(TreeNodeCollection nodes)
{
foreach (TreeNode node in nodes)
{
if (!node.Checked)
{
return false;
}
AllNodesChecked(node.Nodes);
}
return true;
}
Test tree is
A1(checked) -> B1(unchecked)
A2(checked)
A3(checked)
but it isn't retur...
In a fairly standard fashion, I created a Web Reference to a SOAP service in Jira for an extension that I'm building (Jira is an issue tracker for those unfamiliar with it). Visual Studio auto-generates a .Settings file and an app.config that contains the web service URL.
Since I'm developing an extension/plugin to an ALM product we're ...
Hi,
I'm currently developing a VSPackage, and it will have some log-in functionality external to the system, so I thought I would use Client Application Services.
I have followed online tutorials word for word and cannot seem to get a VSPackage to return true for the following:
Membership.ValidateUser("username", "password")
I have ...
I have a class that outputs a simple report file. It reads some record ID numbers from an XML file: each one used for finding a matching record stored in a database. It then writes out each record's details to a CSV file.
I am wondering - what is the best way to organise it so that it is easy to test, yet follows the principles of encap...
In my code below, I am using Process objects to execute a series of DOS batch files.
I'm shortening the list of scripts for example's sake.
The subsequent (1+) scripts execute via an event handler (instead of a for loop). That way, each subsequent script runs ONLY when the previous one finishes. Now for some reason as I execute the 2nd ...
I need to create a .Net web service (WCF is out of the question) that should receive xml and return xml. I initially setup the function like so:
[WebMethod]
public string myFunc(string xmlRequest)
{
How can I change the HTTP POST content-type to text/xml? Also, I'm returning the xml response as a string, but in the web service help pa...
I am looking for suggestions on how to map a single DTO class with a type discriminator to multiple domain classes.
I have my DTO:
public class FooData
{
public Guid Id { get; set; }
public string Name { get; set; }
public string TypeDiscrim { get; set; }
}
public class FooDataRepository
{
public List<FooData> GetAll()...
How do you improve your ASP.NET MVC application performance?
...
i see that wordpress works on LAMP. Does anyone know if there is a software for asp.net with mssqlserver back-end. I am looking for one which i can design with their software and host on my site, not theirs. thanks
...
Our company is developing an API for our products and we are thinking about using ASP.NET MVC. While designing our API, we decided to use calls like the one below for the user to request information from the API in XML format:
http://ws.audioscrobbler.com/2.0/?method=artist.getimages&artist=cher&api_key=b25b959554ed76058ac220b7...
I am receiving a COM Exception when trying to hook into an event on a COM Object. Here is the code I am trying to execute.
COMClass a = IComClass as ComClass;
a.SomeEvent += new SomeEvent_EventHandler(MethodNameHere);
Line two throws an exception of type COMException with the following information:
System.Runtime.InteropServices.C...
We have a multi-line control that we are attempting to prevent the Enter/Return key from being used to create a new line.
Strangely enough, "AcceptsReturn" as False does not prevent this.
So we added the following:
Private Sub txtAddr_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtAddr.K...
Just wondering if there is another way to handle this as the arguments are getting split when passing in like this:
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo(fileName);
psi.Arguments = @"c:\dir1\dir2\dir3\file1.txt";
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo = ps...
We have dotopenopenId implemented on our web farm which currently uses scaleout. We want to replace ScaleOut with ASP.NET State Server, but I'm wondering if there are any examples of the interfaces that need to be built for the AssociationStore and the ProviderStore.
...
Assembly assembly = Assembly.Load("MyAssembly");
Will the above also load all the references/dependencies "MyAssembly" needs ?
...
There is a property, it's named ImageFullPath1
public string ImageFullPath1 {get; set; }
I'm gonna fire an event whenever its value changed. I know I can beware of changing with INotifyPropertyChanged, but I wanna do it with events.
I don't know how I should do it.
Could you please guide me?
Thanks.
...
where can i find all of the Command Names for a Rad Grid
examples
UpdateEdited
CancelAll
InitInsert
PerformInsert
DeleteSelected
RebindGrid
...
This is allowed:
// scope_1
int i = 100;
if (i > 50)
{
// scope_2
int a = 200;
}
This gives error:
// scope_1
if (100 > 50)
int a = 200;
Is the reason second code example gives us error due to scopes? Thus compiler doesn’t allow for variab...
When you open up Visual Studio and select View - Object Browser, you get a list of all objects in the .net framework: Assemblies - Namespaces - Classes - Methods and attributes.
I want create a database that contains this information. Does anyone know where I could get a copy of this data in a text or database format?
...