Re: What am I doing wrong?
What are you building this app with?
the best thing to do if you have a commn method you want to use over and over is make it static.
Please show common code file please.
Re: What am I doing wrong?[Resolved]
I was able to solve this:
Here is what I did. Create a file called CommonCode.cs
Code:
using System;
using System.Web.UI;
public class CommonCode : System.Web.UI.Page
{
//create all the functions here
}
Then whereever I needed any of the functions I use the following syntax in the aspx.cs file:
Code:
CommonCode cc = new CommonCode();