A
A T
Hi.
I got two ASPX pages in VS 2005 .Net 2.0
One code behind is
public partial class C1 : System.Web.UI.Page
{
public static string GetThisPageURL(int ProwordID) { return
ProwordID.ToString(); }
}
Second code behind is
public partial class C2 : System.Web.UI.Page
{
private void MyFunction()
{
string b = C1.GetThisPageURL(5);
}
}
"string b = C1.GetThisPageURL(5); "
This line fails.
Why?
Since this a web project in vs 2005 and .net 2.0 there are no namespases.
Public static stuff should be accessible.
Please help
I got two ASPX pages in VS 2005 .Net 2.0
One code behind is
public partial class C1 : System.Web.UI.Page
{
public static string GetThisPageURL(int ProwordID) { return
ProwordID.ToString(); }
}
Second code behind is
public partial class C2 : System.Web.UI.Page
{
private void MyFunction()
{
string b = C1.GetThisPageURL(5);
}
}
"string b = C1.GetThisPageURL(5); "
This line fails.
Why?
Since this a web project in vs 2005 and .net 2.0 there are no namespases.
Public static stuff should be accessible.
Please help