Hi,
I use a JTable to display data sourced from a streaming data feed.
Each data point is represented as an object of type X, which has one field of interest, lets call it valueField. My implementation of the TableModel interface has a HashMap of objects X keyed on X.getId().
The users of the GUI are able to change the values us...
I have used some JsonFilter ActionResultAttribute which uses newtonsoft.Json json converter to convert the json in the request into a real object. This appears to work fine some some basic parameters, but isn't working for more complex, so i wrote a UT for it (yeah I should TDD, but prototypes always come first...).
The attribute class...
Scenario:
I have a base controller which disables caching within the OnActionExecuting override.
protected override void OnActionExecuting(ActionExecutingContext filterContext)
{
filterContext.HttpContext.Response.Cache.SetExpires(DateTime.UtcNow.AddDays(-1));
filterContext.HttpContext.Response.Cache.SetValidUntilExpires(false)...
I am looking for advice on best resources to learn how to develop webapps with Django [the python framework]. Here's a few information to help responders to narrow-down the gazillion options "out there".
Where I stand
I know python (2.x series) and I have developed a few applications/scripts with it. I wouldn't define myself a python-...
Hello everyone.
I am trying to start a new project (asp.net MVC) and I would like to apply some DDD rules I've learned in these last few months.
I don't know how to organize my solution though.
I would like to use Nhibernate but I don't want to use Fluent Nhibernate cause it must be something like an experiment.
I've seen some examples w...
What is .NET MVC architecture?
...
Hi, i'm trying to learn how to use flot
and i think your example is a very nice, simple, very understandable code so i've been trying to implement it but...
well, here is my code in the index.aspx:
$(function () {
$.getJSON("../../Home/JsonValues", function (data) {
alert('json: ' + data + ' ...');
var plotarea = $("...
I have a Controller: AdminPageController, in which I have the following actions: Index, Create, Save
My save action is as follows:
public ActionResult Save(string[] inputs, int columnsCount)
{
.....
return RedirectToAction("Index");
}
I can see that the debugger passes throug the redurectToAction , but the index is not displayed...
I want to redirect to the action Index, controller Admin after the post from ajax.
$.post("/Admin/Create", { inputs: inputs, columnsCount: columnsCount, });
How can I change this code to redirect it to the index page after success?
...
I am trying to use the Html.ListBoxFor helper to show a list box and return the selected Id. Is there a problem with the dataValueField not being a string?
If the SelectList contained in the model uses integers as the dataValueField then I get a "Value cannot be null - Parameter name: Source" exception raised when the list is rendered i...
In MVVM it is normal to connect View to the ViewModel with data binding.
Therefore if the name of a properties changes on one of the Model objects that is databound to there is no compiler error.
When the compiler will not stop a bug, the next thing I think of is “UnitTest”, However
How do you unit test this without
spending for...
Hi,
I have many pages with many dropdowns in them and I am wondering whats the best practice for filling all those dropdowns in an MVC 2.0 app, am thinking of creating a template for all because I wanna use special script on each one, but what about using ajax to initially load the dropdownlist items values. maybe through creating a co...
I have a webpage that loads, does some calculations and then does a JavaScript redirect to another webpage. It looks something like this:
http://www.mysite.com/startpage.html
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
$(document).ready(function() {
window.location = "http://www.mynewurl.com";
});
</head>
<bo...
Is it considered bad form to give a DTO a reference to the data access layer?
Or should you always pass a DTO between the data access layer and the application layer?
EDIT: For example, imagine the following:
I keep a product types list in my database.
I'd like to render this list in a drop-down box in a partial view.
This partial vi...
I have a Rails app where people have a profile page - http://prettylongdomainname.com/profile_username
To create the profile username, I use a before_create AR hook in my model:
before_create :generate_username
def generate_username
self.username = a_user_name_i_generated
end
I would also like to save a shortened URL to the user...
Hello,
with fluent nhibernate, is there a way to dynamically switch the table of a mapping at runtime?
For example:
public class XYClassMap : ClassMap<XY>
{
public XYClassMap( )
{
Table("XYTable");
Id(d => d.Id).GeneratedBy.Identity();
Map(d => d.Value);
(...)
Given that there are multiple plugins, each of them ...
I'm new to CakePHP, and still figuring out the basics. Right now I'm a bit mystified by the process to get one or more fields from a model (from inside another linked model).
So far, I have this:
$this->user->id = 123;
$this->User->read();
$field1 = $this->User->data['User']['field1'];
$field2 = $this->User->data['User']['field2'];
W...
I would like to create a static helper method that I can call from a view.
Is it possible for a helper method to have access to the current ViewContext without needing to explicitly pass the ViewContext to the method as a parameter?
Something like HttpContext.Current except for ViewContext.
Thanks for any help.
-Keith
...
is any library to allow create dynamic javascript menu from code ?
...
I work at a company that makes the move from php to .net.
Now i am searching for good video sources to learn new techniques.
We have already a license for www.tekpub.com great site
but already have seen a lot of movies and will check other video sources too
what video sources do you have or do you know ?
...