How to create modal form using blazor server app?

gciraman2024

Member
Joined
May 19, 2024
Messages
12
Programming Experience
3-5
Hi Team

I need some help, want to create a blazor server app will when clicking a button modal pop up. Either can use mudblazor as a library, can anyone show me step by step to do this in blazor server app in .net 8 sdk.

// blazor requirement for the project.
The application
should include the following:
? a listing of operations with an option to remove an operation
? a modal form to add a new an operation to the list of operations
? a modal form to add a new device to an operation
? a pleasant user interface
? razor components
The application does not need to cater for any form of persistence.

C#:
class Operation {

    public int OperationID {get;set;}
    public string Name {get;set;}
    public int OrderInWhichToPerform {get;set;}
    public byte[] ImageData {get;set;}
    public Device Device {get;set;}

}

public Device {
    public int DeviceID {get;set;}
    public string Name {get;set;}
    public DeviceType {get;set;}
}


enum DeviceType {

    BarcodeScanner,
    Printer,
    Camera,
    SocketTray


}
 
Hmm.. please ask ChatGPT to do the initial bits of dev, and then we can help you refine it. We aren't here to write your entire app for you
 
Back
Top Bottom