miércoles, 28 de abril de 2010

Llamar code behind desde javascrpit

----------------------
Enable Page Methods on your ScriptManager

Set the EnablePageMethods attribute to true
-------------------------------
En el code behind:

[System.Web.Services.WebMethod]
public static string ValidateCreditCard(string creditCardNumber)
{
return creditCardNumber;
}
-------------------------------------
código en javascript:

----------------------------------------------------
y ejecutar desde un control:









Credit Card Number





PROBAR

-------------------------------------

POR EL MOMENTO PARA VISUALIZAR EDITAR LA ENTRADA

No hay comentarios: