.NET

RowNumber Alternative in Linq

I want to know, Do we have any alternative to Row_Number function in Linq. I want to use Ranking and Partition in Linq.

 

SELECT ROW_NUMBER() OVER(Partition BY Author_Name

Please let me know how to achieve the same functionality in Linq.

How to create a session variable in ASP.NET

  1. Define an ASP.NET web site.
  2. Create two pages within the site. The first page will contain an ASP.NET Web Form that will post back to itself and then redirect to the second page.

    Note: The reason this example uses two pages is to prove that a session variable is available to a second, third, fourth, etc. page in the web site. Request variables, which are an alternative to session variables, cannot be carried over from an ASP.NET Web Form on one page to a second page

Regular Expression to Check Password Strength

Last few days I was trying hard to come up with a Regular Expression for checking password strength in JavaScript. For those who don't know what is a regular expression and How it can be used, Here is a wonderful link for you. Regular Expression can be a very handy code, for Matching two strings, Data Validation and even Syntax Highlighting.

Syndicate content