how to access .cs page values in aspx page????
-
This is my first.cs page..... namespace testvalueobject { /// <summary> /// Summary description for first /// </summary> [Serializable] public class first { int a, b, c; public first() { a = 10; b = 20; } [XmlAttribute] public int add() { c = a + b; return c; } } } this is my default.aspx.cs page.... using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using App_Data.testvalueobject; using App_Data.testvalueobject.first; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } i can't access the methods of cs page in aspx.cs page...... kindly help me soon sarala.s
-
This is my first.cs page..... namespace testvalueobject { /// <summary> /// Summary description for first /// </summary> [Serializable] public class first { int a, b, c; public first() { a = 10; b = 20; } [XmlAttribute] public int add() { c = a + b; return c; } } } this is my default.aspx.cs page.... using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using App_Data.testvalueobject; using App_Data.testvalueobject.first; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } i can't access the methods of cs page in aspx.cs page...... kindly help me soon sarala.s
-
This is my first.cs page..... namespace testvalueobject { /// <summary> /// Summary description for first /// </summary> [Serializable] public class first { int a, b, c; public first() { a = 10; b = 20; } [XmlAttribute] public int add() { c = a + b; return c; } } } this is my default.aspx.cs page.... using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using App_Data.testvalueobject; using App_Data.testvalueobject.first; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } } i can't access the methods of cs page in aspx.cs page...... kindly help me soon sarala.s
First F=new First(); int a=F.Add()
What is issue with that ? are you talking about some thing different ?
cheers, Abhijit