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
7 views
Using SQL server database for login control instead of default ASPNETDB.mdf database
I am trying to use a SQL server database as opposed to the default database (ASPNETDB.mdf) for login credentials for a ASP.NET web application I am building. I found and ran aspnet_regsql.exe which ...
0
votes
0answers
11 views
How to force .NET to open many simultaneous http connections
Here is the very simple scenario I would like to show:
internal class Program
{
private static void Main(string[] args)
{
var uri = new Uri("http://myserver.com");
...
-1
votes
0answers
5 views
Is it a good way to use HttpApplication.CompleteRequest() to timeout requests?
Before people mark this as a duplicate I want the readers to read till the end. Lets say I have an ASP.NET application where I have long running requests waiting on a network call(Remoting or WCF - ...
0
votes
1answer
8 views
BackgroundWorker with MySql not working properly
I have a method which inserts data into a MySql database within a for loop.
The amount of inserts can be a lot so my program freezes during inserting.
So i wanted to try to put it in a ...
0
votes
0answers
18 views
ToByteArray() in C#, How do I do the equivalent in PHP?
I am trying to integrate a private api into my app (which is written in PHP).
I have the following example code, but it is in C#. I'm having trouble specifically with calculating the signature ...
0
votes
0answers
9 views
ASP.NET C# - Progress Bar for AJAX based on server-side process
My original idea was to create a session variable, and update it as the server-side process did all it's computing. For example, if it's done 1/10 of the major tasks, update the session variable to ...
0
votes
0answers
10 views
How to select multiple items from contextMenuStrip
I'm working on a C# winForm project that use a contextMenuStrip. I'm trying to figure out how to disable/override default behavior of allowing only one toolStripMenuItem at a time for selection. I've ...
3
votes
2answers
40 views
C# inheritance and method signatures
I am working on a class that needs run a different process method based on the type of object I pass in. I thought that overloading might work here, but I have a question. Lets say I have two ...
0
votes
0answers
24 views
how to transfer gmail contacts to outlook
I have tried to get the contacts of gmail to my outlook account. I have tried using the API but the code is giving an error. I have used the contact item interface and I can not get the contacts from ...
0
votes
1answer
17 views
How to mock ObservableCollection
I have the following:
class foo : ObservableCollection<Int32>
{
//Stuff
}
[Test]
public void test()
{
var foo = Mock.Of<foo>();
int count = 0;
Mock.Get(foo).Setup(x => ...
0
votes
1answer
10 views
nlog extensions to log current method information
Are there any extensions / contribution projects which add several extensions to NLog, like for example logging automatically the current method and it's parameters? For example:
public void ...
0
votes
0answers
4 views
Get default system extra large icons based on file extension
After reading several posts finally I have the following class to get system default icons based only on file extensions:
public static class IconManager
{
private const int FILE_ATTRIBUTE_NORMAL ...
2
votes
1answer
15 views
How to detect High CPU and long response time issues with Asp.NET Web Api
We are running Asp.Net WebApi on 3 servers behind HAProxy. HAProxy simply randomly distributes requests among these 3 instances.
These instances connect to mongodb, redis and some windows services.
...
1
vote
2answers
17 views
What is the Maximum Number of Records i can insert through InserAllOnSubmit() In Linq to Sql
I'm reading the Excel sheet and applying My business logic and i'm trying to insert using Linq to SQL.
In my loop i have > (greater than) 5,000 records and < (Less than) 15,000 records to ...
0
votes
0answers
17 views
C# Listview select item (dynamic)
I'm trying to create a dynamic ListView. An automatic item will be added to the listview every image in the ImageList. However, I want to be able to double click on it. How would I do that? This is my ...