I am new ot ASP.NET
What I try to do this reuse the same function in any pages like in classic ASP where I can include function file.
I read this thread below and tried to do the same, but it is not working at all. I am gettering an error:
http://aspnet.4guysfromrolla.com/articles/122403-1.aspx
The name 'MyClass' does not exist in the current context
So I have a MyClass.cs file under App_Code foder, has this below:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
/// <summary>
/// Summary description for Class1
/// </summary>
///
public static class MyClass
{
//
// TODO: Add constructor logic here
//
public static string FormatDateNoTime(string input)
{
string thedate;
...
Go to the complete details ...