https://github.com/simplifynet/simplify.web.messagebox
Simplify.Web non-interactive server side message box
https://github.com/simplifynet/simplify.web.messagebox
c-sharp c-sharp-library dotnet dotnet-core simplify simplify-web
Last synced: about 2 months ago
JSON representation
Simplify.Web non-interactive server side message box
- Host: GitHub
- URL: https://github.com/simplifynet/simplify.web.messagebox
- Owner: SimplifyNet
- License: lgpl-3.0
- Created: 2019-09-15T04:59:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-05T14:21:45.000Z (about 1 year ago)
- Last Synced: 2025-04-23T12:14:58.712Z (about 2 months ago)
- Topics: c-sharp, c-sharp-library, dotnet, dotnet-core, simplify, simplify-web
- Language: C#
- Homepage:
- Size: 3.93 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simplify.Web.MessageBox
[](https://www.nuget.org/packages/Simplify.Web.MessageBox/)
[](https://www.nuget.org/packages/Simplify.Web.MessageBox/)
[](https://github.com/SimplifyNet/Simplify.Web.MessageBox/actions/workflows/build.yml)
[](https://libraries.io/nuget/Simplify.Web.MessageBox)
[](https://www.codefactor.io/repository/github/simplifynet/simplify.web.MessageBox)

[](http://makeapullrequest.com)`Simplify.Web.MessageBox` is a package which provides non-interactive server side message box for [Simplify.Web](https://github.com/SimplifyNet/Simplify.Web) web-framework.
## Quick Start
### Setup message box templates
There are different template file for different message box statuses.
Inline templates intended to use as API responses but stylized with HTML.
### Displaying message box
#### Default message box which will be added to 'MainContent' variable
```csharp
public class MyController : Controller2
{
public ControllerResponse Invoke() =>
new MessageBox("your string");
}
```#### Inline message box
Framework execution will be stopped, message box will be returned to client without rest of the website content
```csharp
public class MyController : Controller2
{
public ControllerResponse Invoke() =>
new MessageBoxInline("your string");
}
```