Web Api Can't find Resource

I am trying to include Web APi in an ASp.NET application with Mvc. The application uses Identity Framework to authenticate itself. I added a WebApiConfig Imports System.Web.Http Namespace ActualizadorApp.Api Public NotInheritable Class WebApiC...
more »

2017-07-27 14:07 (1) Answers

ASP Nested Repeater Error

I have ASP Nested repeater like below : <asp:Repeater ID="rptMenu" runat="server"> <ItemTemplate> <div class="box"> <div class="box-header"> <h3 class="bo...
more »

2017-07-27 11:07 (1) Answers

Deserialize Nested JSON in VB.NET for conversion

I have recently started a project using vb.net and I'm struggling to figure out how get the data for several of the items in the Mid class, o,h,l,c converted to double and loaded into an array, to eventually perform some math functions on them. Below...
more »

2017-07-23 07:07 (1) Answers

Error trying to download an XML file

I'm trying to download an XML file, the file already exists in the specified path, I am not familiar with VB and probably this code is not right, I need help just in it to be able to download an existing xml file, here's the code: Protected Sub Down...
more »

2017-07-21 14:07 (1) Answers

Newlines in VB.NET XML literals

Apparently, CR-LF-combinations in VB's XML literals get silently converted to LFs. Consider the following minimal example: Module Module1 Sub Main() Dim x As XElement = <xml>1 2</xml> ' Print Bytes Console.W...
more »

2017-07-20 17:07 (1) Answers

How do I combine 3 for loop?

I have 3 for each statements which are looping through statutes in xml document (aobjXMLCaseDoc) and then checking to see if those statutes match the following statutes 260C.405, 518.131, 518B.01, 609.748, 629.75 I would like to combine these 3 for ...
more »

2017-07-19 15:07 (2) Answers

VB.NET - Can't get Integer to work

I'm working with Windows Forms Application in Visual Studio 2015, using .NET Framework 4.5.2. So I'm making a simple program which includes a label to display a value. The label (called lblMoney) displays the currency (in this case, $) and then the v...
more »

2017-07-15 23:07 (3) Answers

C# equivalent of { }.Contains() in VB

I'm working on a VB => C# translator, and I've run across some VB code that I'm not sure has a direct translation to C#. In VB you can do something like If {"a", "b", "c"}.Contains("c") Then ... (and let's pretend it something useful that won't a...
more »

2017-07-15 09:07 (2) Answers

Mixing C# and VB.Net in ASP.Net error

I'm trying to mix C# and VB.Net in my project. However I'm getting an error. I already put this lines of codes in my web.config unfortunately still I'm getting an error; <compilation debug="true"> <codeSubDirectories> <...
more »

2017-07-10 04:07 (2) Answers

update panel webcontrol required form field

I created a simple control which uses an update panel with a button click trigger and yes a script manager above the control. Click the button and a label is updated with the current time and this has worked fine for 6 years Today, I changed the pag...
more »

2017-07-08 17:07 (1) Answers

Correct MVVM pattern WPF Command implementation

I'm trying to implement commands following the MVVM pattern, but I'm stuck with this particular scenario. In the XAML I've binded a command to a button inside a column: <dxg:GridColumn FieldName="Delete" Header="" UnboundType="Object" Width="20"...
more »

2017-07-03 14:07 (1) Answers

My asp.net GridView no longer displays

Before I did the following, the GridView was displaying correctly, so I'll describe the changes, in case anyone has been bitten before by doing this. I changed the datasource for the GridView from "cContact" to "cParticipant". cContact was a local c...
more »

2017-06-29 20:06 (1) Answers

Create buttons from text file

I am using Visual Basic in Visual Studio 2017. I am trying to create buttons from a text file. If a text file contains words like Test1 Test2 Test3 etc it should create 3 buttons using those names. Dim path As String = "c:\words.txt" Dim readTe...
more »

2017-06-26 16:06 (1) Answers

How to save image as pdf file using this code?

I'm uaing this code to save images as any type Dim filePath = String.Format("image{0:yyyyMMddHHmmss}.pdf", DateTime.Now) PictureBox1.Image.Save(IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), (filePath))) But no...
more »

2017-06-24 05:06 (0) Answers

How to get file's path created by this code?

I'm using this code to save files in my app Dim filePath = String.Format("image{0:yyyyMMddHHmmss}.png", DateTime.Now) PictureBox1.Image.Save(IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), (filePath))) So now I h...
more »

2017-06-24 03:06 (2) Answers

Optional Parameters in VB.Net

Here is the situation. My ASP.Net Application's solution has 3 projects A, B and C. B contains a function (eg : testfunction) which is used by Pages in A and C. Now for a certain requirement for Project C I need to make a change in testfunction. In ...
more »

2017-06-15 20:06 (0) Answers