本文整理汇总了C#中WSGestion.WSGestion.UPD_Dueno方法的典型用法代码示例。如果您正苦于以下问题:C# WSGestion.WSGestion.UPD_Dueno方法的具体用法?C# WSGestion.WSGestion.UPD_Dueno怎么用?C# WSGestion.WSGestion.UPD_Dueno使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WSGestion.WSGestion
的用法示例。
在下文中一共展示了WSGestion.WSGestion.UPD_Dueno方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btn_guardar_ServerClick
protected void btn_guardar_ServerClick(object sender, EventArgs e)
{
try
{
if (FormAccion == "Agregar")
{
WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
WSGestion.MOD_Dueno obj = new WSGestion.MOD_Dueno();
obj.DUE_nombre = txt_nombre.Value;
obj.DUE_telefono = txt_telefono.Value;
obj.DUE_pais = txt_pais.Value;
obj.DUE_celular = txt_celular.Value;
obj.DUE_apellido1 = txt_apellido1.Value;
obj.DUE_apellido2 = txt_apellido2.Value;
obj.DUE_codigo_postal = txt_codigo_postal.Value;
obj.DUE_email = txt_email.Value;
obj.DUE_cuidad = txt_cuidad.Value;
wsgest.CRE_Dueno(obj);
Response.Redirect("frm_Grid_Dueno.aspx");
}
if (FormAccion == "Editar")
{
WSGestion.WSGestion wsgest = new WSGestion.WSGestion();
wsgest.Url = ConfigurationManager.AppSettings.Get("dirWs");
WSGestion.MOD_Dueno obj = new WSGestion.MOD_Dueno();
obj.DUE_nombre = txt_nombre.Value;
obj.DUE_telefono = txt_telefono.Value;
obj.DUE_pais = txt_pais.Value;
obj.DUE_celular = txt_celular.Value;
obj.DUE_apellido1 = txt_apellido1.Value;
obj.DUE_apellido2 = txt_apellido2.Value;
obj.DUE_codigo_postal = txt_codigo_postal.Value;
obj.DUE_cuidad = txt_cuidad.Value;
obj.DUE_email = txt_email.Value;
obj.DUE_id_dueno = Convert.ToInt32(txt_codigo.Value);
wsgest.UPD_Dueno(obj);
Response.Redirect("frm_Grid_Dueno.aspx");
}
}
catch (Exception exc)
{
Alert_Mensaje.Attributes["class"] = "alert alert-danger";
mensaje_alerta = exc.ToString();
titulo_mensaje_alerta = "Error: ";
Alert_Mensaje.Visible = true;
}
}