c# - How can i add close button to toastr.js in asp.net web form? -
i'm beginning in asp.net , want use toastr.js show user message,for purpose download toastr.js , in web form in submit button write code:
protected void submit(object sender, eventargs e) { page.clientscript.registerstartupscript(this.gettype(), "toastr_message", "toastr.error('there error', 'error')", true); div3.visible = true; }
show me message correctly,but message box not hide,and want add close button message box ,when user fire close button,message start unhide fade effect.how can solve ?thanks.
adding closebutton
option should trick https://github.com/codeseven/toastr#close-button:
page.clientscript.registerstartupscript(this.gettype(), "toastr_message", "toastr.error('there error', 'error', { closebutton: true })", true);
Comments
Post a Comment