Posts by Érik Thiago • 2,338 points
99 posts
-
2
votes1
answer2651
viewsQ: Changed RU context, but without updating database structure
I’m using the free hosting service from mee on a free plan. So far so good, everything worked out in a good. But after I made some changes to my database, their database just doesn’t work, it keeps…
-
1
votes2
answers679
viewsQ: Problems with Modal
In my project I have kind of an image gallery. So far I upload the image and it is displayed on the page without any problem. Only now I need, when clicking on the image, open me a modal with the…
-
0
votes1
answer54
viewsQ: Way to save only two information
I have in my project a new business rule. I need that in a view details, I have a small form to save only two information: Delays and No Uniform. I already got the chart done. But I needed that form…
-
1
votes2
answers453
viewsA: Radiobutton or button to sort data
Complementing the response of the Gypsy, for it to work in my scenario I had to make some changes. First, I created the Action: public ActionResult Ordenar(String status, int? pagina) { var lista =…
-
1
votes2
answers453
viewsQ: Radiobutton 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,…
-
2
votes1
answer505
viewsQ: Storing data for a while
Is there any way using the javascript cookies that I can store information for 3 hours for example ? In my scenario I need to have a warning page, but I don’t need to store these records in a…
-
1
votes2
answers351
viewsQ: Binding 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…
-
0
votes2
answers958
viewsQ: Nullreferenceexception in User Filter
In my project I made a filter to see if the user is already logged in. To prevent the same Log twice in the system. According to the answer to my question I make a filter class and search the ID…
-
2
votes1
answer1270
viewsQ: Prevent user from being logged in twice
In my project, I have a login module that works perfectly. Until then quiet, but the way it is I can not bar the same user logged in twice. That is, I can log in with the same user twice, and that’s…
-
2
votes1
answer628
viewsQ: Generate database backup via application
In my project I connect to the database. Is there any way I can do the backup from my database via Asp.net mvc 5 and keep that backup in a directory, either at the project root or in a folder in a…
-
7
votes1
answer252
viewsQ: Generate database backup
In my project, I have a database that has a lot of record. So I wanted SQL Server to make a backup per day or per week. But I think the per day is better. But how can I do this script to be…
-
0
votes1
answer1459
viewsQ: How to pick up an existing cookie via javascript
In my project I have a page that is html. And since my project is in Asp.net mvc, I can’t validate whether the user is logged in or not because this page is not Razor. Researching, I found the…
-
0
votes1
answer158
viewsQ: Generate MAC address hash and save to database
According to my question to get the address mac of the network card and generate its hash, the following methods are used: private string GetSHA1HashData(string data) { SHA1 sha1 = SHA1.Create();…
-
-1
votes2
answers69
viewsQ: Error while using methods to generate hash and catch MAC address
According to my question, in the Gypsy’s response to hash of mac address network card just use two methods. But in the form of using them to retrieve the data and do the check I’m having an error: A…
-
3
votes3
answers500
viewsQ: Security key in Asp.net mvc
I wonder if there is any way to generate a security key that is attached to the name of the computer on which the application is hosted. What is this for? So that if by chance a malicious person…
-
5
votes3
answers6557
viewsQ: Get logged in user
In my project I have an authentication module and logout. But I wanted when the user logged in I’d get the id of it so that I would show the information concerning the login of it. Like a view…
-
2
votes1
answer78
viewsQ: Search information in more than one table
In my project I currently have 3 tables: Students, Occurrences and Users. In them I have the views and the controllers. So far, so good. My relationships are: Allunos&occurrences(1,N) /…
-
1
votes1
answer344
viewsQ: Two models and a controller
Following the reasoning of that other question of mine, where I create two models for manipulations, as if I could use a controller to make the manipulations in the tables ? My intention in doing…
-
0
votes1
answer101
viewsQ: Partial is not rendered
Accordingly this link from another question of mine that ended up generating error where I followed the steps referring to another question, I am experiencing a rather strange error. I created a…
-
3
votes1
answer102
viewsQ: Ondisconnected event in Signair does not work right
Guys, I’ve developed a chat accordingly with this link and it all worked out well. But the Disconnected event doesn’t work right. What happens is that, according to the reference link, this event is…
-
4
votes2
answers717
viewsQ: Normalization of tables and relationships
I’m starting a project from scratch and in the middle of bank modeling, I had a problem. While building the models, I couldn’t do it the right way and I ended up getting confused. I have student…
-
5
votes1
answer844
viewsQ: Format date and time and list according to current date
This application has two tables: Students and Occurrences. To show the occurrences I can calmly... Only now I’ve come up with a new business rule: show occurrences by date. So basically it would be…
-
3
votes2
answers190
viewsQ: Code abstraction
I am creating a project of questions and answers, more to consolidate my knowledge and acquire others. But when developing it I arrived at a question that I am thinking about which of the options…
-
1
votes1
answer340
viewsQ: Error 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…
-
3
votes3
answers3089
viewsA: Publication of MVC 4 site on IIS is giving error
Dude, the thing is, first of all, install the Microsoft Web Platform. There are all the applications needed to deploy your application on IIS. Okay, by downloading and running the Web Platform,…
-
1
votes2
answers6591
viewsA: Error trying to establish connection between SQL Server 2014 and Visual Studio
Error 26 is because the SQL server is not running. That is, ta off. This is normal to happen when restarting the machine. It’s easy to solve. Go to Start menu, search for Microsoft SQL Server…
-
2
votes2
answers1837
viewsQ: IIS error page 404
Good afternoon, I developed a system and I have a logic that does not allow unauthorized profiles to access parts of the system that is not allowed for it. What happens is that when trying to access…
-
3
votes2
answers1351
viewsA: Print queries
Here based at that link has a very easy tutorial to follow. I used and it is relatively simple, just needs a little attention. There is how to do it, but I’ll put the examples here for you: Library…
asp.net-mvcanswered Érik Thiago 2,338 -
2
votes2
answers874
viewsA: Hide different options (actions) for different user profiles
Another possible situation would be, to have different profiles, create partitals corresponding to each user profile that exists in the system. That is, if you have 3 different profiles, separate…
-
1
votes3
answers679
viewsA: Error generating PDF with Rotary
I solved the problem. What was happening was that I wasn’t passing the specific student ID, so the object came as null. So to solve the problem, I made the following adaptation:…
-
2
votes3
answers679
viewsQ: Error generating PDF with Rotary
Guys, I’m having a problem here to generate a pdf with the data coming from the bank. My system has a register of students and their occurrences. What I wanted was that, at the time of detailing the…
-
3
votes2
answers782
viewsQ: Javascript and Asp.net mvc help
In my project I have a field that is the Status of a certain occurrence. That is, if it is pending or solved. I made a javascript function that , by clicking the input field that is in readonly…
-
2
votes1
answer220
viewsQ: How to list related data
In my project I have two tables: Student and Occurrences. And they are related so that a student can have several occurrences. My need is: In the Student Details view (Details.cshtml), I need to…
-
6
votes2
answers874
viewsQ: Hide different options (actions) for different user profiles
I am in a project where I have 3 different levels of profiles: Administrator, Professor and Coordinator. I already have the login module, registration and such. What happens is that I wanted for…
-
4
votes1
answer1173
viewsQ: Login with different profiles
I’m developing an app for a school, where you take control of the students she has. The application makes the registration of students and registration of occurrences (suspension or warning) that…
-
1
votes2
answers197
viewsA: Error making an insert in the database
Guys I solved. What happens is that I have a relationship where I get FK Alunoid which is the reference to table students... For Asp.Net Awesome to work, you need to find where you are in the helper…
-
0
votes2
answers197
viewsQ: Error making an insert in the database
I am trying to save some data in the database and am getting this error: The INSERT statement conflicted with the FOREIGN KEY Constraint "Fk_dbo.Occurrences_dbo.Alunoes_alunoid". The Conflict…
-
4
votes1
answer183
viewsA: Error 500 in Asp.Net Awesome Library
Come on, I solved the problem. The problem is that I think the code is kind of old, and so it didn’t work well the way it is on the site. So I researched and used as a reference this link here. what…
-
1
votes1
answer183
viewsQ: Error 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…
-
6
votes2
answers2534
viewsQ: Rendering Partials in ASP.NET MVC
I’m having a problem in my application where I wanted to use partial to render one page inside another. That is, one controller within another. Only, what happens is the partial does not render at…
-
4
votes1
answer188
viewsQ: Partial does not render
I have a problem with my application. What happens is that I am not able to render a partial in another view. Here the partial code: @model CEF01.Models.Ocorrencia @using…
-
1
votes1
answer436
viewsQ: Doubt 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:…
-
0
votes1
answer231
viewsQ: Map Id of one model to another without a Dropdownlist
I had a problem making relationships in my application. my project is from a school, and in it I have to have the occurrences. But when it comes to relating the Student to the Occurrence happened to…
-
1
votes1
answer1437
viewsQ: Learning 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…
-
2
votes1
answer434
viewsQ: Mvccheckboxlist, Radiobuttons and Text Inputs
I have a project where I’m using Mvccheckboxlist. My question is this:: Could I put a mvccheckboxlist together with radio Buttons and inputs ? Because I am in a project at a school that I have to…
-
3
votes2
answers673
viewsQ: Checkboxlistfor with error
Description: Error when compiling a resource needed to fulfill this request. Examine the error-specific details and modify the source code appropriately. Compiler Error Message: CS1061:…
-
1
votes2
answers282
viewsQ: Relate Check Boxes to Radio Buttons
I’m with a project where I have to put occurrences. This is a school project. So the occurrences would be like this: An occurrence would be a warning or a suspension, and its causes, that is, messed…
-
3
votes1
answer895
viewsQ: Edit data from a combo box
I’m having a problem with my Asp.net mvc application. What’s going on is that when it comes to saving the data, my combo boxes carry data from enums. These combo boxes are from an application to a…
-
9
votes2
answers6651
viewsQ: Image Upload
I am trying to upload images to my application. I have made a prototype upload, but it does not show the image, but its ID or NAME. And I’m uploading it to a folder I created in my project. My…