P
Pierre
Hello,
In an aspx page (mypage.aspx) from a web projet,
I would like to get the value of a variable of the projet that is declared
as public in a module.
The variable can be called from anywhere in the code behind page and in the
class files, but when I try to call it from an aspx page, it raises an
error.
<%=myvar%> in mypage.aspx raise an error : the name "myvar" is not declared.
I have a workaround, but it does not satisfy me enough :
I create a code behind for the aspx page and I declared a class variable,
let's say "cls_myvar", with a default value equals to "myvar".
And now when referencing the "cls_myvar" in the aspx page, there is no error
and the value is here.
<%=cls_myvar%> is ok.
But I would like to reference to the global var "myvar" in the simpliest
way, ie whithout having to create a code behind file.
Thanks for any help.
Pierre.
In an aspx page (mypage.aspx) from a web projet,
I would like to get the value of a variable of the projet that is declared
as public in a module.
The variable can be called from anywhere in the code behind page and in the
class files, but when I try to call it from an aspx page, it raises an
error.
<%=myvar%> in mypage.aspx raise an error : the name "myvar" is not declared.
I have a workaround, but it does not satisfy me enough :
I create a code behind for the aspx page and I declared a class variable,
let's say "cls_myvar", with a default value equals to "myvar".
And now when referencing the "cls_myvar" in the aspx page, there is no error
and the value is here.
<%=cls_myvar%> is ok.
But I would like to reference to the global var "myvar" in the simpliest
way, ie whithout having to create a code behind file.
Thanks for any help.
Pierre.