Skip to content

Replies

0
David Kethel
David Kethel answered on Aug 17, 2020 12:47 AM

I'm also wondering if the page_init code should be

protected void Page_Init(object sender, EventArgs e)
{
if(!IsPostBack) {
AntiForgeryDiv.InnerHtml = AntiForgery.GetHtml().ToString();
}
}

That way I'm not generating a new anti-forgery token for each postback. 

what do you think?

0
David Kethel
David Kethel answered on Aug 17, 2020 12:31 AM

Hi Monika, 

   Thanks that works. 

Do you have any idea why it works? It seems like this is just a workaround for a bug in the drop-down control. 

Dave