本文整理匯總了C#中Cliente.listarClienteSimilares方法的典型用法代碼示例。如果您正苦於以下問題:C# Cliente.listarClienteSimilares方法的具體用法?C# Cliente.listarClienteSimilares怎麽用?C# Cliente.listarClienteSimilares使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Cliente
的用法示例。
在下文中一共展示了Cliente.listarClienteSimilares方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: HttpCookie
/*protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
if (!Context.User.Identity.IsAuthenticated)
{
//FormsAuthentication.RedirectToLoginPage("Login_Usuario.aspx");
Response.Redirect("Login_Usuario.aspx");
}
else
{
HttpCookie dato = new HttpCookie("dato");
Label lblmuni = GridView1.SelectedRow.FindControl("lblMunicipio") as Label;
dato.Values["local"] = lblmuni.Text;
dato.Values["ruc"] = Request.QueryString.Get("m");
Response.Cookies.Add(dato);
ClientScript.RegisterStartupScript(this.GetType(), "myScript", "<script>javascript:a();</script>");
}
}*/
// Grilla anidados
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
Cliente cli = new Cliente();
if (e.Row.RowType == DataControlRowType.DataRow)
{
//string codusuario = e.Row.Cells[1].Text;
GridView grilla = (GridView)e.Row.FindControl("GridView2");
string ciudad = (e.Row.FindControl("lblCiudad") as Label).Text;
grilla.DataSource = cli.listarClienteSimilares(ciudad);
grilla.DataBind();
}
}