Posts by Randrade • 21,612 points
490 posts
-
0
votes2
answers1155
viewsQ: Two actions in the same View
I have a View where I return the data of a user, and I need to call another view, to save data, through a modal. The problem, is that they are two views of different controllers, so when calling, by…
asp.net-mvcasked Randrade 21,612 -
0
votes3
answers3387
viewsQ: Unlock field when selecting Chekbox
Setting: I have a table where the employee can view the data that the company has of it. I need an option for the employee to report divergences in their registration data. Clicking on the button…
-
1
votes1
answer52
viewsQ: SQL base import to Azure
I have a database in SQL Server 2008 R2 with a size of 65GB, and I own it in . BAK as well. There is a possibility to import this database into my Azure account?
-
1
votes2
answers1363
viewsQ: Recover query string with "+" character
I have in my controller, a method where I take a Query String, I decrypt it and use the data in my query. However, when the encrypted value has a +, he is not recovered by Request.QueryString. Soon…
-
2
votes2
answers733
viewsQ: Format string in View
Is there any way to format a string (returned from a query) directly at View, to show the first uppercase letter and the rest lowercase? Ex: In C# I can use Textinfo.Totitlecase for that reason.…
-
1
votes1
answer199
viewsA: Menu with Bootstrap Internet Explorer 9
The problem was the Jquery version. I put version 1.7 of Jquery and the application worked normally in IE 9 to IE 11.
-
1
votes1
answer199
viewsQ: Menu with Bootstrap Internet Explorer 9
I have a page that works normally. However I stopped the application by Internet Explorer 9, and the menu behaved as if it were a Mobile menu. Follow the image to better understand: Other browsers…
-
5
votes1
answer567
viewsQ: Update page automatically when accessing system
I have a project, where I need the user to access the system, the system updates the page automatically, only once. I found how to do this from time to time( 5 in 5 seconds, for example), but I need…
asp.net-mvcasked Randrade 21,612 -
3
votes1
answer4920
viewsQ: Building Customizable ASP.NET MVC Menu
I have a menu in my application, but I need to add a configuration screen where the system administrator selects the menu and chooses whether to enable or disable the menu item, for all users of the…
-
3
votes2
answers607
viewsQ: Foreach duplicating the data
I possess 2 foreachs, to search for dates on ViewBags, where I return both in a select. But for each item of the first foreach, it makes a complete loop in the second, thus doubling the values, for…
-
0
votes2
answers557
viewsA: Format date in Viewbag
I was able to separate the two attributes, and concatenate them into the view. Stayed like this: Controller: ViewBag.Ferias = funcionarioFeriasRepository.Lista.Where(r => r.CdMatricula ==…
-
1
votes2
answers557
viewsQ: Format date in Viewbag
I have a Viewbag returning two dates in a Dropdown, but they are returning with the same format that were saved in the database( MM/dd/yyy HH:mm:ss). I need them to return in the…
-
0
votes1
answer2076
viewsQ: Using two entitades in the same View
I have a table, where I return the vacation records of each employee, and I need to create a page, where the user can request the change of this period. However, the demand requires that the data be…
asp.net-mvcasked Randrade 21,612 -
2
votes3
answers1338
viewsA: How do Eclipse display the SDK and AVD Manager icon?
According to this Answer, Try enabling AVD in eclipse preferences. Go to Window > Customize perspective > Command Groups Availability tab. Check the "Android SDK and AVD Manager" option and…
-
14
votes2
answers352
viewsQ: What does the operator = mean in C#?
I have a function in C#, where I decrypt a string and need to convert into a function in SQL Server for technicians to be able to work with the decrypted value. There is a foreach, I don’t…
-
1
votes4
answers1989
viewsA: Updating data with Entity framework
Place your code inside a Modelstate and add break point in the method to see if there is an error with the edited data. It would look something like this: if (ModelState.IsValid) {…
-
7
votes1
answer898
viewsQ: Is it correct to save multiple entities at the same time in the ASP.NET MVC Controller?
I need to save 12 entities in the same method, in the Controller, I don’t know if I’m doing it right. In my method Create of Controller, call all entities and add all attributes in the same View. By…
-
4
votes2
answers508
viewsA: What’s the difference between App.conf and Web.conf?
On this topic, the author of the reply commented: Web.config and App.config The choice of configuration file name is determined by the hosting environment you choose for the service. If you are…
-
2
votes1
answer468
viewsA: Sort Datatables Component by Date
Got it, just add the field and the ordering order in my script. <script> var $j = jQuery.noConflict(); $j(document).ready(function () { $j("#myTable").dataTable({ "aaSorting": [[2, "asc"]] });…
asp.net-mvc-5answered Randrade 21,612 -
2
votes1
answer468
viewsQ: Sort Datatables Component by Date
I’m using the jam Datatables where the birthday of the month returns. I am ordering in my controller per day, and it works correctly in a normal table. There is a way to change the datatable to sort…
asp.net-mvc-5asked Randrade 21,612 -
2
votes1
answer1628
viewsQ: Inputmask for Displayfor
I use jQuery Inputmask to add masks to my Textbox. However, I need to add a mask when listing these fields( phone, Cpf, etc). I use Displayfor to list, but the mask does not work with the same. Code…
-
0
votes1
answer832
viewsA: Error in LINQ( Expression Lambda query)
Thank you all. I could not find the error, so I went back a previous Backup and I refilled the methods, after the same worked normally. I compared the two codes, and they are identical. But thank…
asp.net-mvcanswered Randrade 21,612 -
1
votes1
answer832
viewsQ: Error 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 Randrade 21,612 -
3
votes1
answer4215
viewsQ: Error while decrypting string
I have a method to encrypt and decrypt data. I tested it in the Application Console and it works perfectly. When taking this method to the controller, I get following error: Invalid length for a…
-
4
votes3
answers10666
viewsQ: Error in publishing application to OSI
I am publishing an application on IIS, and when accessing it I get the following error: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the configuration data…
-
2
votes1
answer4300
viewsQ: Recover value from an HTTP query string
I have a URL where it returns an HTTP QueryString, and I need to retrieve the information from the URL and convert it into variables to make queries in the database. In PHP just use the $_GET[""],…
-
1
votes1
answer190
viewsQ: Static Method in Interface
I have a class to encrypt data. But it will be used as a DLL, and for that I need to create an interface to show the methods( tested without the interface and it didn’t work). However, it contains 2…
-
3
votes1
answer269
viewsQ: Error importing DLL
I have a DLL made in C#. When importing it to be used on another computer, I find the class. However, her methods are not published; Follows my code: using System; using…
-
3
votes1
answer636
viewsQ: COM Interop with Client and Server
Hello, I have a DLL to encrypt data. I need to use the Component Object Model(COM) Interop to be able to communicate two applications and both traffic the encrypted data through this DLL. Searching,…
-
1
votes1
answer329
viewsQ: DLL 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?
-
2
votes1
answer153
viewsQ: Return data from a table in Web.config
I develop an application, which will be implemented in several companies, and we will need to make changes to the connectionString in each of them( because they already have servers installed, with…
asp.net-mvcasked Randrade 21,612 -
2
votes1
answer269
viewsQ: Web Forms for MVC 5
I joined a company, where we have an application running in Web Forms, and we are developing new applications with Asp.Net MVC. However, I was asked to complement an application with Web Forms,…
-
2
votes1
answer187
viewsQ: What is Rootdse
The manager of my company, gave me a file talking very little about "rootDSE", and told me that it is a way to integrate LDAP with programming languages. I’ve never heard of it this way, and I don’t…
-
5
votes1
answer239
viewsQ: Toupper() with accents
I own a string, where I wish to capitalize it, to standardize the information. I am using the ToUpper(). But when that string has accents the text gets shuffled. How to receive text with normal…
asp.net-mvcasked Randrade 21,612 -
1
votes1
answer155
viewsQ: Width does not increase more than 283px Bootstrap
Hello, I have a form where I have one TextArea. But the Width is no more than 283px. When I decrease, it decreases correctly, now when I increase, it doesn’t work. I set the size as 400px, however,…
-
1
votes1
answer1229
viewsA: Error hiding menu based on user permissions
I switched the View authentication from: @if (ViewBag.UsuarioAutenticado.Perfil.Equals(PortalRH.DomainModel.Entities.Perfil.FUNCIONARIO.ToString()) ||…
asp.net-mvcanswered Randrade 21,612 -
0
votes1
answer1229
viewsQ: Error hiding menu based on user permissions
Hello, I had a method to control access to menus, based on permissions. But the nothing stopped working and I get the error: "Unable to link at runtime to a null reference" I don’t know what was…
asp.net-mvcasked Randrade 21,612 -
0
votes1
answer279
viewsQ: Use Session as Query Parameter
Hello, I have a method to login the system, soon after I need the user to select an option in a dropdown and save this value in a Session. Now I need to put the stored value in Session, inside a…
asp.net-mvcasked Randrade 21,612 -
3
votes2
answers688
viewsQ: Save data to a "Global Viewable"
Hello, I have a Dropdownlist, coming from a Viewbag, and I need to write this value in some kind of "global variable". I researched and saw that the best ways to do this, is to record in a Viewbag…
asp.net-mvcasked Randrade 21,612 -
2
votes2
answers761
viewsQ: Save data to a Viewbag
I am developing an application, where I have a Viewbag listing a list of numbers, from my database. I need to write the selected number in this dropdown, in another Viewbag. I don’t know how to do…
asp.net-mvcasked Randrade 21,612