protected void repDealerNotActive_ItemDataBound(object sender, RepeaterItemEventArgs e) { if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem)) { HyperLink hlEdit = (HyperLink)e.Item.FindControl("hlEdit"); hlEdit.NavigateUrl = Page.ResolveUrl("~/editdealerprofile.aspx?id=" + ocommon.Encrypt(DataBinder.Eval(e.Item.DataItem, "did").ToString(), true)); } }
protected void repTodayOrder_ItemDataBound(object sender, RepeaterItemEventArgs e) { if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem)) { //HyperLink hlDealerImage = (HyperLink)e.Item.FindControl("hlDealerImage"); //hlDealerImage.Attributes.Add("src", "http://moryaapp.moryatools.com/uploads/orderimage/" + DataBinder.Eval(e.Item.DataItem, "dealerimage").ToString()); //HyperLink hlMoryaImage = (HyperLink)e.Item.FindControl("hlMoryaImage"); //hlMoryaImage.NavigateUrl = Page.ResolveUrl("~/ordermoryainvoice.aspx?oid=" + ocommon.Encrypt(DataBinder.Eval(e.Item.DataItem, "oid").ToString(), true)); HyperLink hlEditOrder = (HyperLink)e.Item.FindControl("hlEditOrder"); hlEditOrder.NavigateUrl = Page.ResolveUrl("~/ManualOrder.aspx?oid=" + ocommon.Encrypt(DataBinder.Eval(e.Item.DataItem, "oid").ToString(), true)); HyperLink hlInvoice = (HyperLink)e.Item.FindControl("hlInvoice"); hlInvoice.NavigateUrl = Page.ResolveUrl("~/Customer_orderinvoice.aspx?oid=" + ocommon.Encrypt(DataBinder.Eval(e.Item.DataItem, "oid").ToString(), true)); } }
protected void repWebSiteUser_ItemDataBound(object sender, RepeaterItemEventArgs e) { if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem)) { HyperLink hlEdit = (HyperLink)e.Item.FindControl("hlEdit"); hlEdit.NavigateUrl = Page.ResolveUrl("~/addeditwebuser.aspx?id=" + ocommon.Encrypt(DataBinder.Eval(e.Item.DataItem, "adminid").ToString(), true)); } }
protected void repCompany_ItemDataBound(object sender, RepeaterItemEventArgs e) { if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem)) { HyperLink hlEdit = (HyperLink)e.Item.FindControl("hlEdit"); //Image imgCompany = (Image)e.Item.FindControl("imgCompany"); //imgCompany.ImageUrl = DataBinder.Eval(e.Item.DataItem, "imagename").ToString(); hlEdit.NavigateUrl = Page.ResolveUrl("~/addeditbrand.aspx?id=" + ocommon.Encrypt(DataBinder.Eval(e.Item.DataItem, "id").ToString(), true)); } }
protected void repNews_ItemDataBound(object sender, RepeaterItemEventArgs e) { if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem)) { HyperLink hlEdit = (HyperLink)e.Item.FindControl("hlEdit"); Image imgNews = (Image)e.Item.FindControl("imgNews"); imgNews.ImageUrl = newsFrontPath + DataBinder.Eval(e.Item.DataItem, "imagename").ToString(); hlEdit.NavigateUrl = Page.ResolveUrl("~/addeditnews.aspx?id=" + ocommon.Encrypt(DataBinder.Eval(e.Item.DataItem, "newsupdateid").ToString(), true)); } }
protected void repBank_ItemDataBound(object sender, RepeaterItemEventArgs e) { if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem)) { HyperLink hlEdit = (HyperLink)e.Item.FindControl("hlEdit"); hlEdit.NavigateUrl = Page.ResolveUrl("~/addeditEmployee.aspx?id=" + ocommon.Encrypt(DataBinder.Eval(e.Item.DataItem, "id").ToString(), true)); Image imgCategory = (Image)e.Item.FindControl("imgProfile"); imgCategory.ImageUrl = agentFrontPath + DataBinder.Eval(e.Item.DataItem, "img").ToString(); } }
protected void repCategory_ItemDataBound(object sender, RepeaterItemEventArgs e) { if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem)) { //DropDownList ddlSeqNo = (DropDownList)e.Item.FindControl("ddlSeqNo"); //Image imgCategory = (Image)e.Item.FindControl("imgCategory"); HyperLink hlEdit = (HyperLink)e.Item.FindControl("hlEdit"); hlEdit.NavigateUrl = Page.ResolveUrl("~/addeditfarmer.aspx?id=" + ocommon.Encrypt(DataBinder.Eval(e.Item.DataItem, "id").ToString(), true)); //imgfarmer.ImageUrl = FarmerFrontPath + DataBinder.Eval(e.Item.DataItem, "img").ToString(); } }
protected void repCategory_ItemDataBound(object sender, RepeaterItemEventArgs e) { if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem)) { //DropDownList ddlSeqNo = (DropDownList)e.Item.FindControl("ddlSeqNo"); //Image imgCategory = (Image)e.Item.FindControl("imgCategory"); HyperLink hlEdit = (HyperLink)e.Item.FindControl("hlEdit"); hlEdit.NavigateUrl = Page.ResolveUrl("~/addeditExpenseMaster.aspx?id=" + ocommon.Encrypt(DataBinder.Eval(e.Item.DataItem, "eid").ToString(), true)); //imgCategory.ImageUrl = categoryFrontPath + DataBinder.Eval(e.Item.DataItem, "imagename").ToString(); //Fill_SeqNo(Convert.ToInt64(DataBinder.Eval(e.Item.DataItem, "SeqNo")), Convert.ToInt64(DataBinder.Eval(e.Item.DataItem, "MaxSeqNo")), ref ddlSeqNo); } }
protected void repScheme_ItemDataBound(object sender, RepeaterItemEventArgs e) { if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem)) { Image imgOffer = (Image)e.Item.FindControl("imgOffer"); HyperLink hlEdit = (HyperLink)e.Item.FindControl("hlEdit"); hlEdit.NavigateUrl = Page.ResolveUrl("~/addeditoffer.aspx?id=" + ocommon.Encrypt(DataBinder.Eval(e.Item.DataItem, "offerid").ToString(), true)); if (DataBinder.Eval(e.Item.DataItem, "imagename").ToString() != string.Empty) { imgOffer.ImageUrl = OfferFrontPath + DataBinder.Eval(e.Item.DataItem, "imagename").ToString(); } } }
protected void repTodayOrder_ItemDataBound(object sender, RepeaterItemEventArgs e) { if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem)) { HyperLink hlDealerImage = (HyperLink)e.Item.FindControl("hlDealerImage"); hlDealerImage.Attributes.Add("src", "http://moryaapp.moryatools.com/uploads/orderimage/" + DataBinder.Eval(e.Item.DataItem, "dealerimage").ToString()); HyperLink hlMoryaImage = (HyperLink)e.Item.FindControl("hlMoryaImage"); hlMoryaImage.NavigateUrl = Page.ResolveUrl("~/ordermoryainvoice.aspx?oid=" + ocommon.Encrypt(DataBinder.Eval(e.Item.DataItem, "oid").ToString(), true)); HyperLink hlInvoice = (HyperLink)e.Item.FindControl("hlInvoice"); hlInvoice.NavigateUrl = Page.ResolveUrl("~/orderinvoice.aspx?oid=" + ocommon.Encrypt(DataBinder.Eval(e.Item.DataItem, "oid").ToString(), true)); HyperLink hlPayment = (HyperLink)e.Item.FindControl("hlPayment"); hlPayment.NavigateUrl = Page.ResolveUrl("~/frm_Payment.aspx?oid=" + ocommon.Encrypt(DataBinder.Eval(e.Item.DataItem, "oid").ToString(), true)); Label lblRemaining = (Label)e.Item.FindControl("lblRemaining"); if (Convert.ToDouble(lblRemaining.Text) == 0) { hlPayment.Visible = false; } else { hlPayment.Visible = true; } //---------dropbox----------- Label l_orderId = (Label)e.Item.FindControl("lbl_orderstatus"); DropDownList d = (DropDownList)e.Item.FindControl("ddlOrderStatus"); d.DataSource = load_orderStatus(); d.DataBind(); d.SelectedValue = l_orderId.Text; //d.SelectedValue = DirectCast(e.Item.DataItem, DataRowView)("ContactTypeID").ToString() } }
protected void repProduct_ItemDataBound(object sender, RepeaterItemEventArgs e) { if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem)) { Image imgProduct = (Image)e.Item.FindControl("imgProduct"); DropDownList ddlSeqNo = (DropDownList)e.Item.FindControl("ddlSeqNo"); HyperLink hlAddImageVideo = (HyperLink)e.Item.FindControl("hlAddImageVideo"); HyperLink hlEdit = (HyperLink)e.Item.FindControl("hlEdit"); hlEdit.NavigateUrl = Page.ResolveUrl("~/addeditproduct.aspx?page=stock&id=" + ocommon.Encrypt(DataBinder.Eval(e.Item.DataItem, "pid").ToString(), true)); hlAddImageVideo.NavigateUrl = Page.ResolveUrl("~/addeditproductmultipleimages.aspx?page=stock&id=" + ocommon.Encrypt(DataBinder.Eval(e.Item.DataItem, "pid").ToString(), true)); imgProduct.ImageUrl = productFrontPath + DataBinder.Eval(e.Item.DataItem, "mainimage").ToString(); Fill_SeqNo(Convert.ToInt64(DataBinder.Eval(e.Item.DataItem, "SeqNo")), Convert.ToInt64(DataBinder.Eval(e.Item.DataItem, "MaxSeqNo")), ref ddlSeqNo); } }
protected void repProduct_ItemDataBound(object sender, RepeaterItemEventArgs e) { if ((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem)) { Label srno = (Label)e.Item.FindControl("lblsrno"); srno.Text = count.ToString(); count++; HyperLink hlEdit = (HyperLink)e.Item.FindControl("hlEdit"); hlEdit.NavigateUrl = Page.ResolveUrl("~/addeditcollectionproduct.aspx?id=" + ocommon.Encrypt(DataBinder.Eval(e.Item.DataItem, "id").ToString(), true)); } }