Category Archives: Knowledge Sharing

Salesforce Active Directory Integration – Identity Connect

Identity Connect provides Active Directory integration with Salesforce via a service which runs on either Windows or Linux platforms. This integration includes syncing Active Directory users with either Salesforce or Identity Connect acting as the Identity Service Provider (IDP) for … Continue reading

Posted in Knowledge Sharing, Salesforce | Leave a comment

Merge Rows in GridView – One Column or Multiple Columns

I few days earlier my client asked me if it is possible to merge rows with same repetitive data so that the reports become more readable. Please refer to the screen shots below to get a better picture of their … Continue reading

Posted in ASP.NET, C#, Knowledge Sharing | Leave a comment

TRUNCATE / SHRINK Log File – SQL Server 2008

PLEASE READ THIS BEFORE TAKING ANY ACTION. One of my database’s log file grew to 251 GB. I was not able to take its backup or detach database for the purpose of moving this database to another server. It was … Continue reading

Posted in Knowledge Sharing, SQL Server, Troubleshooting | Leave a comment

SQL Server 2005 – Shrink log file of all databases

One of database server was running out of disk space. The culprit was the very large SQL server log files. Using following script i was able to shrink log files of all databses in a SQL server instance so creating … Continue reading

Posted in Knowledge Sharing, SQL Server, Troubleshooting | Leave a comment

MS Windows 8

Yesterday, i.e. on 13th Sept 2012, I attended Microsoft “Windows 8 Camp” held at New Delhi. Just want to share some of the highlighted points with my team and colleagues’ as well. Few days back, the Release Preview of Windows … Continue reading

Posted in Knowledge Sharing | Leave a comment

Silverlight FAQs – Part 1

Where session variables are stored in Silverlight? In Isolated Storage. What is the basic object for Animation in Silverlight? Storyboard. Why are triggers used in Silverlight? To fire events. What is default binding in Silverlight? Oneway binding. What are different … Continue reading

Posted in Interview Questions, Knowledge Sharing, Silverlight | Leave a comment

What are the Major Improvements in .Net Framework 4.0

Diagnostics and Performance – Starting with the .NET Framework 4, you can get processor usage and memory usage estimates per application domain. Garbage Collection – This feature replaces concurrent garbage collection in previous versions and provides better performance. Code Contracts … Continue reading

Posted in ASP.NET, ASP.NET, Interview Questions, Knowledge Sharing | Leave a comment

ASP.NET+MVC+Entity Framework Error – CS0012: The type ‘System.Data.Objects.DataClasses.EntityObject’ is defined in an assembly that is not referenced. You must add a reference to assembly System.Data.Entity

I created a blank MVC4 site in which I tried consuming a WCF. Data was returned from WCF and available in MVC controller but when I was trying to use the data in MVC View using model; I was left … Continue reading

Posted in Entity Framework, Knowledge Sharing, MVC, Troubleshooting | Leave a comment

MVC4 error- Unable to complete operation. The supplied SqlConnection does not specify an initial catalog

I was trying to do my hands dirty today with MVC4. I was following MvcMovieStore example. Following everything correctly till “Accessing Your Model’s Data from a Controller”, i was stuck with this error. Struggling to this i found that by … Continue reading

Posted in ASP.NET, Entity Framework, Knowledge Sharing, MVC, Troubleshooting | Comments Off

Creating tamper proof Url in asp.net – a way to prevent spoofing and forged HTTP requests

Consider the following URL- http://www.mysite.com/orders.aspx?id=10 Now the problem is that anybody having this link can view more data than authorised and required by simply changing the value of id to say 16,17,18,19… Another problem could be that script tags could … Continue reading

Posted in ASP.NET, C#, Knowledge Sharing, Troubleshooting | Leave a comment