Monday, July 25, 2011

Using JSON with ASP.NET 3.5

How to use JSON as the preferred data format for invoking Web Services from the client side.
you can learn about this in more detail from the following link:
JSON in asp.net 3.5

Facebook Application development in .net

To develop Facebook Application in .net you can find good resource in these links below:
 computerbeacon
Facebook developer

Sunday, July 24, 2011

Install Membership and Authentication tables and Stored Procedures in SQL server Database

With the help of Visual Stdio Command Prompt you can easily install  Membership and Authentication tables and Stored Procedures in SQL database:
Here is the query:
aspnet_regsql.exe
Type it in visual stdio command prompt and it will show you a asp.net sql server setup wizard:

How to select random data from database


Suppose you have to get the random data from the database, you can use sql query which get random records or data from the database. Every time it show the random records or data

Here is the sql query  to get random  records:

Syntax: " SELECT  TOP Clause F FROM  Table_Nameable_Name ORDER BY NEWID()"

E.g:     "SELECT top 4 Image from tbl_OfficeWorkers ORDER BY NEWID()"

Thursday, July 14, 2011

Encrypt Web Config File In Asp.net From Visual Stdio command prompt

To Encrypt Web Config File in asp.net  you simply need to type the following command in visual stdio command prompt
aspnet_regiis.exe -pe "connectionStrings" -app "//appname"    where  appname is the name of the application in that you have give in web config file