QUESTIONS

answers  0
views  31K
votes  4

[Snippet] How to Encrypt and Decrypt a string in C#  

Here is a code snippet to help you encrypt and decrypt a string in C#. The key is hardcoded, but in your own project you may want to read it from a secure store, or perhaps a config file or environmen ...
Apr 03, 2016
Sacchidananda Murthy
{ 56.9K - 5817 - 5 }
answers  1
views  7.4K
votes  1

[Question] Reading appsettings.json in a .NET Core console application  

I am using .NET Core to build a simple console application. However, I am stuck by not being able to read a few settings from an appsettings.json file. How do I go about doing this? From what I u ...
Apr 08, 2016
Obrad Józef
{ 69.3K - 7206 - 5 }
answers  2
views  4.1K
votes  0

[Question] Difference between {{ expression }} and ng-bind  

Why does Angular offer these two different syntax? What is the difference between the two?
Apr 05, 2016
Uday Uddin
{ 24.1K - 3401 - 4 }
answers  2  
views  3.2K
votes  2

[Question] In Angular what is the difference between ngRoute and ui-router  

I am not clear about the difference between ngRoute in angular-route.js and ui-route in angular-ui-router.js. One thing I noticed is that the routeconfiguration is different. Which one is the best an ...
Apr 02, 2016
Julian Gallardo
{ 30.9K - 4292 - 4 }
answers  1  
views  3K
votes  0

[Question] ASP.NET Core: setting Viewbag value in the OnActionExecuting method  

In ASP.NET Core (RC1) I am setting a ViewBag value in the OnActionExecuting method in a custom ActionFilter. This is the code: public override void OnActionExecuting(ActionExecutingContext filterCon ...
Apr 20, 2016
Jim Slater
{ 14.9K - 2370 - 3 }
answers  1  
views  2.3K
votes  1

[Question] Visual Studio 2015 F10 Debugger key not working  

I just installed VS 2015 Update 2 and now my F10 Debugger key is not working. It looks like it is mapped to F5 (continue) because the debugger stops at the correct breakbpoint but then F10 continues e ...
Apr 02, 2016
Guus Wiersma
{ 11.1K - 2213 - 3 }
answers  0
views  2K
votes  2

[Snippet] How to return multiple values from a function in ES6  

The following function returns two variables: a credentials object and a transport string. function getEmailConfig() { let credentials = { userName: 'anthony', password: 'pass' ...
Apr 02, 2016
Anthony Perez
{ 8,966 - 1779 - 2 }
answers  2
views  1.8K
votes  0

[Question] How to set focus to a textbox with Angular.js?  

What is the best way in Angular to put focus on a textbox following an event, i.e. a button click? Here is my scenario: Our app has a page with a table displaying customer data. The first column in ea ...
Apr 03, 2016
Hendrik Siothrún
{ 8,595 - 1710 - 2 }
answers  0
views  1.7K
votes  0

[Article] How to recover your CoinSpot Account?  

CoinSpot is a platform that allows you to access everything it has to offer as soon as you create an account. To do this, you simply need to remember your username (which can be your email address or ...
Aug 31, 2022
Jennifer Jenny
{ 725 - 136 - 0 }
answers  2
views  1.5K
votes  0

[Question] How to create pretty URLs in Angular  

The routing in Angular makes use of the hash character in the URI path, for example http://localhost/#currencies/10 Is it possible to remove the # sign? If yes, how? I want that the URL should appea ...
Apr 05, 2016
Angel Crump
{ 4,315 - 854 - 1 }
answers  2
views  1.2K
votes  3

[Question] How to add a new column, with a default value, to an existing table in SQL Server  

How do I add a column to an existing table in a SQL Server database? In my scenario I am adding a column of type int with a default value of 0.
May 14, 2016
Dylan Barlow
{ 1,410 - 270 - 0 }
answers  2
views  1.2K
votes  0

[Question] UPDATE from SELECT in SQL Server  

How can I update/modify the contents of a table, by using a subset of data obtained from secondary SQL query statement?
Oct 13, 2016
Alaattin Snijder
{ 3,885 - 768 - 1 }
answers  1
views  1.2K
votes  0

[Question] C#: best practice of when to use a var vs the actual type?  

Are there any best practices when declaring variable with respect to the use of var versus the actual type? What I have seen so far is that complex types and reference types are usually declared with ...
Apr 04, 2016
Lylou Josephs
{ 2,545 - 500 - 0 }
answers  1
views  1K
votes  0

[Question] What is HTML5 mode in Angular.js?  

I encountered this term in Angular JS. I know that when you enable the HTML5 mode, the Angular URLs do not have the hashtags anymore. But what is it exactly?
Apr 05, 2016
Umar Sheikh
{ 1,515 - 294 - 0 }
answers  0
views  1K
votes  0

[Article] Overriding the Equals() and GetHashCode() methods in C# - Part 1  

System.Object.Equals() virtual method The Equals() is a virtual method defined in the System.Object class. Since every class is implicitly derived from Object, it provides the Equals() method. publi ...
Apr 21, 2016
Gaime Sullivan
{ 865 - 164 - 0 }
147  posts
You may also like
When to use 'ref' and 'out' keywords - specifically with strings?
Visual Studio 2015 F10 Debugger key not working
Horizontally centering a <div> inside another <div>
How to Encrypt and Decrypt a string in C#
Server Side Rendering in JavaScript?
Curlybrackets Software
The source code for Curlybrackets (C#/.NET/SQL Server) is available for purchase here. Start your own Q+A site now!

Easily create custom post types: messages, ideas, questions, tickets, whatever.

The Software Pack is a great place to start your corporate Q+A customer support site.