N
nams
Hi Frnds,
Say I have vb code like this:
Public Sub ll()
MsgBox("heLOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", MsgBoxStyle.OkOnly)
End Sub
The following script runs as soon as the page loads, no matter what
the value of b is. why is it so ?
<script type="text/javascript" language="javascript">
function ss()
{
var b = 1;
if(b==2)
{
<% ll() %>;
}
}
</script>
I want the code to get executed only if the if-condition is true and
also only when i call the script - i mean not as soon as the page
loads. Please help me.
Thanks,
Nams here
Say I have vb code like this:
Public Sub ll()
MsgBox("heLOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", MsgBoxStyle.OkOnly)
End Sub
The following script runs as soon as the page loads, no matter what
the value of b is. why is it so ?
<script type="text/javascript" language="javascript">
function ss()
{
var b = 1;
if(b==2)
{
<% ll() %>;
}
}
</script>
I want the code to get executed only if the if-condition is true and
also only when i call the script - i mean not as soon as the page
loads. Please help me.
Thanks,
Nams here