i wonder if there is any way to call an asp method that returns a string or something when you are in <script></script> tags.
Like this (it does not work):
<script language="javascript" type="text/javascript">
function isValid() {
var required = "<%= callAspMethodThatReturnsSomething() %>";
}
</script>
any help with this? thx!
requiredgives menull. Actually the method is not in codebehind. I am working with masterpages and the method is in the masterpage. So i doMaster.Method()in codebehind to get the method...var required = "";