How to POST a JSON to a specific url using VB.NET?

Here is the code to post json effectively. The variable res is able to give you the responce to your query remember to import System.Net System.IO System.text by using Imports and then the import names to bypass expired ssl certificate check this: http://blog.jameshiggs.com/2008/05/01/c-how-to-accept-an-invalid-ssl-certificate-programmatically/ Private Function SendRequest(uri As Uri, jsonDataBytes As Byte(), contentType As String, method … Read more

VB.NET Function Return

The difference is that they DO DIFFERENT THINGS! ‘Return value’ does 2 things: 1. It sets the function return value at that point 2. It immediately exits the function No further code in the function executes! ‘Functionname = value’ does 1 thing: 1. It sets the function return value at that point Other code in … Read more

List of exceptions that CAN’T be caught in .NET

The only exception that cannot be caught directly is (a framework thrown) StackOverflowException. This makes sense, logically, as you don’t have the space in the stack to handle the exception at that point. From the docs: Starting with the .NET Framework version 2.0, a StackOverflowException object cannot be caught by a try-catch block and the … Read more

Stopping onclick from firing when onclientclick is false?

You want to add return inside OnClientClick after a function is called. Otherwise, the button will post back even if function returns false. <asp:button ID=”Button1″ runat=”server” OnClick=”Button1_Click” OnClientClick=”return checkValidation()” Text=”Submit” /> <script type=”text/javascript”> function checkValidation() { return confirm(‘Everything ok?’); } </script>

Sorting a Data Table

This was the shortest way I could find to sort a DataTable without having to create any new variables. DataTable.DefaultView.Sort = “ColumnName ASC” DataTable = DataTable.DefaultView.ToTable Where: ASC – Ascending DESC – Descending ColumnName – The column you want to sort by DataTable – The table you want to sort

Compare compiled .NET assemblies?

Ways to Compare .NET Assemblies suggests Commercial: NDepend Free: JustAssembly (only shows differences in API) BitDiffer (same) Reflector Diff Add-in (which you’ve already discovered, but not available anymore) Existing compare tools like Beyond Compare (commercial) can do this by special configuration. Here’s how to do this for Beyond Compare: Go to Tools → Options Click … Read more

techhipbettruvabetnorabahisbahis forumu