Quantcast
Channel: C# | Vinay Patel
Browsing all 13 articles
Browse latest View live

Distinct with LINQ

Here is one more LINQ Problem. Let’s think of scenario having record as below ProductId:1 , ProductName=”Product 1″ , CategoryId=2; ProductId:2 , ProductName=”Product 2″ , CategoryId=3; ProductId:3 ,...

View Article



Image may be NSFW.
Clik here to view.

JqGrid with MVC 2.0 / MVC 3.0

From last couple of months I was planning to create working demo for JQgrid using MVC and finally succeeded .It turns out it is not that hard to do. You just have to be very careful with the...

View Article

Install and Uninstall Windows Service Using Post Build Events

Just day before  I built a windows service and it was hard time to install and uninstall service using installUtil.exe from the command line every time I build it.  Automating this task makes building...

View Article

Check Model State Errors

Recently faced new error in MVC3 Project related to Model State , While checking “ModelState.IsValid”  it was always return false , I wasn’t sure whats going wrong with my ModelState Finally got small...

View Article

301 Redirect – Using Global.asax

Recently came across new query of redirecting website to new domain , and the trouble was we don’t have control over domain management. Real problem was the hosting doesn’t allow web.config based...

View Article


Convert List to ObservableCollection Extension Method

Today we found one more interesting thing of converting List to ObservableCollection , Its something you will need regularly when you are working with WPF / Silverlight application – because...

View Article

ROW_NUMBER() in LINQ 2 SQL

Last week was quite simple and went without trouble  , and just before I start enjoying my weekends – stuck in to in issue of getting ROW_NUMBER() (as we are doing in sandard SQL Query ! Finally...

View Article

Sending Emails with CLR + SQL Server Express Editions

Recently ,  we need to send notification emails to customer from SQL Epress 2012 Database – but the latest SQL Server Express editions got deprecated send email from SQL server Little search around...

View Article


Image may be NSFW.
Clik here to view.

Blow up your asp.net/mvc site performence !

Recent technical conversation with few of my  friends ends up with Issue of site speed , no matter what we do the site loads too slow  – and seriously speaking this is something came across me too.  I...

View Article


Troubleshooting EWS Error : The underlying connection was closed: Could not...

Recently , I have question from my client to read Exchange Server Emails , During that process it was throwing me exception of The underlying connection was closed: Could not establish trust...

View Article

NetCFSvcUtil “Error: An error occurred in the tool.”

Here is one more issue I come up with while compiling PDA tools using compact framework csvutil It was throwing Error : Error: An error occurred in the tool. Error: Error in the application Everything...

View Article

.woff not found (404) mvc4

last day it was hard enough to figure out how can enable .woff fonts to be loaded for MVC4 website even though the file definitely exists and the URL is correct , every single effort was turns out non...

View Article

Image may be NSFW.
Clik here to view.

Enable TLS 1.2 on Framework 4.0

It was the crazy couple of month ago when all payment gateway did enforce the security standard to TLS 1.2 There were systems which were built in .Net Framework 4.0 and enforcing TLS 1.2 was a bit...

View Article

Browsing all 13 articles
Browse latest View live




Latest Images