Friday, July 8, 2011

Add alert Button in your asp.Net web page when process has been completed.

protected void Button1_Click(object sender, EventArgs e)
{

// Place the following code at the very end

string strMessage = "Process Complete";

string strScript = "<script language=JavaScript>";
strScript = (strScript + ("alert(\"" + (strMessage + "\");")));
strScript += "</script>";
if (!ClientScript.IsStartupScriptRegistered("clientScript"))
{
ClientScript.RegisterStartupScript(this.GetType(), "clientScript", strScript);
}

}

No comments:

Post a Comment

Your project is not referencing the "MonoAndroid,Version=v8.1" framework. Add a reference to "MonoAndroid,Version=v8.1" in the "frameworks" section of your project.json, and then re-run NuGet restore.

I had  the same problem. Reason: file obj/project.assets.json target "MonoAndroid,Version=v7.1" when my project target androi...