Blog to help every programmer to learn good stuff about programming and keep them updated with the latest trend that is happening in the IT industry
Wednesday, September 05, 2012
Knockout Model and Validating "inner" Models
Saturday, July 21, 2012
MVC ~ Transferring data from one page to another
Lot of times we would need to pass data from one page to another. The data could be a simple data or it can also be a complex data. In case of simple data, we can transfer using query string parameter and this does the job but when the size of the data is really big or if it is a complex type, then we need a different mechanism.
With MVC, we get the dictionary object to store the values at one end and retrieve it at the other end. These values are actually stored in session and lasts until the session terminates. Here is how we can make use of it:
//store the data to temp data dictionary. Data can be of any type
TempData[“myUniqueKey”] = value;
……
……
//retrieve the data from temp data dictionary.
if (TempData.ContainsKey(“myUniqueKey”))
myComplexData = TempData[“myUniqueKey”] as MyComplexData;
Happy Programming!!!
Sunday, July 15, 2012
Resolving HTTP Connection Timeout with Android applications
Thursday, July 12, 2012
Eclipse build error: The project was not built since its build path is incomplete. Cannot find the class file for xxxxx. Fix the build path then try building this project
2. Right click on the project from “Project Explorer” and “Refresh”
3. Right click on the project from “Project Explorer” and under "Android Tools" click “Fix Project Properties”
4. May be even restart Eclipse if the above 3 steps doesn’t work and then repeat the 3 steps after restarting
Finally we see the error go away. Whew….
Tuesday, July 10, 2012
Resolving ~ uncaught exception: [CKEDITOR.editor] The instance "myCKEditor" already exists.
Sunday, July 08, 2012
Delivering Compressed and Combined files for MVC 3 applications
Monday, July 02, 2012
MVC 3 Get the Html ID of a control for jQuery calls
Saturday, June 23, 2012
Issue installing Packages from Android SDK Manager
Thursday, June 21, 2012
Eclipse TFS Plugin Source control issue
Saturday, June 16, 2012
Debugging Android Application directly from Android Mobile
Saturday, June 09, 2012
Simulating an Incoming Call in the Android Simulator
Wednesday, June 06, 2012
Eclipse displaying error icon on Android Project
Returning back we learn that our R & D team have implemented the complex functionality and now we decide to get rid of the downloaded java file. We move to the src folder location using windows explorer and delete the file. (Note that this file was added using the eclipse studio and on top of that the downloaded file had errors). Now we open the eclipse studio and notice that there are no error icons displayed for any files but the android project.
We try the following ways to get rid of the error but all goes in vain:
1. Clean the project but still the error remains
2. Refresh the project but still the error remains
3. Fix Project Properties from Android Tools but still the error remains
The fix that worked in our case is removing the .metadata folder from the project root location. This folder seems to hold reference to all the files added using eclipse studio.
Friday, June 01, 2012
Android ~ Facebook login issue from Android application
Wednesday, May 30, 2012
Eclipse & TFS ~ Ignoring file from commit
Generating Hashkey for Android Facebook Application Integration
Friday, May 25, 2012
Android ~ Manually terminating an application or an activity
Android LogCat does not show anything !!!
Thursday, March 29, 2012
Deploying WCF Service on IIS 6.0
After deploying WCF service to IIS 6.0, we will notice that the page will not load when requesting http://mydomain.com/myservice.svc instead we would get 404 page not found exception. If you place a sample HTML file in the same directory and try to visit the page, the page will show up.
After googling, I learnt that after installing .NET Framework 4.0 Client Profile redistributable in the server, by default the ASP.NET 4.0 ISAPI extension is not enabled. This can be determined using the following command in the command prompt:
C:\>cscript c:\WINDOWS\system32\iisext.vbs /ListFile
Executing the above command will list all the extension files of IIS as
Status / Extension Path
------------------------
0 C:\WINDOWS\system32\inetsrv\httpodbc.dll
0 C:\WINDOWS\system32\inetsrv\ssinc.dll
0 C:\WINDOWS\system32\inetsrv\asp.dll
1 C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll
1 C:\WINDOWS\system32\MQISE.DLL
0 C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
From the above listed extension files, you will see that the status is 0 for aspnet_isapi.dll of ASP.NET Framework 4.0. This means it is not enabled and this is preventing ASP.NET 4.0 processing your request. To enable the extension use the following command:
C:\>cscript c:\WINDOWS\system32\iisext.vbs /EnFile C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
Once the above command is executed successfully, you should be able to see your WCF service coming up in the browser.











