Questions tagged as 'asp.net-mvc'

1
answer

How to list related data

In my project I have two tables: Student and Occurrences. And they are related so that a student can have multiple occurrences. My need is: In the student Details view (Details.cshtml), I need to show all occurrences related to the student. That...
asked by 30.05.2014 / 21:07
1
answer

MvcCheckBoxList, RadioButtons, and Text Inputs

I'm having a project where I'm using MvcCheckBoxList. My question is this: Would you like to put a mvccheckboxlist together with radio buttons and inputs? For I am in a project in a school that I have to record some occurrences and I need th...
asked by 09.05.2014 / 00:10
2
answers

Calling action with AJAX, but does not return alert for view

In textbox Ticket , in event onChange() I call AJAX below: $('#Ticket').on('change', function () { var tkt = this.value; $.ajax({ url: '@Url.Action("VerificaTicket", "Oc")', data: { 'tkt': tkt }...
asked by 03.03.2014 / 17:55
1
answer

What is most advisable? Do you query through a list or directly in the database?

I have to perform a query where I need to do 4 INNER JOIN and still use WHERE in several fields. What is most advisable? Conduct the query in this way? using (DbContexto db = new DbContexto()) { var query = (from t1 i...
asked by 19.11.2014 / 17:51
1
answer

How can I return to a PartialView, leaving the data loaded?

I have an MVC system, where the user can query the entries. For this to occur, I have a View with the filters and a PartialView that is updated within the View, displaying the results. In front of each record displayed, there is an opt...
asked by 15.10.2014 / 14:58
1
answer

Problem with bundle scripts

When I publish my asp.net mvc application the bundle script generates a ref problem. scripts. As in the debug environment I do not use the bundles, the problem does not happen. Error:    "common / scripts": Duplicate data property in ob...
asked by 03.09.2014 / 14:31
1
answer

How to show the build version?

I see in some pages and systems the build version. I would like to show in a view the build version of my project in ASP.Net MVC     
asked by 31.12.2014 / 19:25
1
answer

Validate delete in controller, return html helper

I have my registration, which was done using Scallfold's visual studio In my view: @using (Html.BeginForm()) { @Html.AntiForgeryToken() <div class="form-actions no-color"> <input type="submit" value...
asked by 12.06.2014 / 02:30
1
answer

Upload file ajax asp.net-mvc

I have the following problem when I use file upload. Ajax executes "at the same time" the two actions. And I would like him to perform the ulpoad action and then the other. Or another way to upload. <div class="editor-field"> <inpu...
asked by 16.06.2014 / 20:16
1
answer

How do I get access_token when I sign in with Facebook on MVC5?

When I create a project MVC5 the Visual Studio automatically creates a site for me with a login option via Facebook, Google ... I just need to enable "Startup.Auth.cs" . But it does the direct login and I do not know how t...
asked by 19.12.2013 / 21:40