Tuesday, November 25, 2014

WCF Part 3 - WCF Configuration & Hosting


     This article demonstrates about
  1. HelloWorldService
  2. WCF Configuration
  3. Detail description & example of different WCF Hosting services
I have attached sample code which contains hosting WCF service in Console application, Windows application, Windows Service and Hosting in IIS.


Download the complete PPT and Source code from the URL :Download

Happy Coding :)

WCF Part 2 - Introduction of WCF


            This article demonstrates about introduction of WCF, Difference between Web Service
            and WCF Service, ABC of WCF, types of Endpoints and types of Contracts.



Download the complete PPT  from the URL :Download

Happy Coding :)

Wednesday, November 12, 2014

WCF Part 1 - Why WCF ?




This article demonstrates about
  1.         Why WCF?   
  2.         What technologies were available before WCF?   
  3.         What are the complexities for NET Remoting and Web Services?
I have created and attached sample code based on
i)                    .NET Remoting for TCP Communication and Binary format
ii)                   Web Services for HTTP Communication and SOAP format




You can download complete PPT Presentation and sample code from the URL : Download

Happy Coding :)




Sunday, October 26, 2014

ASP.NET __doPostBack is Undefined in IE 10/11 browser ( LinkButton not working)




Till yesterday my ASP.NET website working amazingly in IE 8/9 browser without any issue. Today morning one of my client complained that website is not working in IE 10. 

Immediately I opened my website in IE 10 and try to click one of link button.

Boom Boom…JavaScript error “__doPostBack is undefined

I had gone through few Microsoft articles and found that .NET 2.0, 3.0, 3.5 and 4.0 frameworks are unable to detect IE 10 browser.

There are ton of solutions are written but none of these worked directly for me.

We can resolve this issue either Machine level or Application/Website level

Solution:


1.       Remove “_browserCapabilitiesCompiler.compiled” file from Website Bin folder if exists. If this file exists none of other solutions will work. Because every time you request the page asp.net engine return the browser compatibility data from above file only.

2.       For Application level, download IE 10/11 browser xml file ( IE10.browser ) from Microsoft website and copy into website App_Browser folder.

3.       For Machine level,

i)                    download IE 10/11 browser xml file ( IE10.browser ) from Microsoft website

ii)                   copy to C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\Browsers

iii)                 Run C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regbrowsers –i

iv)                 Run iisreset

Now everything should work as you expected.

Happy Coding  :)

Friday, October 17, 2014

Visual Studio 2013 Debugging Tips


Visual Studio enhanced IDE functionality greatly from last few years.See the following Debugging Tips in Visual Studio 2013.




Download the complete PPT  from the URL :Download

Wednesday, June 18, 2014

SQL Server 2008 R2 intellisense not working

Today i installed SQL Server 2008 R2 on my computer but i don't see any intellisense.
As a developer writing queries without intellisense like eating food without pickle. Both will give you extra happiness.
     The main issue could be because of Visual Studio 2010 SP1 installation.Microsoft confirmed that there is some compatibility issue between VS and SSMS.

   Finally Microsoft came up  with Hotfix to resolve this.Please download hotfix from following link

         
          http://support.microsoft.com/hotfix/KBHotfix.aspx?kbnum=2567713&kbln=en-us



Happy Coding :)

Saturday, March 29, 2014

Create Stylish HTML Table using CSS


 Creating Table using CSS really simple and more useful to maintain consistence through out Website.

     see the below Html code and CSS code

      HTML Code :
      ===========

  <div class="TableCSS">
<table>
<tr>
<td>Row 1 Col 1</td><td>Row 1 Col 2</td><td>Row 1 Col 3</td><td>Row 1 Col 4</td>
</tr>
<tr>
<td>Row 2 Col 1</td><td>Row 2 Col 2</td><td>Row 2 Col 3</td><td>Row 2 Col 4</td>
</tr>
<tr>
<td>Row 3 Col 1</td><td>Row 3 Col 2</td><td>Row 3 Col 3</td><td>Row 3 Col 4</td>
</tr></table>
</div>


CSS Code :
=========

.TableCSS{ margin : 0px;padding : 2px;}
.TableCSS table{ border-collapse: collapse;}
.TableCSS td{vertical-align:middle;    border:1px solid #000000; }   
.TableCSS tr:nth-child(even){ background-color:D2EDF3; }
.TableCSS tr:nth-child(odd) { background-color:#ffffff; }
.TableCSS tr:hover td {background-color:#E0FFFF;}
.TableCSS tr:first-child { background-color:#52CDEB;}


Happy Coding :)

Saturday, March 1, 2014

ASP.NET MVC 4 CRUD Operatons using Entity Framework 6.0

This article demonstrate CRUD Operations ( i.e. Create, Read, Update and Delete ) using Entity Framework 6.0 and ASP.NET MVC 4




Attachment contains 4 folders  i.e.
1. Controllers
2.  DAL
3. Models
4. Views

Replace these folders in your solutions and change the connectionstring name (i.e. EFDataContext ) in web.config accordingly

 Download the complete Project  from the URL :Download