QUESTIONS

answers  0
views  24K
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
{ 31.2K - 3246 - 4 }
answers  1
views  6.7K
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
{ 43.5K - 4635 - 4 }
answers  2
views  3.3K
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
{ 11.2K - 1687 - 3 }
answers  2  
views  3K
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
{ 18.1K - 2578 - 3 }
answers  1  
views  2.2K
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
{ 4,612 - 913 - 1 }
answers  1  
views  2.1K
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
{ 6,852 - 1356 - 2 }
answers  0
views  1.8K
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
{ 4,681 - 922 - 1 }
answers  2
views  1.5K
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
{ 4,310 - 853 - 1 }
answers  2
views  997
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
{ 50 - 1 - 0 }
answers  2
views  946
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
{ 50 - 1 - 0 }
answers  1
views  927
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
{ 50 - 1 - 0 }
answers  1
views  912
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
{ 50 - 1 - 0 }
answers  0
views  873
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
{ 50 - 1 - 0 }
answers  2
views  700
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
{ 65 - 1 - 0 }
answers  2
views  662
votes  0

[Question] How do I refresh a page with JavaScript or jQuery?  

How can I refresh / reload a page with JavaScript?
Sep 03, 2016
Giacobbe Baldassare
{ 50 - 1 - 0 }
102  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.