I have this method in an asp.net webforms project:
private async Task SomeMethod(int accID){
I want to do this in page_load, but I'm not sure how to handle the parameters.
protected void Page_Load(object sender, EventArgs e)
{
RegisterAsyncTask(new PageAsyncTask(SomeMethod(int accID)));
}
source
share