Js dosyamın içerisinde;
$(document).ready(function () {
// Basic
$('#basic-alert').on('click', function () {
Swal.fire({
title: 'Any fool can use a computer',
confirmButtonClass: 'btn btn-primary',
buttonsStyling: false,
})
});
$('#with-title').on('click', function () {
Swal.fire({
title: 'The Internet?,',
text: "That thing is still around?",
confirmButtonClass: 'btn btn-primary',
buttonsStyling: false,
}
)
});
şeklinde aler nesnelerim var.
normal HTML ortamımda
<button type="button" class="btn" id="basic-alert">Basic</button>
şeklinde çalışıyor.
Asp.NET web formda buton altında bunu nasıl çağırabilirim.
ClientScript.RegisterOnSubmitStatement(this.GetType(), "basic-alert", alertyaz.ToString());
ScriptManager.RegisterStartupScript(this, GetType(), "basic-alert", "function();", true);
bu iki yöntemde çalıştırmadı...
teşekkürler