Most voted "asp.net-mvc" questions
ASP.NET MVC is an open-source Microsoft framework that implements the Model View Controller architecture standards for web development. Based on ASP.NET, it allows software developers to build web applications following the Model View Controller architecture standards, featuring a variety of features following recent trends.
Learn more…3,385 questions
Sort by count of
-
1
votes1
answer154
viewsSend email using Netoffice ASP MVC
I am starting to send emails in my application, so I am trying to use the package of Netoffice to send and receive emails. What I am trying to do is: From the account logged in to the local pc with…
-
1
votes2
answers300
viewsWhat can I use to replace the Hidden input in ASP NET MVC?
I have a difficult mission that is to pass a system of webforms to MVC, the system with webforms has many input hiddens that store basic information such as session hash and user code, but like me,…
-
1
votes2
answers721
viewsHow do I direct an Action to a view inside a folder?
In my Ugcontroller I have an Action named Register that takes me to the View Register.cshtml that is in the UG folder. That is to say: Controller: UGController Action: Cadastro() Link: /UG/Cadastro…
-
1
votes1
answer141
viewsResource with database
Well I have the following environment: Table: Livro id titulo tituloEN descricao descricaoEN Controller: [LivroController] public ActionResult Index() { var livros = bdLivro.ListarTodos(); return…
-
1
votes1
answer88
viewsError opening Partial’s in a new tab from a function in javascript
I have the following case: I have a navigation page of "Third Party", with several Partials defining their corresponding data. To do that navigation I’m doing by javascript, and carry the Partial as…
-
1
votes1
answer73
viewsAction Does Not Perform
I am using STS authentication, and given certain configuration in web.config I can’t get my (Sign In) action to perform what it should. to elute follows code: [AllowAnonymous] public class…
-
1
votes2
answers1083
viewsLoad a type list into a View of another type
I’m doing a professional registration and of course, my View is typed with this Model. But in the register I need to insert Specialization and Type (other 2 different models). These last 2 models…
-
1
votes1
answer120
viewsRun Trial with Codefirst
I am trying to run a trial on ASP.NET MVC with Codefirst. I saw some examples on the internet but they are not working, someone can help me? Follow the code I’m using, the Procedure just copies some…
-
1
votes1
answer944
viewsView Selected Image jQuery
I’m doing my TCC and it will be about image processing. I’m having difficulty with the web part, and wanted to know how I do to load the selected image in the input file appear on the page. Here is…
-
1
votes1
answer1437
viewsLearning to use AJAX in ASP.Net MVC 4
In my project, I have two models different, generating with this, their controllers and your views. Only what happens is that I don’t know how to use AJAX and urgently needed a help from you. What…
-
1
votes1
answer436
viewsDoubt in View and Controller construction with cardinality dependent entity N
I am on a project that I have a relationship of 1:N. Explaining better: Project is for a school where there are students and their occurrences. Then you would be a student for several occurrences:…
-
1
votes1
answer474
viewsHow to "call" an ASP.NET page without using IIS?
I need to get the result of processing an ASP.NET page via programming, but I cannot use IIS. The right, would be, if ASP.NET, had a CGI to be called, just like PHP has, but I found nothing, only…
-
1
votes1
answer183
viewsError 500 in Asp.Net Awesome Library
I found browsing the internet this library ASP.net Awesome. I found it very functional and easy to use. According to the documentation to use a helper called Lookup, you need to have a controller…
-
1
votes1
answer389
viewsDatabase entry error, how to solve this case?
I am trying to insert a form with various data, some booleans, radiobuttons, datetime etc. I need to know if everything is correct, I am picking them up via FormColleciont. Controller: [HttpPost]…
-
1
votes1
answer594
viewsReturn more than one data list in the view
In my Return View(), is there a way for me to return two or more lists? These lists are the result of a.
-
1
votes1
answer138
viewsHow do I send html from one view to another view?
I have a view (View1.cshtml) with filters, a whole layout and a graph within a div that is generated according to the filters. I created another view (View2.cshtml) in white and I would like to pass…
-
1
votes1
answer401
viewsStandard Asp.net MVC authentication
I’m starting studies on Asp.net MVC, and wanted to know where the visual studio creates the database and tables when choosing the standard MVC project. It seems that it already creates all the…
-
1
votes1
answer263
viewsFailed to create a site in iis 8
I am trying to publish my application on a windows server 2012 and IIS 8. I have deployed the files to the appropriate folder. In IIS, when creating a new website and testing the connection, I get…
-
1
votes1
answer62
viewsI can’t get into the comic book with Entity
This is my input code. Why is it wrong? What should I do? public int abreOsParceiro(string os, string cnpj, string dataAbertura, string dataVisita, string tecnico) { WEBEntities db = new…
-
1
votes1
answer256
viewsAbas Asp.Net MVC x Asp.Net Webforms Ajax Toolkit
Does anyone know any technique for creating and manipulating server-side tabs using the AJAX with Aps.Net MVC? I’m looking for something very similar Asp.NET Webforms Ajaxtoolkit, that can…
-
1
votes0
answers53
viewsPage a very large list
Grid in MVC - I have a lot of data to return and I didn’t want to bring all of a single see even why there is paging. How do I get 10 records? Which grid to use together with MVC and Entity…
-
1
votes0
answers104
viewsMultiple MDI windows on Web, similar to Windows Forms
I want to work with multiple independent windows in the web environment with Javascript, jQuery and etc. Similar to using MDI in Windows Forms. I know you can make this environment in Silverlight,…
-
1
votes1
answer289
viewsRender Webform in ASP.Net MVC
I need to call a Webform from an Action on controller, I read a lot on the internet but I couldn’t make it work. I followed the example at that link, where you ask to exchange your Webform…
asp.net-mvcasked 10 years ago Alan Almeida 633 -
1
votes2
answers1937
viewsHow to render html by passing as a controller string to the view?
I have the following view: public ActionResult RelatorioEquipe() { ViewRelatorioEquipeDTO dto = new ViewRelatorioEquipeDTO(); dto.LstUnidadeGerencial = negocio.Relatorio.ObterLstUg();…
-
1
votes2
answers1122
viewsSqldataadapter Query with Parameters
I’m having difficulties in returning a query in the database using SqlDataAdapter with parameters. Well, I have a layered application in my View when I first access a GridView with a query (this…
-
1
votes1
answer61
viewsTextarea Unicode problem in IE8 and MVC2
I’m having trouble in a textarea field. I have a textarea field the client type in this field inserts ç àèìáí, in the perfect textarea, in js also this ok, but when the controller rescues the…
-
1
votes1
answer91
viewsDisplay chosen Select value
I have this dropdownlist: <select> <option value="0">Selecione os capitulos</option> @foreach (var item in ViewBag.Capitulos) { <option…
-
1
votes2
answers1393
viewsAlternative to Session
I am using Session to store the company object the user is logged in to. Use also to make filters, for it view only what is from the logged-in company. However, I am with the following problems: 1 -…
-
1
votes2
answers351
viewsBinding in text field
In my project I have some tables between them one of occurrences and one of users, where a relationship between them of several occurrences for a user. What happens is that when registering an…
-
1
votes2
answers453
viewsRadiobutton or button to sort data
In my project, I have a Occurrences table and a column called Status and the Status values are: pending or solved. I need to sort the data and create a logic that in my view i have a button, or two,…
-
1
votes1
answer107
viewsError Login Asp.net MVC
I’m not able to validate my login, follow code below: public ActionResult Login(FormCollection collection) { AlunoAplicacao bdAluno; bdAluno = AlunoAplicacaoConstrutor.AlunoAplicacaoEF(); var Aluno…
-
1
votes1
answer43
viewsJson with problem, does not continue execution after request
Code of the contorller public JsonResult InsertComment(string description, int postID) { try { Comment comment = new Comment { Content = description, DataCommented = DateTime.Now, PostID = postID,…
-
1
votes1
answer329
viewsDLL to encrypt a string
How to create a DLL in C# with Interop to traffic data between applications using encryption/decryption of a string that will be sent and received?
-
1
votes1
answer832
viewsError in LINQ( Expression Lambda query)
I have an appointment, which was working perfectly in my controller. I made a change (I don’t know which one) and it stopped working. I don’t know what I did wrong, to stop working. Error: The…
asp.net-mvcasked 9 years, 10 months ago Randrade 21,612 -
1
votes1
answer165
viewsSave windows id Authentication
I have an application whose authentication is via windows login. With this class I get user login: public static class UserDetails { public static string GetLogin(string userName) { string login =…
asp.net-mvcasked 10 years, 4 months ago PFVictor 345 -
1
votes1
answer614
viewsSwitch HTACCESS to Web.config
Hello, It is possible to convert this HTACCESS code to a Web.config file ? RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)\?*$…
-
1
votes2
answers301
viewsHow to return an int in a Decimal property
I have an SQL string (made by another programmer a long time ago, so I can’t change it) that returns something like this: If it has value in column, returns value, otherwise returns 0 (I would post…
-
1
votes1
answer80
viewsApply style to first line after n
I have a textarea that had received a text. The style application will be minimal, so I didn’t want to use some editor like Ckeditor, for example. I believe the easiest way to work is to apply a…
-
1
votes2
answers1173
viewsHow to use folder to store images in a Web Api project published in Windows Azure?
I have a folder created at the root of a project Web Api calling for Images. In localhost I record them as follows: File.WriteAllBytes(HttpContext.Current.Server.MapPath("~/Images/") + image.Name,…
-
1
votes1
answer179
viewsAccess App_data content through the business layer (Classlibrary)
I need to upload a file that is in the folder App_Data, but I saw that it is not possible to use the Server.MapPath in my business layer. Which approach is most appropriate for this case? Add the…
-
1
votes1
answer548
viewsSubdomain does not load styles and scripts
Good morning, 1- I created a new solution in Visual Studio 2012; 2- I created ASP.NET MVC 4 Web Application. I opted for a "BASIC" project, Framework 4.5 and the Razor engine; 3- I created the Home…
-
1
votes2
answers6021
viewsButton/link inside a view redirecting to another view
I have the following address for a view: http://localhost/Configuracao/Details/1 Where create a button/link that redirects to another address from another view as follows: <a…
-
1
votes1
answer108
viewsHow to make a pager without a gridview?
I have a system in Asp net mvc, in one of the screens is displayed several items, the select to catch them from the bank is: Select top 20 from Produtos As demonstrated, it displays only the first…
-
1
votes2
answers180
viewsHow to produce JSON in the format that Flot expects?
Doubt on how to serialize to return this JSON. I’m using the Flot library (http://www.flotcharts.org/) to display a chart. I can generate the charts. In my view I’m wearing it like this : $.ajax({…
-
1
votes1
answer1287
viewsSecurity and authorization using Roles
I am finishing my application by configuring the authorization and permission of the application users. My idea is to move the layout so that the menus and submenus are only visible to those who…
-
1
votes1
answer340
viewsError in foreach
Good evening guys. I have a project for a school that registers the student’s data and their occurrences. going straight to my problem: What happens is that I have a page to show the new occurrences…
-
1
votes1
answer111
viewsHow to always keep 1 record in BD after inserting with entityframework?
I am developing in . NET MVC using Entity framework, how do I save a data by consulting if there is record or not in the table? 1.Query whether or not there is any data in the table 2.If you have…
-
1
votes3
answers1378
viewsDatetime field display in View with hours, minutes, day/month/year?
How to manipulate the datetime and show in view in the following format? HH:MM dd/MM/aaaa
-
1
votes1
answer204
viewsRecovering Multiselectlist MVC values
I’m not sure how to handle the received data via MultiSelectList. Also, I can only select more than one option on View if I press CTRL. There is a way the user can click more than one value without…
-
1
votes1
answer470
viewsRadio button using Viewdata for a MVC model
I own a Viewdata and would like to turn it into a Radiobutton for a model ViewData["tiposPagamento"] = dbo.TiposPagamento.Where(_=>_.Ativo); Radio Button :…