I'm using the following code sample to get a list of all users in a specified AD group (in this case, all users in the "Domain Users" group). My listed code works great, with one exception: it won't return users who have their primary group set to "Domain Users". How can I get a list of all users in the group, including those who have it...
Is there something i can use to track how long my mysql queries take? perhaps log them if they take > a certain amount of time? or track all queries but only hold the longest query time? using this with C# .NET with ASP.NET.
I'd like to use this to occasionally check if my queries are getting slow.
...
Depending on the feedback I get, I might raise this "standard" with my colleagues. This might become a custom StyleCop rule. is there one written already?
So, Stylecop already dictates this for summary, param, and return documentation tags.
Do you think it makes sense to demand the same from comments?
On related note: if a comment is ...
While I'm making SOAP or REST invocations to WCF, I'd like to have the channel stack on either end (client and server) record the on-the-wire size of the data received. So I'm guessing I need to add a custom behavior to the channel stack on either side. That is, on the server side I'd record the IP-header advertised size that was recei...
For the purposes of setting a value in Active Directory I would like to convert a long to an unsigned 8-byte integer, for assignment to an AD property.
How can I do this?
...
Possible Duplicate:
What JSON library works well for you in .NET?
Hello I am needing to encode and decode some data to/from the JSON format. Is there anything to help me with this task in .Net? It will be used in both ASP.Net and regular Winforms projects.
...
I'm working on a tutorial to build a media player in Silverlight and am trying to wire up an EventHandler to the timer.Tick event of a DispatchTimer object so that the time of the video is synced with a Slider object.
The sample code is in C# and I can't for the life of me figure out the proper syntax in VB.NET with RaiseEvent and/or Ha...
I have this function in .net code:
public class StringGenerator
{
public static string GenerateString(string hash)
{
return hash.GetHashCode();
}
}
I want to be able to call this from PHP page. Any idea how?
Edit: looking in php documentation, http://www.php.net/manual/en/class.dotnet.php, I see that it possible. ...
or conversly can you import a parents menu items into a child window?
So I have an UI that is composed of controls that all have their own context menu, but we also have a datagrid that get's nested inside our generic contaier.
So when you right click the datagrid elements I want to show both the context items I've created for the da...
I got two entities:
public class User : Entity
{
public virtual string Username { get; set; }
public virtual string Email { get; set; }
public virtual string PasswordHash { get; set; }
public virtual List<Photo> Photos { get; set; }
}
and
public class Photo : Entity
{
public virtual string FileName { get; set; }
...
Hello,
I have developed my .net web app on XP using IIS6.
It uses just plain old master pages, nothing fancy. No nested master page.
When I deployed it to the server, which is IIS7, suddenly any page that implements a master page, will not be rendered.
Gives a 404 error instead.
Any ideas, about confguration that I need to specify i...
I have a class name xxxx and a resource whichthe class read from it to set some string. Everything is fine and nothing goes wrong.
The problem is that I have some Constant Global String which I set them in global area like
public partial class ExampleDocument : ClassBase
{
const string TheProblem = "I can not read this string from r...
I am working on a Geocoding app where I put the address in the URL and retreive the XML. I need the complete XML response for this project. Is there any other class for downloading the XML from a website that may be faster than using WebClient or HttpWebRequest? Can the XMLReader be used to get the full XML without string manipulation...
I have a radiobox <asp:RadioButtonList CssClass="list" Style="width: 150px"
ID="rdo_RSD_ExcerciseRoT" runat="server"
Font-Bold="false" RepeatDirection="Horizontal" RepeatLayout="Table"
TextAlign="Left" >
<asp:ListItem Text="Yes" onclick="en();" Value="Y"></asp:ListItem>
<asp:ListItem Text="No" onclick="dis();" Valu...
Does anyone know of an efficient way to do multiple linear regression in C#, where the number of simultaneous equations may be in the 1000's (with 3 or 4 different inputs). After reading this article on multiple linear regression I tried implementing it with a matrix equation:
Matrix y = new Matrix(
new double[,]{{745},
...
Hi..I am using C#.Net and Sql Server ( Windows Application ). I had created a temporary table. When a button is clicked, temporary table (#tmp_emp_details) is created.
I am having another button called "insert Values" and also 5 textboxes. The values that are entered in the textbox are used and whenever com.ExecuteNonQuery(); line com...
I want to develop a web service that handle another web service's event. (C#.Net 3.5 framework)
I will develop a web service and the correspond service's event catch this service, and it will send some data to me.
Is it possible?
Thanks.
...
C#:How can I fix a form size in win application and not to let user changes its size?
...
Hello everyone,
I am using Silverlight 3.0 + .Net 3.5 + VSTS 2008 + C# to develop a simple video application using MediaElement of Silverlight.
I have two videos and I want to play them at the same time (similar to picture in picture effect) -- i.e. a part of the two videos are overlapped when they are playing (the same concept of Z-Or...
I'm busy on making a Business Logic Layer. Now I had a problem since i want to program using c# and the whole project i have to make a module for is vb.net based. I have solved this using a new project in the solution. This project will maintain the dataclasses and Business Logic. Now i've run to an issue, atleast i don't know what to do...