Hi
I am now using asp.net mvc and wondering what is a better choice using the built in Json or Json.Net I am not sure if one has an advantage over another.
Also if I do choose to go down the route of Json.Net then should I go with the stable version or beta 4? I am not sure how unstable the betas are.
...
Hi
I want to get all the error messages out of the modelState without knowing the key values. Like I just want to do a for loop and and grab all the error messages that the ModelState has.
How can I do this?
Thanks
...
Hi
I want to return some errors to my jquery method. What is happening is I am doing a post(with a type of "json") and if they get errors I want to display the error back to them. I am doing client side validation but some of these are errors that are like server related(ie the database died or something and that update could not happen...
I have certain panels on my page that are hidden under certain circumstances.
For instance I might have a 'billing address' and 'shipping address' and I dont want to validate 'shipping address' if a 'ShippingSameAsBilling' checkbox is checked.
I am trying to use the new DataAnnotations capabilities of ASP.NET MVC 2 (preview 1) to achie...
How to implement a counter of users visiting the site in asp.net mvc
...
Hey
I'm using a regular expression to check the format of a supplied date in my ASP.NET MVC exception. However, every time I run it the action the web server crashes and Visual Studio reports and unhandled System.StackOverflowException
//If the supplied date does not match the format yyyy-mm-dd
//Regex taken from www.regexlib.com
if(!...
I have an ASP.NET MVC site and I am trying to figure out separation of controller and model (repository) and HTML helper functionality.
The goal is to query a database table of photo albums information and display it grouped by year.
The steps are:
Query database and return datatable of the database information.
Convert Datatable to ...
I was wondering if it is possible to do a RedirectToProvider and have the resulting OpenID provider page displayed in an iFrame. This would make the authentication flow seem a lot more streamlined.
I am using the DotNotOpenID library in ASP.NET MVC (VB).
This next part is sort of a seperate question, but is related.
I am using Ajax.Be...
Is it possible to manually connect to the database using sqlclient and sqlconnection (ie standard ADO.net way) instead of using LINQ or Entity Framework in Asp.Net MVC?
Please guide me
Thanks
...
Hello,
How do I use Datatable instead of Entity framework in Asp.Net mvc?
I'm referring to this tutorial on the asp.net Website ....
http://www.asp.net/Learn/mvc/tutorial-21-cs.aspx
....Can I return a datatable instead of a movie or movielist object??
...
How do I convert a datatable into a POCO object in Asp.Net MVC?
...
As Mono plans to soon implement ASP.NET MVC, Linq to SQL and other nice .NET stuff, I'm considering to start an open source project based on these technologies.
The problem is, there have been concerns on Mono's future; there is an article by RMS stating that "free software shouldn't depend on Mono or C#".
I've heard many comments, ran...
Hi
I am storing all my dates in UTC format in my database. I ask the user for their timezone and I want to use their time zone plus what I am guessing is the server time to figure out the UTC for them.
Once I have that I want to do a search to see what is range in the database using their newly converted UTC date.
but I always get th...
I'm a little curious about why CAS is being extensively used in MVC. A lot of it seems to be suppressedmessages too. I may have misunderstood it but I always thought you didn't need to use CAS if you fully trusted the code/server you used.
...
I'm forced to use IIS7 because Casini is only x86 and we are running with x64 ELMAH.
Something I've noticed since I've switched is that I cannot set breakpoints in ASP.NET MVC views anymore. I'm not totally sure it's because of IIS7, is it? Does it happen to you as well?
The Visual Studio (2008) project is configured to use the local I...
someone sent me over a link to download the sample standard asp.net mvc sample, i noticed that there were 2 web.config files
1 in the root directory
1 in the views directory
what is the reason for this?
...
Server Error in '/' Application.
--------------------------------------------------------------------------------
No parameterless constructor defined for this object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and wher...
Hello,
How do I retrieve the value of a textbox in asp.net mvc to store the value on to some variable?
I have a textbox like this <%=Html.TextBox("testbox") %> on the index view page.
I have a button like this <input type="submit" />
I'm using the default view page which comes when you open a new mvc app.
Thanks.
...
How in ASP.NET MVC would I construct an image map? For ref:
<map id='headerMap'>
<area shape='rect' href="Default.aspx" coords='300,18,673,109' />
</map>
One answer of an answer of an unrelated question by markus is something similar:
<a href="<%= Url.RouteUrl("MyRoute", new { param1 = "bla", param2 = 5 }) %>">
put in <span>w...
Hello,
How do I use multiple actions on the same controller?
I'm using the default project that comes up when opening a new project in asp.net mvc.
I added one more Index action on the homecontroller to accept a value from a textbox...like this
string strTest;
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Index(Fo...