Questions tagged as 'asp.net-mvc'

1
answer

Autocomplete with typeahead and JSON

I have a project in ASP.NET MVC and in it a script for autocomplete using typeahead with prefetch: $(document).ready(function () { // Sonstructs the suggestion engine var ativos = new Bloodhound({ datumT...
asked by 19.12.2016 / 13:30
0
answers

DateHora Formatting

I have a field in the DataHora database, my class is simple and has no annotation public DateTime DataHora { get; set; } I have these two fields on the screen for the user who will use a single field in the DB <div class="form-group"&g...
asked by 26.10.2016 / 18:24
2
answers

System.Data.SqlClient.SqlException: Conversion failed when converting the varchar value to int

I'm getting this exception in C # when I try to read SQL data. I am having doubts if this error is problem with my SQL or in C #. My SQL code that does the conversion is this: '$ (SELECT ORDEM FROM TABELA UP (NOLOCK)...
asked by 20.10.2016 / 13:47
1
answer

Fill DropDown from the selection of another DropDown [duplicate]

I'm trying to fill a DropDown from the selection of another DropDown , basically, when the user selects a state in a DropDown , the cities of this state must be displayed in another DropDown , dynamically . I have t...
asked by 18.10.2016 / 15:35
1
answer

How do I get the name that is in Resources for the field names?

When I have an application using Resources, and on my screen I have a text for example: <section> <div id="banner"> <h1> Com você, aonde você for! <small> dicas sempre atualizadas.&l...
asked by 18.10.2016 / 21:35
1
answer

BeginForm does GET instead of POST

I have a controller that has two Actions; public ActionResult Cadastrar() { return View(); } //[ValidateAntiForgeryToken] [HttpPost] public ActionResult Cadastrar(Usuario usuario) { if (ModelState.IsValid) { var appUsuari...
asked by 09.10.2016 / 02:18
0
answers

Link sends null array

I have a search screen and need to send a parameter as array, that part was quiet, the big problem is that this screen is paged, so in the page change links I put to send this parameter, but it is always sent null. Codes:    Controller...
asked by 05.10.2016 / 16:08
1
answer

How to delete Modal Bootstrap data the second time - ASP.NET MVC 5

When I open Modal the second time, the audio element remains the same. I've uploaded new audio and still continues the old audio. Please follow my code below. <div class="col-xs-6"> @Html.LabelFor(model => model.Voic...
asked by 05.10.2016 / 21:33
0
answers

Syntax or bug problem?

I'm using onclick to execute a JavaScript when a button is clicked on the dropdown-menu. The problem is in view : Fullimagecodeabove:/*Linha1*/<divid="context-menu4"> /*Linha 2*/ <ul class="dropdown-menu" role="menu"&g...
asked by 22.11.2016 / 20:17
0
answers

Create Partial for Table [closed]

I'd like to create a partial (to be called as @Html.Partial) by getting the id of the table and a collection of the data. But it would have to be totally independent. The part of C #, with reflection, I can make a good one, but I do not know how...
asked by 22.11.2016 / 22:37