Hi everyone,
My problem is using the value of a variable from the codebehind page in an html tag.
I have got the html code on default.aspx for example
and there is a variable in default.aspx.vb called THISPAGE.
And in the HTML code I want to use this string value in a form tag like this:
<form method="post" action="<% =THISPAGE %>">
But when I run the page I got an error message that THISPAGE should be declared although I have declared it in the codebehind page.
Thanks a lot.
My problem is using the value of a variable from the codebehind page in an html tag.
I have got the html code on default.aspx for example
and there is a variable in default.aspx.vb called THISPAGE.
And in the HTML code I want to use this string value in a form tag like this:
<form method="post" action="<% =THISPAGE %>">
But when I run the page I got an error message that THISPAGE should be declared although I have declared it in the codebehind page.
Thanks a lot.