I have this setting in my asp.net website web.config file:
<authentication mode="Forms" >
<forms loginUrl="Login.aspx" name=".ASPXFORMSAUTH" timeout="20"></forms>
</authentication>
but this cause my login page 'page_load' event fires twice! when i remove this config , page_load is fired once. how can i prevent this behaviour?
I read a captcha image from an external site and show that in my login page, when my page_load fires twice it reads the captcha image twice.
if (!Page.IsPostBack)
{
ReadCaptcha();
}
thanks.