G
gh
In the Login1_Authenticate event I check to see if the login is valid
and if it is I have a javascript function before the body tag in the
aspx file I want to call. When I try to call the function I get the
following error:
The name 'myFunction' does not exist in the current context login.aspx.cs
What am I missing?
TIA
protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
{
if (dsLogin.Tables[0].Rows.Count == 1)
{
Login1.FailureText = "";
myFunction(dsLogin.Tables[0].Rows[0]["CONAME"].ToString());
}
}
The function in the aspx file
<script language="javascript" type="text/javascript">
function myFunction(Value)
{
window.parent.set_value(Value);
}
</script>
and if it is I have a javascript function before the body tag in the
aspx file I want to call. When I try to call the function I get the
following error:
The name 'myFunction' does not exist in the current context login.aspx.cs
What am I missing?
TIA
protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
{
if (dsLogin.Tables[0].Rows.Count == 1)
{
Login1.FailureText = "";
myFunction(dsLogin.Tables[0].Rows[0]["CONAME"].ToString());
}
}
The function in the aspx file
<script language="javascript" type="text/javascript">
function myFunction(Value)
{
window.parent.set_value(Value);
}
</script>