Quantcast
Channel: Clive Ciappara - Developer for Apps & Websites » Quickie
Browsing latest articles
Browse All 13 View Live

Image may be NSFW.
Clik here to view.

Add 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 Article


Image may be NSFW.
Clik here to view.

Order 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 Article


Image may be NSFW.
Clik here to view.

File 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 Article

Image may be NSFW.
Clik here to view.

Did 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 Article

Image may be NSFW.
Clik here to view.

Quickie – 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 Article


Image may be NSFW.
Clik here to view.

Format 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article

Convert 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 Article


Image may be NSFW.
Clik here to view.

SharePoint 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 Article


Image may be NSFW.
Clik here to view.

Unlock 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
Browsing latest articles
Browse All 13 View Live