C#.NET
RowNumber Alternative in Linq
Submitted by ranjit on Mon, 08/02/2010 - 22:39I 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.
What is the real use of Polymorphism.
Submitted by ranjit on Thu, 02/11/2010 - 22:20Though I know What polymorphism is, but I am not able to comprehend the real significance of it.
I could manage functions with different names, then why should I use polymorphism.
How to create a session variable in ASP.NET
Submitted by shantanu on Sat, 12/19/2009 - 13:38- Define an ASP.NET web site.
- 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
"FormatException was unhandled" Input string was not in a correct format.
Submitted by vaibhav on Wed, 09/23/2009 - 00:11Hi !
Here I am trying to write a function that returns me value based on the following condition...
IF
Variable is NULL return me DBNull.Value
ELSE
Convert Variable into DataType whose DataTypeCode has been provided to me as a parameter of function.
Now while converting a variable into required DataType an exception is thrown "FormatException was unhandled". Input string was not in a correct format.
How do I resolve this error please help.
Here is my code...