The code below opens a window with toolbar and status bar.window.open (“http://abc.com/”,“mywindow”,”status=1,toolbar=1″); The table shows the features and the string tokens you can use: status The status bar at the bottom of the window. toolbar The standard browser toolbar, with buttons such as Back and Forward. location The Location entry field where you enter the [...]
Tag Archives: Method
LINQ Series – How to use Queryable.Select Method in ASP.Net C#
The Select method of System.Linq.Queryable class enables to project the elements of a sequence into a new form. It implements a transform function as a selector that produces a new element corresponding to each element available in the provided sequence. You can generate an anonymous type of IQueryable sequence by applying projection criteria using selector [...]
LINQ Series – How to use Queryable.ThenByDescending Method in ASP.Net C#
A ThenByDescending method of System.Linq.Queryable class enables to apply a next level sorting to the sorted elements of a sequence. It applies the sorting order to the IOrderedQueryable sequence and arranges the elements in descending order based on the specified key. There are following two types of overloaded functions of LINQ ThenByDescending method which take [...]
LINQ Series – How to Use Queryable.SelectMany Method in ASP.Net C#
The SelectMany method of System.Linq.Queryable class enables to project the elements of a sequence to an IQueryable by flattening its sub sequences into one single sequence. For example, if any sequence contains a nested sequence of elements then by applying the SelectMany method projects the resulting sequence as a single linear list of elements. It [...]
LINQ Series – How to use Queryable.SingleOrDefault Method in ASP.Net C#
The SingleOrDefault method of System.Linq.Queryable class enables to return a default element value if the sequence does not contain exactly the single element. It works only if the resulting value is a single element retrieved from the sequence. If the computation evaluates to more than one element then it throws an exception as “Sequence contains [...]
LINQ Series – How to Use Queryable.SequenceEqual Method in ASP.Net C#
The SequenceEqual method of Sytem.Linq.Queryable class provides the functionality to compare the two sequences. It returns a Boolean type result in the form of true or false that indicates whether the specified two sequences are equal or not. By default it uses the default IEquatable comparer to compare the object of a sequence. The overloaded [...]
LINQ Series – How to use Queryable.Single Method in ASP.Net C#
The Single Method of System.Linq.Queryable class returns the only single available element from a sequence. It works only if the resulting value is a single element retrieved from the sequence. If the computation evaluates to more than one element then it throws an exception as “Sequence contains more than one element.“. The LINQ Single method [...]
LINQ Series – How to use Queryable.Skip Method in ASP.Net C#
The Skip method of System.Linq.Queryable class enables to ignore the specified number of elements and returns rest of the elements from a sequence. It returns an IQueryable resulting sequence containing the elements starting from the element that occurs at the next index specified in the method invocation. The LINQ Skip method does not have any [...]
LINQ Series – How to use Queryable.ThenByDescending Method in ASP.Net C#
A ThenByDescending method of System.Linq.Queryable class enables to apply a next level sorting to the sorted elements of a sequence. It applies the sorting order to the IOrderedQueryable sequence and arranges the elements in descending order based on the specified key. There are following two types of overloaded functions of LINQ ThenByDescending method which take [...]
LINQ Series – How to use Queryable.SkipWhile Method in ASP.Net C#
The SkipWhile method of System.Linq.Queryable class provides the functionality similar to the Skip method that we learned in the previous tutorial. It has an additional functionality that allows you to specify a predicate condition that bypasses the elements of a sequence as long as the specified condition is true and returns the remaining elements. The [...]