Questions tagged as 'vb.net'

1
answer

Visual Basic download file https

Using the following code: Try Dim fileToDownload As String = "miArchivo" Dim downloadPath As String = Directory.GetCurrentDirectory() & "\data\downloads\" Dim currDate = DateTime.Now.ToString("dd-MM-yyyy HH.mm.ss").ToString...
asked by 06.08.2017 / 10:50
3
answers

Write mail (Mailto) from the client on the server. Eval does not work

I'm trying to place a button on Grid . All correct if I put an email by default. The question is that I want to place each of the rows that corresponds to it (there is already a column with that email). In this case if it works: <d...
asked by 30.06.2017 / 06:38
1
answer

System.InvalidCastException: 'Operator' & 'is not defined for string "values (' 41611027," and type 'DataRowView'. '

conexion.Open() Dim cmd As New SqlCommand() cmd.Connection = conexion Dim Agregar As String Dim fec As Date = Fecha.Value.ToString("yyyy-MM-dd") Dim fac As Date = FechaC.Value.ToString("yyyy-MM-dd")...
asked by 15.06.2017 / 03:03
1
answer

Get each string from each list

From a text file with several strings I transform them to a list and I need to compare each word to know if the elements of that list match the elements of another list something like a lexical analyzer. The problem is that when I try to call...
asked by 20.06.2017 / 16:10
3
answers

How would this vb code be in c #

I need to show data that is in a database. I have something similar done in vb.net but now I have to do it in c # For i = 0 To dt.Rows.Count - 1 Dim codigo As Integer = dt.Rows(i).Item("CodDepartamento") html.Append("...
asked by 09.06.2017 / 06:08
1
answer

Is there a library or class to create a scheduled task on Vb.net?

Good morning community. I have a few days to program in VB. In this occasion I find a functionality to develop, which is to carry out a scheduled task. I've been researching and I can see that implementations can be made or even use system...
asked by 05.06.2017 / 15:10
2
answers

Error using OpenFileDialog in VB.NET

I was trying to use OpenFileDialog in my button so that when I press it I get the dialogue, I do it in the following way: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim O...
asked by 10.06.2017 / 19:32
4
answers

Doubt with PostBack and SelectedIndexChanged event

First of all, I apologize because I can not present code. The problem is as follows in an asp.net webforms application, I have 2 listboxes and each one has the SelectedIndexChanged event, (the code within those events is simply moving one item f...
asked by 05.05.2017 / 01:28
1
answer

Get data from a cell of a datagridview in the CurrentCellChanged event in Vb?

I have the following event: Private Sub zGrid_CurrentColumnChanged(ByVal sender As Object, ByVal e As EventArgs) Handles zGrid.CurrentCellChanged Dim CodArt As String = zGrid.Item(0, e.RowIndex).Value.ToString() End Sub but I do not rec...
asked by 24.04.2017 / 16:57
1
answer

Problem with Crystal Repots reports when connecting to server

I have a problem wanting to generate reports from a database that is on a server, what happens is that when I perform local tests, I can generate the reports without problems, but when I try to assign it to the "ServerName" parameter in my code...
asked by 27.04.2017 / 16:49