Questions tagged as 'asp.net-mvc'

1
answer

How to represent this html code with razor helpers

I have the following HTML code: <div class="form-row"> <div class="form-group col-md-12"> <label class="form-label">Tipo de dirección</label> <div class="form-inline"> <label class=...
asked by 23.11.2018 / 11:32
1
answer

Add record to table by default in ASP.NET MVC with Code-First

Someone who works with the CodeFirst model in ASP.NET MVC and can give me an idea to know: How to add a user by default in the User table >, when executing the construction of the tables of my Context for the first time? I put this simple fr...
asked by 07.03.2016 / 18:00
1
answer

In charge of filtering data in asp.net MVC

I have a MVC web application and it contains a GRID with KENDOUI framework where it shows all the data in the "Patient" table, I wish < strong> filter the data to be displayed in the table according to the identified user which is already...
asked by 02.03.2016 / 04:01
3
answers

Detail of an item of different models in entity framework

I'm really new programming and I'm constantly encountering problems, I currently have a table where I put data related to students, house row has a button that allows me to see more information related to the student but there is also related in...
asked by 15.11.2018 / 00:14
1
answer

C # MVC versions in VisualStudio

I am currently working with VisualStudio 2017, C # and have worked with ASP templates 4.5.2 as shown in the image: I am a web programmer and I do not have much knowledge about these Microsoft tools, I have become accustomed to working with...
asked by 31.07.2018 / 16:14
1
answer

save variable without being "cleaned" when doing return view C #

I have a small problem, it turns out that I am doing two filters in my project (One by date and the other by company). The filter by date works perfect I change it by date and it filters well but that date that I send it I want it to be stored i...
asked by 17.07.2018 / 18:33
2
answers

Help with the search method c # mvc razor

That such a friend I turn to you again to solve a problem that I think is simple but I could not find the solution. 1- I am using the sew component to be able to enter various data into a search form that contains 2 dropdownlist. 2.- the 2...
asked by 05.06.2018 / 20:43
2
answers

Asp.net C # identity 3 layers - session replacement in VS 2017

Query, formerly when I was programming in asp.net form, I did it with sessions, now that I am working with asp.net mvc 5 in n layers, how can I get, for example, the ID or Full Name of the user logged in from any part of the application?     
asked by 09.05.2018 / 07:24
1
answer

How can I add this other property to my SQL Server query?

In ASP.NET WEB I am doing a search filtering for a table depending on the items you choose in 2 different dropdownlists. For now, I can make it work with one. SQLTable = "SELECT * FROM Mitabla"; SQLTable += "WHERE ID='" + Dropdownlist1.Selecte...
asked by 21.07.2018 / 05:42
1
answer

MvcHtmlString.Create () returns a semicolon ";"

I'm new to this with ASP .Net MVC, I have the following Helper that should show me an icon indicating the sort order (Ascending or descending): public static IHtmlString IndicaOrden(this HtmlHelper htmlHelper, string sortOrden, string campo)...
asked by 06.03.2018 / 18:15