April 2012
1 post
1 tag
Sitefinity Ecommerce Donations widget available on...
Code is also available on Github here .You can read more about the widget from Steve Miller’s post on sitefinity.com here
January 2012
1 post
1 tag
Happy New Year 2012
December 2011
1 post
1 tag
Sitefinity 4.4 released!
Sitefinity 4.4 has been released today. I am really excited about Module Builder. The release also introduces product variations for the Ecommerce module and a ton of bug fixes.
Check it out at http://www.sitefinity.com/devnet/forums/sitefinity-4-x/general-discussions/sitefinity-4-4-released.aspx
Venkata
November 2011
3 posts
1 tag
Using Disqus comments in Sitefinity
In my previous post I explained how to use Disqus in a development environment.
In this post I will talk about how to use Disqus comments in Sitefinity Blogs.
Getting started with Disqus is pretty simple, go to Disqus.com and signup, all you need is to provide Site information (site where you will use Disqus comments) and your moderator information.
Now navigate to Disqus developers section...
1 tag
Developing with Disqus on localhost
Disqus is a popular comment platform which can be integrated to any website by using simple Javascript snippet code.
This article talks about how to develop with Disqus, on localhost or on your development environment.
When you are running Disqus for the first time, disqus tries to verify your URL, if your URL fails to match certain criteria you will be presented with “We were unable to...
1 tag
Sitefinity 4.3 released
Sitefinity 4.3 has been released. Lots of new features and huge number of bug fixes.
I am really excited about a lot of new features in Ecommerce, to read more head to release notes here
Cheers
Venkata
October 2011
2 posts
2 tags
Changing product detail URL in Sitefinity...
By default, Sitefinity Ecommerce ships with a date formatted URL for the Product Detail page, which comes very handy if you just want to let your users know when the product was published. But as with any other part of Sitefinity, this URL can be highly customized to meet your own needs and make even more Pretty URL or PURL in general.
You can change the default route of products in 2 ways
1....
1 tag
Thank you, Steve
“Whether or not you like Apple, every engineer should mourn the passing of Steve Jobs. He was quite possibly our time’s greatest builder.” via Nate Kohari
Thank you for everything you did for this industry Steve.
Image credit apple.com
September 2011
3 posts
1 tag
Sitefinity 4.2 SP1 released
The Service Pack 1 release of Sitefinity 4.2 has been released, go get it while its hot!
The best feature in my opinion is the Migration Module now supports Sitefinity 3.7 Community and Standard edition projects, both .NET35 and .NET40 :) wow.
You can read more about the release notes here
Cheers
Venkata
1 tag
Disable AutoComplete on Textbox in ASP.NET
There are cases when you want to turn off AutoComplete that all modern browsers offer for textbox.
This article will guide you through on how to disable AutoComplete in ASP.NET.
There are two ways you can achieve this -
Using AutoCompleteType (works in IE and .NET specific). You can read more aboutAutoCompleteType here
Using AutoComplete (works in all browsers, HTML...
2 tags
Anonymous checkout in Sitefinity eCommerce
Often on your eCommerce website,you might want to allow users to anonymously checkout that is allowing them to place an order even though they are not a customer of your website. There are number of reasons on why you allow anonymous checkout which you can read more about here.
This post will show you how you would enable anonymous checkout of Sitefinity eCommerce 4.2.
The Checkout widget...
August 2011
1 post
2 tags
Get started with eCommerce module using Sitefinity...
The Sitefinity’s 4.2 Release, brings a new module to the picture ECommerce.
This post walks you through how to setup a store and all the steps that are required in the process.
First let’s talk about the feature set of the eCommerce module -
Features
The initial release of eCommerce lets you –
Backend Features
1. Manage Products 2. Manage Product Types 3. Manage Departments...
July 2011
1 post
1 tag
I don't always test my code....
Saw this funny image and thought I would share.
Image credit: http://imgur.com/gallery/y7Hm9
June 2011
3 posts
1 tag
Republishing Pages in Sitefinity 4.X
If you would like to Republish pages in Sitefinity 4.X for any reason this post will help you write a custom page to do this task.
Up until 4.1 this Republish page is a very important page to have as when you make changes to the template, the content pages did not get the latest changes from the template. You had to open up each and every content page and then hit Publish on that page. This is a...
1 tag
Telerik MVC Music Store : MVC Music Store with...
I would like to introduce you all to Telerik MVC Music Store. The sample is completely based off MVC Music Store, with Telerik OpenAccess ORM as database accessing mechanism.
I would love if you download and give the project a try.
Cheers
Venkata
1 tag
Telerik Open Access Orm : Include Equivalent -...
ADO.NET Entity Framework 4.0 has an friendly method for loading related objects in a explicit way by using “Include”
Below is an example from MVC Music Store.
https://gist.github.com/2779705
In this method, Generes and Albums are related so EF provides an easy way to get both in a single call.
But the main topic of this post is how to achieve this behavior if you are using Telerik...
April 2011
1 post
1 tag
Working with ambigious controller names in MVC3
If you are working with ASP.NET MVC2 or above you might want to have same controller name across multiple areas. For example you might have an Home Controller on your root of your website and also a Home Controller on the Admin Area of your website. Looks like a a reasonable thing to have
But if you run your application you will have an error saying “Multiple Types were found that match...
March 2011
1 post
1 tag
Making your website IE9 friendly
IE9 was released recently. It is brand new browser from Microsoft, which uses their new “Chakra” Javascript engine which makes it the fastest browser till date (even beating Chrome 10).
IE9 has an interesting feature called “Site Pinning”. This blog post talks about how to change your website to make use of that and give the users of your website a “app” feel...
February 2011
2 posts
1 tag
Getting Started with Mercurial and TortoiseHG
Mercurial is a distributed version controls system (DVCS) and TortoiseHG is a GUI based Mercurial Client for Windows.
To install TortoiseHG on windows, download the TortoiseHG client from here.
Run through the installer.
Once the installation is finished -
Open the folder that you want to create a repository for
Right click on the folder go to TortoiseHG Menu and click on Global Settings
...
1 tag
Adding Telerik Extensions for MVC3 using NuGet...
This is fourth in the series posts I am doing to cover Telerik Extensions for ASP.NET MVC3(Updating the MVC3 from today’s post).
Getting Started with Telerik Extensions for ASP.NET MVC
Telerik Extensions for ASP.NET MVC - The Grid
Telerik Extensions for ASP.NET MVC - The Editor
In today’s post I will talk about using Telerik Controls via Nuget.
Let us create a new MVC3...
January 2011
2 posts
1 tag
Telerik Extensions for ASP.NET MVC - The Editor
This is third in the series posts I am doing to cover Telerik Extensions for ASP.NET MVC.
Getting Started with Telerik Extensions for ASP.NET MVC
Telerik Extensions for ASP.NET MVC - The Grid
In today’s post I will talk about using Telerik Extensions for ASP.NET - The Editor.
I will start with a ASP.NET MVC2 application which is already configured to run Telerik Extensions, if you have...
1 tag
Happy New Year 2011
December 2010
3 posts
1 tag
2010 - A Year in review
This is that time of the year, where I have to look back at what I have achieved in the year. It is also that time of the year to make the next years resolutions.
Looking back
In 2010 I did a total of 25 blog posts (26 including this one), concentrating on ASP.NET MVC, ASP.NET, SQL Server and Windows Phone 7, which are main focus areas of my blog.
I have to admit that I didn’t reach my...
1 tag
Telerik Extensions for ASP.NET MVC - The Grid
This is second in the series posts I am doing to cover Telerik Extensions for ASP.NET MVC.
Getting Started with Telerik Extensions for ASP.NET MVC
In today’s post I will talk about using Telerik Extensions for ASP.NET - The Grid.
I will start with a ASP.NET MVC2 application which is already configured to run Telerik Extensions, if you have not already done that, I encourage you to read...
1 tag
Getting Started with Telerik Extensions for...
Telerik provides UI extensions to ASP.NET MVC, In this three part series I will show how to get started with Telerik Extensions for ASP.NET MVC and how to use the Grid and Editor Controls. In this post I will walk through how to get started with these extensions.
To use Telerik Extensions for ASP.NET MVC go to Telerik Extensions for ASP.NET MVC Page, and download the extensions, you will...
November 2010
4 posts
1 tag
Json Request Behaviour in MVC2
If you are working with a MVC2 project, or happen to upgrade a MVC1 Project to a MVC2 Project you might run to some issues while getting Json data using AJAX calls.
Specifically MVC 2 will give you an error which says
This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request. To allow GET requests, set...
1 tag
Changing you Application Title in Windows Phone 7
This is another quick post in which I will show you how to change Application Title in Windows Phone 7 Application List.
Here is how the “Save the world Ninja!” app title is looking right now (If you haven’t had a chance to read the post I did on how to create the Save the world Ninja! app I would suggest that you do here.)
Now I want to change this title to something more...
1 tag
Bringing up Software Keyboard in Windows Phone 7
This post is short and quick one, in the previous post I created a Hello World Windows Phone 7 App. If you haven’t read that already please do so here.
In this post I will just add a small functionality to the app. I wanted the software keyboard on the Windows Phone 7 device to come up as soon as the App loads.
Generally the software keyboard in Windows Phone 7 automatically pops up...
1 tag
Building Hello World! Windows Phone 7 App
In this post I will walk you through on how to build a Hello World Windows Phone 7 App. The “Hello World” app that I am building in this tutorial is a “Save the World” app in which if you enter a correct pass phrase you will save the world for you :), if not you cannot save the world :P
To get started you will need Windows Phone 7 Developer Tools, you can download...
October 2010
2 posts
2 tags
Peforming CRUD with LINQ to SQL
LINQ to SQL is an ORM(Object-relational mapping) tool introduced by Microsoft.
In this post I will walk through how to perform basic CRUD(Create, Retrieve, Update, Delete) operations using LINQ to SQL.
(NOTE: This post assumes you have basic knowledge of using LINQ to SQL like adding the DBML class and dragging tables on to a DBML designer)
Lets get started -
The table we are going use for...
1 tag
How to add Twitter Stream to your ASP.NET MVC...
This post will walk you through how to add twitter stream to your ASP.NET MVC Website.
First go to http://twitter.com/widgets, then in left side bar under “Widgets for…” select “My Website”
From the widgets page, choose “Profile Widget” -
You should end up in a “Customize your Profile Widget” page -
In the settings tab enter your...
September 2010
1 post
2 tags
Preventing Caching in JQuery Ajax requests
To prevent Caching of results while making JQuery Ajax requests use the following code -
https://gist.github.com/2515167
If you use the above script, whenever you make a JQuery ajax request it will auto-add a unique URL parameter to the requestedy url and hence the cached results wont be returned.
Here is how a JQuery GET request would look like without cache :
Here is how JQuery GET...
August 2010
2 posts
1 tag
Using TinyMCE Editor with ASP.NET MVC
In this post I will walk through on how to get TinyMCE editor, one of the best WYSIWYG (What YouSee Is What You Get) editors, to work in a ASP.NET MVC application
Go to TinyMce website and download the latest Main Package, at the time of writing it is version 3.3.8. Here is a link for direct download - Click to Download
I will use a ASP.NET MVC2 App to demonstrate TinyMCE.
Create a New ASP.NET...
1 tag
Shrinking Database Log file
To just shrink the size of a database log file, use the following code:
https://gist.github.com/2515087
The backup log statement marks all of the transactions listed in the log Inactive, and then the dbcc shrinkfile command will remove the Inactive transactions from the file, thereby shrinking the size of the database.
If the database_log_name is unknown, you can also use the File_ID instead of...
July 2010
1 post
1 tag
Grey out Submit button after click - ASP.NET
This post is small snippet I had to come up with to grey out the submit button after clicking it so the user doesn’t click it twice.
I am using a post in asp.net forums http://forums.asp.net/p/1057086/1868122.aspx as reference.
The version I am writing here is tailored down version of what the forums website discusses.
Here is the C# Utility method that generates a...
June 2010
1 post
1 tag
Sorting Tabular Data in ASP.NET
In this post I will talk about how to build tabular data using ADO.NET EntityFramework and sort tabular / grid data using JQuery table sorter plugin. For the sake of demo I will use ASP.NET 4 and .NET Framework 4.
Fire up Visual Studio 2010 and Create a New ASP.NET WebSite. For this demo I will use ADO.NET Entity Framework to get a list of Products from the database.
I will use AdventureWorks...
May 2010
1 post
1 tag
Test Technorati Claim
Test
April 2010
3 posts
1 tag
Creating a Printer Friendly ASP.NET Page
This post is a quick snippet of code to create a Printer Friendly version of any ASP.NET page.
Create a DIV which holds the content of your ASP.NET Page , so enclose the entire content that you want to print inside a div -
https://gist.github.com/2514869
Then create a Hyperlink for the user to click, to get to the print friendly page
https://gist.github.com/2514874
Include this JavaScript...
2 tags
Sorting Tabular Data in ASP.NET MVC
In this post I will talk about how to use TableSorter Plugin (http://tablesorter.com/docs/) in a ASP.NET MVC application.
I will be using .NET 4 and ASP.NET MVC2 for the demo code in this post.
I will be using AdventureWorks database that can be downloaded from codeplex as a sample database for SQL Server 2008.
Add a ADO.NET Entity Data Model, for this demo purpose I have added Product table...
1 tag
Round to Nearest 10,100, or 10 POW N
This one is a quick code snippet,
Here is a method which can round a value to nearest 100,1000, or any 10 Pow N.
This method follows the rounding rules
https://gist.github.com/2514763
Hope this helps,
Cheers,
Venkata
March 2010
2 posts
2 tags
Using ASP.NET Charting in ASP.NET MVC
In this blog post I will talk about how to use ASP.NET Charting controls( which Microsoft announced last year) in a ASP.NET MVC application.
If you want to read more about ASP.NET Charting Controls here is a link to Scott Gu’s Blog Post : http://weblogs.asp.net/scottgu/archive/2008/11/24/new-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt.aspx.
I will be using Streaming...
2 tags
ASP.NET MVC2 Client Validation
Some time back I blogged about building my own blog, well I started building it in my spare time. As I mentioned previously, I am using ASP.NET MVC2 and .NET 4 as my platform.
To start with today, I would walk through how to build a simple contact me page by using ASP.NET MVC2’s Model Validation Techniques.
First let us put the View Page together -
Below is the content section of my View...
February 2010
2 posts
2 tags
Post XML Data using ASP.NET
This post is more of a code snippet ,
Here is the scenario,
You may want to Post to a third party web service or server your XML data.
You may want to Read data posted by third party web service or server to your application.
Here is the snippet to create a XML Post -
https://gist.github.com/2511186
Here is the snippet to read XML that has already been posted...
2 tags
How to FTP a file through C#
.NET Framework gives us a nice little API to FTP a file to a server using C#, VB.NET . This article is an attempt to put it to code.
Please note that I am only doing a File Upload using FTP. File Download will follow soon.
Add a reference to Sytem.Net to the application - and use the following fragment. -
https://gist.github.com/2511162
Please note that I am using a Settings file to read the...
January 2010
3 posts
1 tag
Finding Duplicates using SQL
Here is a handy script to find duplicates in a table using SQL -
https://gist.github.com/2511129
Cheers,
Venkata
2 tags
Building my own Blog
Over the last few days, I am spending some time to build my own blog. I often feel that a real developer builds his own blog and then blogs using it.:)
With all these CMS tools , blogging systems I have tried and seen the source code for , I always wanted to write my own blogging system that I can blog and add functionality to my blog whenever I want to in the way I want to - not waiting for a...
1 tag
December 2009
3 posts
1 tag
Update Data in one table with a new or Other table
Consider the following scenario - You have data in one table which is old, and then you have data in a newer table which is all good. If you have to update the old table with new tables data you can take one of these two approaches 1. Write a SQL Query that does that 2. Write a program to iterate and update (ah, I know no one does this except for a purely programming guy who doesn’t...
1 tag
Adding Tooltip to Dropdown List Items
Here is a way to add tool tips to items in dropdownlist.
https://gist.github.com/2511045
Hope this Helps
Cheers!!!
Venkata
3 tags
Using Elmah in your website
UPDATE: This post is now obsolete. Use Nuget to add Elmah to your project. Its easy and fast.
Off late I have been using many of open-source projects in the websites that I am trying to build.
Elmah is one among them - Click Here to know more about Elmah.
Here is my quick take on how to use Elmah in your website.
NOTE: This demo application is built using .NET Framework 4.0 and Visual...