Vikram Lakhotia
The Online Weblog of Vikram Lakhotia
-
LINQ and ordering of the result set
After filtering and retrieving the records most of the time (if not always) we have to sort the record in certain order. The sort order is very important for displaying records or major calculations. In LINQ for sorting data the order keyword is used.
-
TakeWhile and SkipWhile method in LINQ
-
Using Take and skip keyword to filter records in LINQ
In LINQ we can use the take keyword to filter out the number of records that we want to retrieve from the query. Let’s say we want to retrieve only the first 5 records for the list or array then we can use the following query
-
Filtering data in LINQ with the help of where clause
-
HTML Encoded Code Expression
Hi,
-
Changes in Asp.Net Request Validation
Hi,
When a page is submitted, users can also script along with the post data. Also unauthorized postback could be triggered. The event validation mechanism reduces the risk of unauthorized postback requests and callbacks when the EnableEventValidation property is set to true. This would help and provide default level of protection against cross site scripting. -
HtmlEncode and UrlEncode Now Encode Single Quotation Marks
Hi,
One of the small but important change in the Asp.Net 4.0 is the change is the Encode methods. Now the HtmlEncode and UrlEncode methods in the HttpUtility and HttpServerUtility class respectively also encode the single quote (‘). -
Who is your tomorrow's competitor
Who sells the largest number of cameras in India?
-
Visual Studio 2010 RC released for MSDN Subscriber
Hi,
-
Wrapping Text Line in a label control
Hi,