<asp:Repeater ID="repEmpHeadings" OnItemCommand="repEmpHeadings_ItemCommand" runat="server" OnItemDataBound="repEmpHeadings_ItemDataBound"> <ItemTemplate> <div onclick="<%# getPostbackReference((string) Eval("CalibrationProfileId").ToString() + ";" +Eval("EmpCalibrationHeadingId").ToString() + ";" + Eval("HeadingId").ToString() ) %>"> <%# Container.DataItem %> <div></div> <div></div> <div></div> </div> </ItemTemplate> </asp:Repeater>
if (IsPostBack) { string arg = Request["__EVENTARGUMENT"]; if (string.IsNullOrEmpty(arg) == false) { if (arg.StartsWith("row")) { string[] arg1 = new string[3]; arg1 = arg.Substring(arg.IndexOf("#") + 1).ToString().Split(';'); string v = arg.Substring(arg.IndexOf("#") + 1); mpCompetencyDetails.Show(); EditMidYearCompetencyDetails(Convert.ToInt32(arg1[0]), Convert.ToInt32(arg1[1]), Convert.ToInt32(arg1[2])); } } }
protected string getPostbackReference(string Name) { return ClientScript.GetPostBackEventReference(this, "rowEvent#" + Name); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)