Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

How to execute a script after the c# function executed

BY LOVE,  At the place of swal , you can use alert() function also.

int NumberOfRows = oRSEntities.Menu_Item.Count();
string message = $" {NumberOfRows} Records saved successfully.";
string script = "window.onload = function(){ swal('";
script += message;
script += "')};";
ClientScript.RegisterStartupScript(this.GetType(), "SuccessMessage", script, true);
Comment

PREVIOUS NEXT
Code Example
Csharp :: Fix Array outside the bonus 
Csharp :: Open API support for ASP.NET Core Minimal API 
Csharp :: C# check control type 
Csharp :: c# text to ascii 
Csharp :: 1/1/1/1/1 
Csharp :: binary search between two indexes 
Csharp :: c# avoid screensaver 
Csharp :: f sharp make parameter mutable 
Csharp :: Custom Circular Picture Box C# win Form app 
Csharp :: Display all members of class using a for loop vb.net 
Csharp :: streamwriter delete all text 
Csharp :: c# uri to string 
Csharp :: c# read file while writing 
Csharp :: C# declare object with values 
Csharp :: c# md5 hash bouncycastle encypt decrypt with key 
Csharp :: DateTime2 error in EF Blazor Web Application 
Csharp :: single or default in c# 
Csharp :: custom player spawner mirror 
Csharp :: Strings build-in functions in c# 
Csharp :: asp.net core relative file path within console app 
Csharp :: startup c# class winform 
Csharp :: how to add serilog to your asp.net project 
Csharp :: enum in method as argument c# 
Csharp :: unity camera movement script 
Csharp :: c# replace characters in string that are invalid using regex 
Csharp :: asp.net core user.identity.name is null 
Csharp :: DefaultContractResolver .net exclude null values JsonSerializerSettings ContractResolver DefaultContractResolver 
Csharp :: difference between all logging framework .NET Core? 
Csharp :: card caption 
Csharp :: jtoken value is not exact double 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =