Questions tagged as 'razor'

1
answer

Load from within the partialview js / css

Good morning, insira o código aqui I can not load .js / .css when loading partialview no layout <!DOCTYPE html> <html> <head> ... @RenderSection("header", required: false) </head> <body>...
asked by 04.11.2018 / 15:33
3
answers

Aligning twiter bootstrap buttons inside a Table

My buttons inside the table are breaking the line when a column is added to the table, they are getting like this: Mycodeisasfollows:<divclass="row"> <div class="col-md-4"> @using (Html.BeginForm("Index", "Clientes", FormMeth...
asked by 01.11.2018 / 19:54
0
answers

Load one page inside another

I have a layout page where I want to load information into the notifications button. For this, I made an action in the controller to return a PartialView where a query will be made in the bd looking for the information. How do I load this...
asked by 14.10.2018 / 23:59
1
answer

How to call a javascript function that is in a separate (.js) file from cshtml?

Hello, I have a page where the data of a DropDownList is a result of selecting a DropDownList before it, I created a function with javascript and ajax to perform the filter, everything works when javascript is w...
asked by 15.10.2018 / 18:30
0
answers

CNPJ Field with Mask

I'm a beginner in both ASP.NET and jQuery. I need to include a mask in the CNPJ field of my View, but I can not. I'm going to post my code and someone, please tell me where I'm wrong. Bundle using System.Web; using System.Web.Optimization...
asked by 29.09.2018 / 21:14
0
answers

How to configure Checkboxes Materialize Css in Web application Asp.Net MVC

How do I configure Checkboxes in Asp.Net MVC Razor Since in the documentation we have the following configuration Materialize for checkboxes <p> <label> <input type="checkbox" /> <span>Red</span> &l...
asked by 24.09.2018 / 23:53
0
answers

Save data from several related classes in the same view - Asp.Net MVC

I have a schedule class where I need to save the client data, the time, and the service that will be scheduled. However, the service is saving correctly through a selection in the DropDownList, but the client data and the Schedule are not saving...
asked by 17.08.2018 / 16:52
0
answers

Automatic Text Break

I'm trying to remove the Line Break from this table, but I do not know how to do it, I wanted to let the full name be written and without the line break. Code:#customers{font-family:"Trebuchet MS", Arial, Helvetica, sans-serif; border-co...
asked by 02.08.2018 / 21:05
1
answer

Paste value hidden .net core

Good morning I have this hidden one that receives the value correctly: <input type="hidden" id="idHorario"/> But I need to get the hidden in the code, how can I proceed? HorariosItens = await _context.HorariosItens...
asked by 31.05.2018 / 15:47
0
answers

How to do Table with two foreach close tr / tr Asp.Net MVC

I need to make a table that each line has the information as picture below NoticethatinLot1toCitythedatadoesnotrepeateveryforeach,andonlyfromtheSpeciescolumndoesthedatarepeat,inthisrowtheforeachloops3timesandtheBatchcolumnsuptoCitysuffersarowsp...
asked by 15.04.2018 / 06:00