Step 1 In Visual Studio Go to Tools > Library Package Manager > Manage Nuget Packages for Solution. Step 2 You would get the following screen, you can check the packages which you have already available in your solution, you can search for new packages and install them to your solution. Remember: These […]
When you create a Combo Box in Visual Studio , the default behaviour is that it will show the list and it will also allow the data entry. So a user can type something in instead of selecting the options listed in the Combo Box. This can cause issues as you might want the user […]
Learn how to use Applications Settings in Visual Studio 2013 Winform project in VB.NET Here is a simple way of storing applications settings. Step 1 In your Visual Studio Project open the settings. Step 2 When you click on the Settings as shown in Step 1, you would get the following screen. You […]
I realised that in my MVC5 project in Visual Studio I could not get the Ajax.BeginForm to work properly. It will always do a full postback. I was trying to complete a Video Rating Page, where there are buttons to rate a video and once the user presses one of the rating button, it […]
VB.NET – You must call the “WebSecurity.InitializeDatabaseConnection” method before you call any other method of the “WebSecurity” class.
Problem description: If you are getting the error while running your MVC4 application in VB.NET You must call the “WebSecurity.InitializeDatabaseConnection” method before you call any other method of the “WebSecurity” class. Solution Add the following line in the GLOBAL.ASX Ensure that you are using the correct connection string and other information as per your […]
If you would like to hide the columnheaders of a datagridview in your winforms application then here is the code for that. ‘ This will hide all the column headers for your datagridview In VB.NET use this code DataGridView1.ColumnHeadersVisible = False In C# use the following code dataGridView1.ColumnHeadersVisible = false;
In VB.NET Use tablControl1.SelectedTab = MyTabName In C# use tabControl1.SelectedTab = MyTabName; MytabName will automatically be displayed.
How to render @HTML.Actionlink in MVC and using it as a button Background of @HTML.ACTIONLINK in MVC The easiest way to render an HTML link in is to use the HTML.ActionLink() helper. With MVC, the Html.ActionLink() does not link to a view. It creates a link to a controller action. Razor Syntax: @Html.ActionLink(“About this Website”, […]
There are numerous example for C3 but I had to spend quite some time to adapt it to my project using VB.NET Hope it can be of help to you. I assume that you have already added the GridMVC package from NUGET. Here are step by step guide Controller No change needed , see […]
Custom HTML Helpers can help seperation of code and html and avoid repetion. What is a HTML Helper ? It is just a method that will return a string which can contain any content you wan from a simple string to a table of data. Why are HTML Helpers useful ? method that returns a […]