Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Exemple.aspx.cs" Inherits="Exemple" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <form id="form1" runat="server"> </form> </html>
using System; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class Exemple : System.Web.UI.Page { public void Page_Load (object sender, EventArgs e) {} public void btnDoIt_Click(object sender, EventArgs e) { Page.ClientScript.RegisterClientScriptBlock( this.GetType(), "alert_doit", "alert('you wrote : " + txtValue.Text + "');", true); } }