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?
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.
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.
None
0 Points
2 Posts
HTML with procedure calls in separate razor file
Jun 08, 2020 10:54 PM|kvenda1|LINK
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?
All-Star
53051 Points
23640 Posts
Re: HTML with procedure calls in separate razor file
Jun 08, 2020 11:01 PM|mgebhard|LINK
No idea without the code and version of Blazor you are using; web assembly or server.
None
0 Points
2 Posts
Re: HTML with procedure calls in separate razor file
Jun 11, 2020 11:08 PM|kvenda1|LINK
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.