Posts by Luiz Negrini • 1,424 points
67 posts
-
1
votes2
answers1083
viewsQ: Load 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…
-
3
votes1
answer104
viewsQ: Disfigured ASP.NET routes
From trying and searching I think I’ve disfigured something important, so I can’t make the routes work. In this image it appears that the form is being posted to the Loginprofessional controller in…
-
3
votes1
answer898
viewsQ: How to pass checkbox list to Actionresult
I need to know how to pass the values of inputs checkboxes to the action Edit, need to pass the properties Checked and Id and store in a list of type Photo. Noting that the controller that this…
-
5
votes1
answer372
viewsQ: How to resize thumbnails generated by Uploadfy? ASP.NET c# MVC 4
Hello, I would like to know how to resize the thumbnails generated by jQuery Uploadfy plugins. As shown in the print below, it generates the thumbnails according to the actual size of the images, it…
-
2
votes1
answer1354
viewsQ: Upload multiple files using Uploadfy in ASP.NET MVC
How to implement multi-file upload with uploadf? I find it very interesting to use the upload bars etc. is making this mistake: This is my controller: You may notice that you have many error…
-
3
votes1
answer190
viewsA: Parameter for Stored Procedure not identified
Fixed issue! Just after completion of adding parameters the following line was missing: cmdProcedure.CommandType = CommandType.StoredProcedure; problem solved.
-
5
votes1
answer190
viewsQ: Parameter for Stored Procedure not identified
I’m having a problem, which would be a mistake saying that there is no parameter being passed to the Procedure. It is running the following code: cmdProcedure.Parameters.AddWithValue("@id", 0);…
-
6
votes1
answer1265
viewsQ: Good practices for Asp.Net MVC 4 - 5
I need to know how to organize my project in the question of CRUD's in case there is more than one Model in my application. For example, I have the student model and the teacher model. I create a…
-
10
votes4
answers16962
viewsQ: What do you call a "Stored Procedure"?
How to call a procedure in ASP.NET C#? Follow my simple procedure: CREATE PROCEDURE GetAdmin ( @email VARCHAR(50), @password VARCHAR (50) ) AS BEGIN SET NOCOUNT ON; SELECT * FROM Admin WHERE Email =…
-
1
votes1
answer883
viewsQ: How to call Actionresult from another Area with an html link?
Hello, I have a link in a View and I need to direct this link to a ActionResult that is in another Area of my project. Is a link from Sair to call on the a ActionResult Logoff.…
-
2
votes1
answer2918
viewsQ: How to restrict certain file extensions and save to database?
I need to upload images to my database and will use the data type as Bytes in the SQL Server database. How do I guarantee that really would be an image that will be passing to him? I want to leave…
-
6
votes2
answers4039
viewsQ: Why use Bytes instead of Image? What is the best practice?
I would like to know why to use the data type Bytes instead of using one’s own Image. If the SQL Server database has the Image data type, then it should be easier and more practical to enter in mode…
-
0
votes1
answer257
viewsA: Renderaction does not consider my validations in ASP.NET models
The problem was solved using javascript. It was poorly positioned on the page. But one of the problems still persists! The Tinymce Text Editor, when used on a page loaded by Render Action does not…
-
1
votes2
answers808
viewsA: Scaffolding ASP.NET giving error
The problem occurred because the model folder was not the default created by VS. I had left my models inside admin 'Area', so it didn’t work. To solve just move to the default Model folder and try…
-
0
votes1
answer257
viewsQ: Renderaction does not consider my validations in ASP.NET models
Renderaction stopped considering the fields marked as [Required] on my models. Example of one of the models: private uint IdNews { get; set; } [Required(ErrorMessage = "Defina o título.")] public…
-
1
votes2
answers2408
viewsQ: How to render two typed Views on an Index()?
I’m trying to render two views created with the scaffolding, one is for the Create and another is for the List. The idea is to join in index the following: @model BraveryBranded.ASP.Models.News @{…
-
1
votes2
answers808
viewsQ: Scaffolding ASP.NET giving error
The error is generated using VS 2012. When I try to create the Controller for my News using the Entity framework, I have tried several ways. o My database you can see in the server explorer on the…