System.InvalidCastException: ‘Conversion from string “employee” to type ‘Boolean’ is not valid.’

The form I created pops up but when I click on the open button this error occurs. The error directs me to sqlConn.ConnectionString , So any insights with regards to the problem is really helpful. Private Sub updateTable() sqlConn.ConnectionString = "server=" + server + ";" + "user id =" = username + ";" _ + … Read more

Changing a value declared in a DIV using VB.Net

I have the following code line which puts a progress bar on the screen. I found the code on CodePen website and I’m still learning so please bear with me. If I change the value in data-cp-percentage then the progress bar changes to that percentage. There’s obviously CSS and Java too but I simply need to change the value in this line programatically in VB. I have tried giving the DIV an ID and but then still unsure how to change it.

Delete file from server based on database query asp.net vb

I have a file folder that contains pdf files. The sql database is not directly related to the files. For example, I have “Invoice_co_355_24636.pdf” and “Invoice_co_355_25127.pdf” in the Invoices folder. I query the database and find that Invoice “24636” is not paid and “25127” is marked paid in full, so I would like to delete “Invoice_co_355_25127.pdf” at that point since it is paid.

Get only part of file name and delete from server folder in asp.net vb

I’m trying get get only the last part of a file name in a server folder between the “_” and “.pdf” in order to delete specific files only.
The files in the invoices folder are like this: Invoice_12345.pdf, Invoice_2345.pdf, Invoice_5555.pdf, etc. I need to extract the “12345”, “2345”, and “5555”, then I need to delete the file if it is not contained in a database query.