Posts by Cassio Alves • 1,033 points
65 posts
-
0
votes1
answer53
viewsA: Shopping cart
If you are just going to view the data, the best option would be Listview. Now if you want to change or manipulate the data in another way, the best option is gridView From what I understand, you…
vb.netanswered Cassio Alves 1,033 -
0
votes1
answer253
viewsA: Error in Function, System.Indexoutofrangeexception
I took your code and tested location, and it works normally, the problem that in your test, you must be sending an empty value, so this giving the error, I think better put an if to check if what is…
vb.netanswered Cassio Alves 1,033 -
0
votes2
answers172
viewsA: Compare datagridview VB
To answer your question Just go through the first Datagridview, comparing item by item with the second Datagridview. If the item does not exist, it will be added in DGV3. Dim exite As Boolean For…
-
0
votes1
answer69
viewsA: Capture Top of clicked object and apply on another Vb.net
Answering to your Question You can add the code below in all button click events: Dim myButton As Button = CType(sender, Button) sidebar_bar_hover_animation.Top = myButton.Top Best solution in my…
-
0
votes1
answer3733
viewsA: Error: String Conversion in Integer Type is Not Valid
The error happens because you are trying to convert the word "YES" to int. I advise you to make an if: if dgvFornecedores.CurrentRow().Cells("Codigo_Fornecedor").Value = "SIM" then…
-
1
votes2
answers725
viewsA: Limit Editfor input in MVC
Answering the question Well, I think you’d better use the attribute maxlength of a TextBoxFor instead of EditorFor. EditorFor no overhead for this. Dai just add this to your View:…
-
0
votes1
answer394
viewsA: How do I view the details of an ASP.net Session on IIS like in Java using Tomcat?
You can enable tracking in your project, for this just add the line below in your Web.config file: <configuration> <system.web> <trace enabled="true" requestLimit="40"…
-
0
votes1
answer41
viewsA: Kendo Grid Remote XML Data
Just create a Dataset, read the XML file in question and add the datagrid DataSet xml = new DataSet(); xml.ReadXml("XML"); GridView.DataSource = xml.Tables[0];
-
-1
votes2
answers446
viewsA: Restrict access to only one page in the application, leaving the rest free
I solved my problem using the ActionFilterAttribute Just create the filter as the first image, using the logic you need. And just add the filter to the desired Controller.…
-
0
votes2
answers598
viewsA: Entity Framework - When editing, "db. Entry(Category) fails. State = Entitystate.Modified;"
I solved an identical problem using the solution below: category.Created = db.Categories.AsNoTracking().Where(x => x.CategoryId == category.CategoryId).FirstOrDefault(); With Asnotracking(),…
-
1
votes1
answer73
viewsA: Error saving information from an ASP.NET page to the database
I know two solutions for you: Disable Eventvalidation by entering the code <%@ Page EnableEventValidation="false" %> at the beginning of your code (not recommend, because it loses a lot in…
-
0
votes0
answers72
viewsQ: Value shown in production other than development
I have an application in ASP.NET MVC with the Entity Framework with an Oracle database, and the same one showing some wrong data, and this happens only in production, in Debug(locally) the data is…
-
0
votes2
answers62
viewsA: Datagridview and checkbox - strange behavior.
This is because whenever you click on a cell, and it is in a column with an index greater than 1: If e.ColumnIndex > 1 Then DataGridView2(e.ColumnIndex, e.RowIndex).Value = True End If your code…
-
0
votes3
answers124
viewsA: Take the name textview in repetition loop
You can also use a for going through the controls that are inside the panel. In this function you pass your dashboard, and for will scroll through all Textbox, and those named "Post" will be saved…
-
-1
votes1
answer2312
viewsA: How to sort listview according to a specific column
Just use the property Listviewitemsorter of Listview, to sort by a specific column. In the example below I am sorting by the first column. Dim ListView1 As New ListView Dim lvwColumnSorter As…