In my attempt to enable sorting and filtering in conjunction with the MVC contrib. grid I have decided to use a Viewmodel which contains the grid data plus the sorting and filtering information. I added a form under the grid and the Viewmodel is used to maintain the state of the form and to carry the data for the grid:
public class Gri...
I have a method in my class that takes a bool and returns a string so that the user doesn't see true or false in the view. I am then trying to use this method in the MVCcontrib grid
public string BidStatusText(bool status)
{
if (status == true)
return "Bid Confirmed";
else if (status == false)
...
I have an array:
var list = JSON.parse('[{"id" = "8", "description" = "test"},{"id" = "10", "description" = "test_2"}]');
I'm using this together other data to post using jQuery's ajax method:
var data = { start: 123403987, list };
Why is the values submitted as:
start=123403987&list[0][id]=8&list[0][description] = "test"...
Whe...
Hello,
Here's the definition of the LogOn post action method
[HttpPost]
public ActionResult LogOn(LogOnModel model, string returnUrl)
{
// more inside
}
I've a basic question. Does the framework supplies the string returnUrl? or I do have that responsibility?
Thanks for helping.
...
Hi,
I create a strongly typed form like this in my controller:
return View("BlaForm", Bla);
In the view I use something like this:
(1)
<%= Model.Version %>
(2)
<%= Html.Hidden("Version", Model.Version)%>
Here (1) is just for debugging purposes.
After a successive update of my object this produces something like this:
(1)
...
I'm using jstree jQuery plugin, and I'm using the cookie plugin to save previously selected node on refresh.
However, if the tree structure contains two nodes with the same name (under different parents), both will be selected on a refresh.
Anybody know how come, and what to do about it?
Here's the code:
$("#divLeftPane")
...
Entity Framework 4, POCO objects and ASP.Net MVC2. I have a many to many relationship, lets say between BlogPost and Tag entities. This means that in my T4 generated POCO BlogPost class I have:
public virtual ICollection<Tag> Tags {
// getter and setter with the magic FixupCollection
}
private ICollection<Tag> _tags;
I ask for a B...
How to prevent exe file upload in asp.net mvc.
...
We here at my company are just about to get going on ASP.Net MVC 2 for our UI to interface a backend totally SOA with WCF/WSDL. I have looked at various books examples of how to totally make the applicalion loosely coupled from the Domain perspective using the IoC containers e.g. Unity or Castle (looks to be the way to go !) ...BUT Are t...
I've been working with S#arp Architecture but this can probably be applied to any DDD architecture (Domain / Core, Application Services, Infrastructure, and Presentation).
There are many ASP.NET MVC examples that show the controller operating on the domain model through repository interfaces. In fact, the S#arp Architecture tutorial ha...
i have a sentence with html. action link:
<b>Please enter your username and password.
<%= Html.ActionLink("Register", "Register", null, new { @id = "logOnLinkRegister" })%>
if you don't have an account. </b>
how can i save it in resource.aspx.resx file?
it is in the asp.net mvc web project.
...
What is "ASP.Net MVC support for Editor.For(model)" and where can I read more about it? Googling did not find anything.
...
Hi, i have the following entities:
public class Category
{
public virtual int CategoryID { get; set; }
[Required(ErrorMessage = "Section is required")]
public virtual Section Section { get; set; }
[Required(ErrorMessage = "Category Name is required")]
public virtual string CategoryName { get; set; }
}
public class...
I found a library where I could use multicolumn autocomplete for a Web Forms project. Is there a way to do this in MVC?
So I start typing in a surname and I see a list underneath showing the surnames with the letters typed in so far, followed by the forename and the employee number. When I select one, the textbox is populated by the empl...
At top there is some most useful info about foo.
Between horizontal lines there is some immediate actions, if they are available, to perform on/with foo.
And below is thing that bothers me. There goes tabbed, detailed information about foo.
Those tabs can hold some actions too and can be quite sovereign.
So the question is - how ...
I'm looking at postmarkapp.com to handle the sending of email from my asp.net mvc 2 application using the .net library that they provide: postmark-dotnet library
In their documentation they mention that sending emails w/ attachments can take some time and its better to do this in a background job. For my application I could be sending ...
I have a class like this
public class MyClass
{
public MyClass()
{
Enumlist = new List<MyEnum>();
}
public virtual List<MyEnum> Enumlist { get; set; }
}
and the enum is
public enum MyEnum
{
Enum1=1,
Enum2=2,
Enum3=3
}
but in my view i keep having this eror
"The value 'System.Collections.G...
Hi all,
From what I read, Google Federated Login is OpenID and OAuth together. I've read the samples included with dotnetopenauth (theres a Gmail Contacts one in there) and sort of get it.
What is freaking me out, then, is if Google Federated Login is a combination of these two protocols, how on earth am I supposed to implement it when...
Hi
I have a problem in IE. Hitting enter when the focus is on the last input control sends the focus to the "Next" button. This submits the form. So far, so good.
The code in my base class WizardController looks to see if the Next submit button is null, as follows:
protected string NextButton
{
get
...
Global.alert("base: " + base + ", upfront: " + upfront + ", both: " + (base + upfront));
This code above outputs this:
base: 15000, upfront: 36, both: 1500036
Why is it joining the two numbers instead of adding them up?
I eventually want to set the value of another field to this amount using this:
mainPanel.feesPanel.initialLoanAm...