When using Ajax, I create an asynchronous request for my server. If I use N ajax requests simultaneously, am I still handling these requests synchronously on the server?
If yes, to create an asynchronous request on both the client-side and th...
I need to use the html5 appcache to store some web pages. Before using MVC I simply made this regular expression to check whether it is connected or not.
var offlinePages = /^\/(index|about|schedule|location).htm$/;
And in this loop I test:...
I need to create a dynamic DataTable
of the genre:
List<p> =...
List<l>=....
DataTable dt = new DataTable();
foreach (Prod pr in p)
{
dt.Columns.Add(prod.Nome.Trim());
for (int i = 0; i < l.Count; i++)
{...
Dear friends, I have a view that contains only @model Projeto.Models.Oc and a form . Within this form , I have buttons that call MODAL , these MODAL have partialView , @model Projeto.Models.Rc , etc.
I wanted to...
Based on on this site and also on I came to the conclusion that I should not use the class HttpClient in a using block even though it implements IDisposable . This would help reuse the already instantiated object and bring...
I have class Funcionario and Projeto . Both have their Id's.
I want to create a class ProjetoFuncionario and would like to instantiate the primary key of the two in this class.
How can I do it?
namespace Exercicio1.Mo...
I want the required fields (properties with the Required attribute) to render with an asterisk indicating that it is a required field.
public class Foo
{
[Required]
public string Name { get; set; }
}
Html.LabelFor(o => o.Name) //...
I am developing a project where the user can publish texts, but before being posted on the site needs to be approved, something similar to the invitations of friendship of social networks where it is necessary to wait for approval of another per...
I'm using the IPagedList to do results listing in my application. But I'm trying to solve a problem: When I have many results, going to the controller function to read the results of another page gets heavy. That is, when I am loading my View I...