Hi,
in all (Agile) articles i read about this: keep your code and functions small and easy to test.
How should i do this with the 'controller' or 'coordinator' class?
In my situation, i have to import data. In the end i have one object who coordinates this, and i was wondering if there is a way of keeping the coordinator lean(er) and...
Hi,
I want to create a shoping cart web site using .Net and C#.
I am intermediate for C# and SQL Server.
Have no idea as of on how to start with a Shoping cart website ,my sincere grattitude towards any usefull link or suggestions and help .
Thanks,
Subhen
...
I have a .net website written in C# and will make functionalities that other developers can use.
So I will make some default implementation and a developer can overwrite some methods
Example:
i have a class ShoppingCart and a class Product the class product haves a method getProductPrice
the shoppingcart will call the method getProductP...
I have windows forms application with multiple forms and controls in them. I want if user has selected some text in any control of any form of my application and click on cut/copy/paste button on toolbar operation get performed accordingly.
i m using C#.net's sendkeys.send("^c") on click of copy button but it doesn't work...
OR any 1 c...
Once or twice I have been running into the following issue:
Classes I want to reuse in my applications (and possibly redistribute) exist in the .NET Framework assemblies, but are marked internal or private. So it is impossible to reuse them directly. One way is to disassemble them, pick the pieces you need, put them in a different name...
I've been using Resharper for a few days and I really like this tool, but there's one thing that annoys me about it and I wonder if it can be changed.
I'm getting lots of issue notifications from generated code (almost 1400 in my project). I'd want to set those files as ignored so they won't be checked as you can do with StyleCop and Co...
Hi
just looking for abit of guidance here if possible.
I recently downloaded a .net component for VS 2008 to handle sftp.
After struggling with it for a day i uninstalled and deleted it.
When going back into VS 2008, any of my previous projects have this error
at the bottom in the error window:
failed to create app domain.
I was goin...
Is it possible to store some special content inside file header of ".txt" file using .Net ? If yes how ? Please give me a sample code.
...
As long as the mouse is over a specific control, we show some form. When the mouse leaves the control, we hide the control after a small timeout. This is standard hover behavior.
However, when a control (for example a Treeview) has a scrollbar, and the mouse is ON or OVER the scrollbar, the events don't fire ...
If we could get a refer...
I've been looking around for a simple solution to this, trying my best to lean towards something like NHibernate, but so far everything I've found seems to be trying to solve a slightly different problem. Here's what I'm looking at in my current project:
We have an IBM iSeries database as a primary repository for a third party software...
I have a List(Name, Item, Group#) that I would like to display in a table. How do I display this data with all the names in the 1st row, item in the 2nd, and group number in the 3rd row.
Name: | Jon | Tom | Kate | Brian |
Item: | Cup | Hat | Door | Store |
Group#:| 2 | 8 | 10 | 154 |
...
Hi all,
I'm fairly new to Visual Studio (specifically Visual Basic .NET) but have been programming for quite a long time.
Here at my company we have an Access application that allows users to create documents based on invoices that are in Great Plains, an accounting program. Documents such as invoices, packing lists, export documentat...
I understand how Browsable attribute is supposed to work. It's supposed to hide a property from showing up in a PropertyGrid in design time.
It also has another effect in that it will stop a Property from showing up in components such as Grids, or specifically Infragistics WinGrid. I am not sure if it has this behaviour on regular Win...
I have a drop down which has a method which binds data to it:
dropDown.Items.Clear()
dropDown.AppendDataBoundItems = True
Select Case selType
Case SelectionTypes.Empty
dropDown.Items.Insert(0, New ListItem("", ""))
Case SelectionTypes.Any
dropDown.Items.Insert(0, New ListItem("ANY", ""))
Case SelectionTypes.S...
Hi
I have a wcf service which sets up jobs for quartz. It's putting jobs in the db fine.
I then have a consol app running with the same config which i want to actually run the jobs.
I'm setting a trigger one minute from when the job is created but the consol app never runs it.
Is there some special config i need to run to get this t...
I've inherited a VB.NET website and it won't compile because the class1 in the file class1.vb refers to class2 in a file called class2.vb. I get the following error when trying to compile:
Type Class2 is not defined.
When I look in the object browser the classes are listed separately (i.e. not all grouped under the same namespace) ...
Hello, In ASP.NET, I need redirect to a custom page when file size is exceeded.
The application executes the code inside file test.aspx in Me.Server.Trasnsfer in other errors but when is an too big file error the web browser don't render it and shows that cannot show the page.
Sub Application_Error(ByVal sender As Object, ByVal e A...
I'm trying to execute my controller from javascript using jquery... here is my jquery code that is executing..
<script type="text/javascript">
$('form').submit(function (e) {
e.preventDefault();
$.ajax({
type: "POST",
url: $(this).attr("action"),
data: $(this).serialize(),
contentType: "application/json;charset=utf-8",
...
for metrics reasons I need to know how many lines of code my class library has. I'm doing this for code coverage....
So if Class library 1 has 50 lines of code and 100% coverage
And if Class library 2 has 500 lines of code and 0% coverage
My total coverage is 90%
Any idea how to do this? Is there a utility or a way to use Visual Stu...
I was trying to use the sentence
Environment.SetEnvironmentVariable("CLIENTIP", <value>)
but the variable is not created. I used both an string variable and a constant to set the value.
So, how can I do this to work?
...