Div OnClick instead of a href | Quickie
Instead of using the “<a href=” tag to go to another page, you can use the “<div onclick=” to be transferred to another page. This is extremely useful if you have a lot of text and pictures that...
View ArticleC# | Call Overloaded Methods
Sometimes in C#, to call overloaded methods within the same method names, we still use the old method. In C# there is a neater way to pass arguments to overloaded methods which can be seen below: Old...
View ArticleQuickie – New Line in an Excel Cell
Just found this quick tip on how to enter a new line in an Excel cell. The trick is to use the key combination of Alt+Enter to create a new line. And when you do it, Excel will automatically enable...
View ArticleAdd AutoNumber to GridView showing the RowNumber | Quickie
The code below will add a column showing an incremental number near each row, which ultimately is the row number <asp:TemplateField> <ItemTemplate> <%# Container.DataItemIndex + 1 %>...
View ArticleOrder BY Not Working in SQL Server Functions | Quickie
Ever created a function and needed to include the Order By clause. It would result in the following error being loaded: The ORDER BY clause is invalid in views, inline functions, derived tables,...
View ArticleFile Sharing between PCs without Password Protection
Sometimes you would need to share a file or a folder with another user and you would find it not so easy to do so, more and more if you or the other user doesn’t have a password for your account. By...
View ArticleDid you forget that attachment?
Today I was sending an email from Hotmail, Microsoft’s email service. Upon clicking the send button, the following message loaded: Apparently it found the word attachment, and since I didn’t have any...
View ArticleQuickie – Concatenate Rows as a String
Today I needed to concatenate a field from multiple rows in SQL Server to get a list of people names. Instead of doing it in code, you can use the following syntax: DECLARE @Names VARCHAR(8000) SELECT...
View ArticleFormat Date in SQL Server
It’s very common to show the current date (i.e., month, day, and year) in different formats. Although you can obtain the current date with Microsoft SQL Server’s GETDATE function, getting the returned...
View ArticleHow to open a razor link in a new tab – Quickie
An MVC code quickie to open a Razor link in a new tab: RunReport”, “Performance”, new { reportView = Model.ReportView.ToString() })” type=”submit” id=”runReport” target=”_blank” class=”button...
View ArticleConvert Enum to KeyValuePair List and remove unwanted Enum options #Linq
In our new project, using Angular, I needed to fill drop down lists in a form from a set of enums. One particular case was to set the below Status Enum as a drop down list. public enum Status {...
View ArticleSharePoint Keeps Refreshing #QuickSolution
This week I had an issue with SharePoint. I tried to log in to our work’s SharePoint account to add a new blog post about Email Management. But when accessing it from IE, the website goes nuts. It...
View ArticleUnlock and Access your blocked Files
Have you ever experienced any of the following annoying messages when using Windows: Cannot delete file: Access is denied. There has been a sharing violation. The source or destination file may be in...
View Article