I have a 5000 items SORTABLE gridview.
It splits them into pages of 20.
Everything works perfectly, only looks like $%#%.
I have a pager that looks like:
1 | 2 | 3 | 4 ... 290
(The ... is real and not me being lazy for the sake of the question)
Now, I know for sure that people don't navigate beyond 6-7 pages but I need all the recor...
I want to create a window based application in C# so that we can run it without installing the application into each and every system.
It need to connect that application through database as well.
I want to create this application so that it can be run directly through pendrive and can write into database as well.
I know how to work w...
I have a code residing on server which contain 5 attribute values assigned from an array which shown as below,but the client machine may or may not contain 5 attribute values if it is installed by old version(5th one is new one "string version")
now i have one requirement "The code needs to check to make sure that the fifth attribute exi...
My recent turn-on is using BinaryFormatter instead of some database product. I have an idea to write simple 64bit number into hardware dongle, and encrypt my files with it - via simple XOR operation. Just so it can't be readable at some other end. Do I derive from Stream, or what?
I know I can simply put that number into the file and...
Is Possible to convert the controls to Component or component to control in winforms?And is possible to make transparent the button in winforms?
...
I have a rather large resource (2MB) that I'm embedding into my C# application ... I want to know read it into memory and then write it to disk to use it for later processing?
I've embedded the resource into my project as build setting
Any sample piece of code will help me startup.
...
My question here is similar to the question here, except that I am working with C#.
I have two colors, and I have a predefine steps. How to retrieve a list of Colors that are the gradients between the two?
This is an approach that I tried, which didn't work:
int argbMax = Color.Chocolate.ToArgb();
int argbMin = Color.Blue.ToArgb();
va...
I'm using NHibernate + Fluent to handle my database, and I've got a problem querying for data which references other data. My simple question is: Do I need to define some "BelongsTo" etc in the mappings, or is it sufficient to define references on one side (see mapping sample below)? If so - how? If not please keep reading.. Have a look...
Can I use interface method instead of delegate? How? I found searching that interface method is faster than using delegates. I would appreciate a simple code snippet.
...
I'm quite new to the C# combo with ASP.NET, so i'll try to be as clear as i can with my explanation.
I'm using a GridView to display some columns and rows that reside in a database. This works excellent. Because i wanted to add columns dynamically out of a List of names. Let's say we have a list with 5 names in it, then it dynamically c...
I would like to learn Silverlight. What books or websites are recommended?
...
Are there any libraries for inter-process communication (IPC) between a .NET application and a native C++ application?
...
Ok, I'm not talking about making business logic decisions, but rather UI decisions.
For example, I'm rendering a table and one column displays a DateTime? property that needs to be formatted. Because the value is nullable I need to check that it's not null before formatting.
If I wanted to be pedantic, I would have a FormattedDate prop...
I have a simple situation (.NET2): a texbox1 on a UserControl1(or Form1).
I want to unfocus(leave) the texbox when I click on the usercontrol/form(focus the usercontrol/form instead):
I do the following on the UC/form:
Protected Overrides Sub OnMouseClick _
(ByVal e As System.Windows.Forms.MouseEventArgs)
MyB...
hi
Having a Dll made by dot net , is there any way to distinguish its methods?
...
I have some code that uses the Windows Server 2008 task object model to invoke a scheduled task on a remote server:
var scheduler = new TaskSchedulerClass();
scheduler.Connect(ServerName, username, domain, password);
var folder = scheduler.GetFolder(FolderName);
var task = ...
Hi,
Is that better to use WCF REST Starter Kit for consuming web services (REST) with WCF (by using HTTPClient) or do it directly with WCF ?
It seems that WCF REST Starter kit won't be available for .NET 4.0 and is a preview version only.
Thanks !
...
I am using Microsoft Sync Framework for syncing server and client SQL server 2005 database. My requirement is to get summary of all changes and display it to the user before actually perform sync operation.
Does any one have idea how can we get changes in microsoft sync framework before actually synchronize them?
...
I'm trying to use SMTP on localhost to send emails thru a simple mailform in asp.net c#.
For some reason all emails end up on the badmail folder. The .BAD file says:
Final-Recipient: rfc822;[email protected]
Action: failed
Status: 5.7.1
Diagnostic-Code: smtp;554 5.7.1 <IP>: Client host rejected: Sorry, no xDSL here
Anybody got any clue...
Anyone know if there's a fluent way of configuring log4net (appenders and all the properties for appenders etc...).
The xml is driving me crazy.
Or if not, does anyone know of a decent .Net logging framework that can easily be fluently configured and offer similar features to log4net?
...