Consider a partial view whose job is to render markup for a pizza order. The desire is to reuse this partial view in the Create, Details, and Update views.
It will always be passed an IEnumerable<Topping>, and output a multitude of checkboxes. There are lots... maybe 40 in all (yes, that might smell). A-OK so far.
Problem
The questi...
looking for recommendations on various tools to collect client feedback on web design - both for mockups and live versions.
cheers!
...
Is there a way to specify a packet-based protocol in XML, so (de)serialization can happen automatically?
The context is as follows. I have a device that communicates through a serial port. It sends and receives a byte stream consisting of 'packets'. A packet is a collection of elementary data types and (sometimes) other packets. Some el...
I'm looking to see if there is a way to change the color of a textblock in silverlight on mouse over. I have tried a trigger which I read now doesn't work. I would like to avoid having to do it in the codebehind if at all possible.
...
I am making a C# project in which I am using ScintillaNet, and it says:
The referenced assembly "ScintillaNet" could not be resolved because it has a dependency on "System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client...
Stackoverflow users: A lot of things can be represented in programs by using the basic types, or we can create a new class for it.
Example: A social security number can be a number, string or its own object.
(Other common examples: Phone numbers, names, zip codes, user id, order id and other id's.)
My question is: When should the basi...
Normally when I do a system for a customer, I do design sessions on an hourly rate and then come out with a fixed price quotation for the full system development.
Now this customer has thrown me a curveball: he doesn't want an hourly rate for design, either - he wants me to quote a fixed price to do all the design, too! Not that he's t...
I was looking at the amazon website and was wondering how one of the feature would have been implemented. The feature : what customers buy after viewing a particular item.
If i were to develop such a feature i would probably generate a session id for each user session and store the session id-page id combination in a log file. and if a ...
Hi there, I was wondering if anyone could offer some advice on 'best practices' for using global state in a web application - specifically PHP, although im looking for generic best practices i.e. design patterns etc.
At the moment I just use a static class, calling it Configs. I suppose this is similar to using the registry pattern but...
I am creating an event-based API where a user can subscribe to an event by adding listener objects (as is common in Java or C#). When the event is raised, all subscribed listeners are invoked with the event information.
I initially decided to prevent adding an event listener more than once. If a listener is added that already exists...
Hi,
While I'm fine with standard control styling in silverlight I have recently began using more dynamic methods of fetching data to be displayed in items controls. One of the controls I am reworking is a collection of links.
The issue I am having is that each link is coloured differently when moused over. One red, one blue, one green,...
I found similar topic:
http://stackoverflow.com/questions/56347/iterators-in-c-stl-vs-java-is-there-a-conceptual-difference
Which basically deals with Java iterator (which is similar to C#) being unable to going backward.
So here I would like to focus on limits -- in C++ iterator does not know its limit, you have by yourself compare th...
Background
I'm working on the architecture for a cloud-based LOB application, using Silverlight for the client, WCF, ASP.NET/C# for server and SQL Server for storage. The data model requires some flexibility per user (ability to add custom properties and define validation rules for them, for example), and a hybrid EAV/CR persistence mod...
After working on a Django project for a while, I now have to do some design documents for it (UML type stuff). However the code doesn't have classes, but instead uses views.py with modules in it...
What would be the best way to show the design of my application from the initial __init__.py, to the urls.py where the HTML requests are the...
A field in my table can have arbitrary strings. On the UI, there is a drop down having options like
All, Value1, Value2
And the results were filtered by the selected option value. So far this is easy and adding new filters to the UI is not a problem. Needs no changes in my stored procedure. Now I want to have an "Others" option here a...
There is a simple WinAPI application. All it does currently is this:
register a window class
register a tray icon with a menu
create a value in the registry in order to autostart
and finally, it checks if it's unique using a mutex
As I'm used to writing code mainly in C++, and no MFC is allowed, I'm forced to encapsulate this into C+...
I have got a simple web app in development, i want to establish a couple of user groups; Admin, Doctors & Patients.
Each group would have their access restricted to particular controller actions rather than individual content. So for example, Doctors can view patient records (index & view actions), but cannot delete them.
Usually i wou...
Hello,
I have been coding a site in pure HTML/CSS - using no server-side language.
I was wondering if anyone had any feedback - is there anything that you would change etc...?
Many Thanks,
J
View Site
...
Hi all
I'm reading through Eric Evans' awesome work, Domain-Driven Design. However, I can't help feeling that the 'layers' model is contrived. To expand on that statement, it seems as if it tries to shoe-horn various concepts into a specific, neat model, that of layers talking to each other. It seems to me that the layers model is too s...
I have small design question about
html.DropDownListFor()
How can i change width of html.DropDownListFor() ??
For example by css.
Thanks for answers
...