C#.NET

What is the real use of Polymorphism.

Though 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

  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

"FormatException was unhandled" Input string was not in a correct format.

Hi !

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...
 

Syndicate content