Skip to content

Sweet Alert Library written in C# mapping the JavaScript function

License

Notifications You must be signed in to change notification settings

VijayK1990/SweetAlertwithCSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SweetAlertwithCSharp

Sweet Alert Library written in C# mapping the JavaScript function

protected void BtnSWAL_Success_Click(object sender, EventArgs e)
    {
        SweetAlert Swal = new SweetAlert()
        {
            Path = SweetAlertValues.NoPath,
            Title = SweetAlertValues.Title.Success,
            Message = "Operation completed",
            CssClass = SweetAlertValues.Css.Success,
            ExSwalRules = new ExtendedSweetAlertRules()
            {
                ConfirmButtonColor = "Red"
            }
        };

        Page.ClientScript.RegisterStartupScript(GetType(), 
        JavascriptCodeIdentifier.SHOW_ALERT_DIALOG, SweetAlerter.EmbedSweetAlertCodeBlock(Swal), true);
    }

About

Sweet Alert Library written in C# mapping the JavaScript function

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published