Category: JS CSS

How I Solved Using SQL Methods While Working Inside a Transaction

While debugging the Ggdag website, I ran into an interesting problem. The thing is, I use transactions there, and I was also using methods from the class MSStoredProceduresI. When I tried to get the number of rows in a table, it threw this error: “ExecuteNonQuery requires the command to have a transaction when the connection …

Read More How I Solved Using SQL Methods While Working Inside a Transaction

Associative Arrays (Dictionary-Style) in JavaScript with Integer Values

What do you think the last 3 alert dialogs will show? Those of you who say 1, 0 and NaN are absolutely right. Take a look at this simple code with my comments: JSfunction TestAssociativeArray() { var myArray = new Array(); //-An item can be created using either array notation ["a"] or object notation .a …

Read More Associative Arrays (Dictionary-Style) in JavaScript with Integer Values