Posts by Fabio Souza • 1,859 points
116 posts
-
1
votes2
answers49
viewsQ: Prevent Seed from duplicating data
I’m using this code in Seed to generate values in my table, so I don’t have to type in the database, when I change something of my code and need to give an update in the database, so it’s not…
-
0
votes2
answers366
viewsQ: Integration going into loop
I’m trying to integrate Pagseguro to my application, but I’m encountering huge difficulties, as there are numerous detailed information that I find ahead, leaving me more and more confused. I have…
asp.net-mvcasked Fabio Souza 1,859 -
10
votes3
answers1653
viewsQ: Picking up part of the phone
In the registration, the user registers his phone and this field is masked (99)99999-9999 and this is saved in the BD. if I want to use only the DDD of this, and the separate numbers, how should I…
-
-1
votes1
answer82
viewsQ: If Else of date
I have a viewbag, and wanted to display dates of at most 1 day before the current day, I did the code below, but without success, which alternative I would have? if (item.DataHora < DateTime.Now…
-
-2
votes1
answer867
viewsQ: Return of Json
I still don’t understand how JSON works, but here I have a Controller code that returns a JSON and I want to know how to display this data on the screen. public ActionResult ShowPlaylists() { if…
-
6
votes2
answers1515
viewsQ: Data Displayfor display formatting
I have a field in the database, Date Time, and wanted to display on screen to the user, but in separate fields, being Date and Time. First displays the Date @Html.DisplayFor(modelItem =>…
-
2
votes1
answer80
viewsQ: Use Separate Date Time
I have a Datahora field and wanted to use it separately, that is, a single field in the database called Datahora of the datetime type, and manipulate this field with two editorfor where I save the…
-
1
votes2
answers371
viewsA: Working with Seed + FK Method
Well, I figured it out. I did the following: I removed the state of São Paulo from the list of states and in the city I instituted a new state and assigns the specifications, with this saved the…
-
3
votes2
answers371
viewsQ: Working with Seed + FK Method
I’m finding it difficult to work with the method Seed, Because I register the state, and right away I wanted to register the cities, and then I can’t reference the state in the city, what could I…
-
0
votes1
answer342
viewsQ: bring html code from the bank
I have the following question, I know I am not doing it the right way, but I believe it will serve me. I’m trying to integrate my College project with Pagseguro, but I’m finding it complex to use…
asp.net-mvcasked Fabio Souza 1,859 -
3
votes3
answers7584
viewsQ: Calling the Controller Method
I’m doing a project for the College, and I’m having a hard time understanding how to create a button and call an Actionresult in the Controller, and I was wondering if the action needs to be in the…
-
1
votes0
answers58
viewsQ: Formatting Date Time
I have a field in the Datahora database, my class is simple and has no Annotation public DateTime DataHora { get; set; } i have these two fields on the screen for the user who will use a single…
-
0
votes1
answer123
viewsQ: Navbar in trouble
I’m doing a project, and when I reduce the screen, the navbar switches to the mobile default, making it responsive, then when I click on the 3 dashes of the navbar menu, it drops the content and…
-
1
votes1
answer244
viewsQ: Foreach without repeating the name
I have a Foreach in View, and it contains Description, Qtd and dta,how do I make a foreach without repeating the description? Ex: I have a product X whose were removed 10 units day 01/10/2016, 3…
-
2
votes1
answer136
viewsQ: Search the Mysql MVC database
I have a Search which searches by name, but wanted it to search both by name and by place in the same research field. Follow the action: [HttpPost] public ActionResult Search(FormCollection fc,…
-
0
votes1
answer269
viewsQ: Login to index screen
Talk to the guys, all right? So I’m developing an application in ASP.NET MVC and I have a login screen, but I include in the login navbar, where the index the user could enter his email and password…