Add data field to BasketBLL.vb for display on page

Posted By saturation Wed 24 Aug 2011
Add to Favorites0
Author Message
saturation
 Posted Wed 24 Aug 2011
Supreme Being

Supreme Being - (66,816 reputation)Supreme Being - (66,816 reputation)Supreme Being - (66,816 reputation)Supreme Being - (66,816 reputation)Supreme Being - (66,816 reputation)Supreme Being - (66,816 reputation)Supreme Being - (66,816 reputation)Supreme Being - (66,816 reputation)Supreme Being - (66,816 reputation)

Group: Forum Members
Last Active: Fri 30 Nov 2012
Posts: 108, Visits: 1,185
I need to add the version description field to the BasketBLL.vb so I can display it on the BasketView.ascx page.   I see where all the fields are declared near the top of that .vb file, but where else do I need to add it in order to call it and have it return the data inside the ascx page?
Mohammad
 Posted Wed 24 Aug 2011
Kartris Expert

Kartris Expert - (80,907 reputation)Kartris Expert - (80,907 reputation)Kartris Expert - (80,907 reputation)Kartris Expert - (80,907 reputation)Kartris Expert - (80,907 reputation)Kartris Expert - (80,907 reputation)Kartris Expert - (80,907 reputation)Kartris Expert - (80,907 reputation)Kartris Expert - (80,907 reputation)

Group: Administrators
Last Active: Sun 27 Sep 2015
Posts: 115, Visits: 706
Versions' description is not supported in the basket view, but you can follow the below steps to have it done:

1. Add a Literal control to BasketView.ascx inside the "rptBasket" control (see image1)
<asp:Literal ID="litVersionDescription" runat="server" Text="" />

2. Add code to get the version description to the BasketView.ascx.vb inside the "rptBasket_ItemDataBound" event (see image2)
Try
  Dim strDescription As String = LanguageElementsBLL.GetElementValue(Session("LANG"), 1, 2, objItem.VersionID)
  If strDescription <> "# -LE- #" Then CType(e.Item.FindControl("litVersionDescription"), Literal).Text = strDescription
Catch ex As Exception
  CType(e.Item.FindControl("litVersionDescription"), Literal).Text = ""
End Try
 image1.JPG (7 views, 117.12 KB)
 image2.JPG (7 views, 163.61 KB)
Wed 24 Aug 2011 by Mohammad
saturation
 Posted Thu 25 Aug 2011
Supreme Being

Supreme Being - (66,816 reputation)Supreme Being - (66,816 reputation)Supreme Being - (66,816 reputation)Supreme Being - (66,816 reputation)Supreme Being - (66,816 reputation)Supreme Being - (66,816 reputation)Supreme Being - (66,816 reputation)Supreme Being - (66,816 reputation)Supreme Being - (66,816 reputation)

Group: Forum Members
Last Active: Fri 30 Nov 2012
Posts: 108, Visits: 1,185
Thank you, this worked perfect!

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top