adding an image to the header of a .net datagridview
I just need a way to insert an image into the header of a vb.net data grid view. Is there any way to do this? ...
I just need a way to insert an image into the header of a vb.net data grid view. Is there any way to do this? ...
I have some data analysis that needs to perform. On average, it would involve somewhere in between 50K-150K rows. From these rows I need to extract the summation of Sum(X) as well as Count(X) based on five different criteria. There are two ways of going about it: Write 10 different queries, each one designed to aggregate the data from ...
please help with some basic syntax i need to make a statement that checks the remainder of a number divided by 4. this is the logic: if the remainder of SOMETHING when divided by 4 is 1 then do this if the remainder of SOMETHING when divided by 4 is 2 then do this etc etc can i get this in SELECT CASE ..MOD format please ...
I'm trying to show the number of times an operation occurred since the last performance iteration. I have created a performance counter using the following: var clearStateCounterData = new CounterCreationData() { CounterName = ClearStateName, CounterHelp = "The number of times the service state has been cleared since the last p...
I was going through Getting Started (with PostSharp) And when I saw PostSharp injected (is this expression is right?) an aspect code into assembly, I saw this oddly named class marked with CompilerGeneratedAttribute. It is named <>AspectsImplementationDetails_1. As far as I know, class name cannot be started with <>. But how is it po...
This is the Membership API in .NET 2.0. Suddenly it stopped working on me. I've stripped it to the basics. I get no response when I try to create a user. It goes through the code with no error, but nothing happens. Here is the code in the aspx: Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ...
Hi folks, I'm using Twitter's OAuth API to updates a user's twitter account (twitter status update) provided they give permission / authorise my site with their twitter account. works great. Can the same be done with Facebook? I was told Facebook connect does this, but all I can find are pages talking about how to make Facebook embedd...
I'm working on our continuous integration system, and I'm interested in simulating our systems handling of unexpectedly long compile times. Is there any way to cause the compilation to take a long time to complete? Or perhaps force it into some sort of loop that would take a large amount of time to compile? I'm looking for something as e...
I'm wondering what guidelines you guys are using for determining the structure for your Namespaces. When do you decide something warrants it's own Namespace? I read in a forum discussion or article that a best practice is to go for a shallow tree with as few child Namespaces as possible but can't remember the reasoning behind it or the ...
Hi, Can someone recommend me a sorting algorithm for my custom link list + example, basically it is similar to the Generic LinkedList so if you could give examples for the Generic LinkedList it will be great. I am planning to implement the merge sort, please advice on the pros/cons as I am not so familiar with any algorithm, just taken...
Hello everyone, I am using VSTS 2008 + C# + ADO.Net + SQL Server 2008. My questions about what kinds of communication protocols SQL Server 2008 will be using, more details of my questions, If the connection string looks like this, whether Named Pipe or TCP/IP is used? Will different communication protocol being used dependent on wheth...
Hello, In our CMS solution we have a module that is handling integration towards an AD, the module uses a standard connection string in web.config. The customer has a setup of two AD-servers and routinely takes them down for maintenance one at a time. Unfortunately the AD-module only allows connection towards one AD-server and when that...
Where can I find the .NET Compact Framework SDK for developing Compact Framework applications in Visual Studio? ...
Hi We have an existing project - asp.net website using Vb.net - that was developed +- 2 years ago. The client would now like to add a substantial list of features to the system. My Question : What are the pros and cons of writing all the new features in C#? All our new pages and new assemblies will then be done in C#. Some of the dev...
Hi, i came accross with a peculiar issue on my mobile site. some phones/gateways sends form post data as url encoded and a text such as "hey how are you?" in a form with method post stored in the db as "hey+how+are+you%3f" This is not the issue with many browsers but one single network from USA called Metro. I notice different pho...
Hi All, I'm about to go into a large scale application (client-flex, server-.net). The server side is required to push data to the clients without them asking for it, this data can be tables from the DB or simply 2 integers the application needs to consider. I tried to consider WebOrb.net for the job but the documentation is very poor ...
I have a decimal number, say 1234.500. I want to get it to display 1,234.4 Im currently converting it to a double to remove the trailing '0's. string.Format("{0:0,0}",1234.500) removes the decimal place, and other formatting options seem to use two decimal places regardless. Can anyone offer insight? ...
I'm porting some VBScript code which generates emails using the standard CDOSYS Message object. The Message oject has a property AutoGenerateTextBody which when true will cause it to automatically create the TextBody property value when you assign HTML to the HTMLBody property. Hence creating the typical text/plain and text/html altern...
I am using System.Xml.XmlTextReader to read xml stream from a http location. Now I need support to read from a secure https site. How can I do this by providing user credentials in some way? ...
I have used LINQ-to-SQL in WPF and ASP.NET MVC projects in the following way: create database drag tables into the designer use generated classes with LINQ Now I have a project where the data sources are a mix of web services, a database, and XML files. From what I understand of Entity Framework, I can create similar classes as I can...