locked
HTML with procedure calls in separate razor file RRS feed

  • Question

  • User1011151414 posted

    I'm trying to keep my code simple and reusable by placing EditForm html into a separate file. I can send info as parameters, but, OnValidSubmit should call a procedure/task. It works fine in my "main" file,  but when I split it into a separate file, the OnValidSubmit does not execute.Any ideas?

    Monday, June 8, 2020 10:54 PM

All replies

  • User475983607 posted

    I'm trying to keep my code simple and reusable by placing EditForm html into a separate file. I can send info as parameters, but, OnValidSubmit should call a procedure/task. It works fine in my "main" file,  but when I split it into a separate file, the OnValidSubmit does not execute.Any ideas?

    No idea without the code and version of Blazor you are using; web assembly or server.

    Monday, June 8, 2020 11:01 PM
  • User1011151414 posted

    Thanks, but I figured it out.  I think I could have used Cascading Parameters or EventCallback,  but in my case it was actually easier to send the key value as a parameter in NavigateTo and re-query the database.

    Thursday, June 11, 2020 11:08 PM