Hello everybody!
Sorry, maybe i'm just too stupid, but how can i use some data from *.aspx.cs in aspx file. For example:
//some layer in aspx
<DIV id="Layer1" runat="server" style="Z-INDEX: 111; LEFT: 320px; WIDTH: 100px; POSITION: absolute; TOP: 232px; HEIGHT: 100px" ms_positioning="FlowLayout"><% Response.Write(sides);%></DIV>
// and in aspx.cs:
namespace MediaApplication
{
public class main : System.Web.UI.Page
{
int sides = 515;
.....
But it doesn't work. What have i to type in Response to use this variable?
Will be very thankful for any kind of help!
Best regards,
Alexander
Sorry, maybe i'm just too stupid, but how can i use some data from *.aspx.cs in aspx file. For example:
//some layer in aspx
<DIV id="Layer1" runat="server" style="Z-INDEX: 111; LEFT: 320px; WIDTH: 100px; POSITION: absolute; TOP: 232px; HEIGHT: 100px" ms_positioning="FlowLayout"><% Response.Write(sides);%></DIV>
// and in aspx.cs:
namespace MediaApplication
{
public class main : System.Web.UI.Page
{
int sides = 515;
.....
But it doesn't work. What have i to type in Response to use this variable?
Will be very thankful for any kind of help!
Best regards,
Alexander