Re: How to Join a table with Other (result) Tables ? Complex one
- From: "velu" <velu@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 31 Aug 2005 04:42:03 -0700
Thx Guys, i found out..
Private Sub DataGrid1_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs) Handles
DataGrid1.ItemDataBound
If ((e.Item.ItemType <> ListItemType.Header) And (e.Item.ItemType <>
ListItemType.Footer)) Then
Dim MyLabel As Label
MyLabel = CType(e.Item.FindControl("lblStarRating"), Label)
Dim i As Int32
i = Convert.ToInt32(e.Item.Cells(3).Text)
Dim j As Int32 = 0
MyLabel.Text = ""
If i <= 0 Then
MyLabel.Text = "Be the first to rate it!"
Else
For j = 1 To i
'MyLabel.Text += "*"
MyLabel.Text += "<IMG id='IMG1' src='stars.gif' >"
Next
End If
End If
very simple instead of "*" i have placed the html tag to include the image...
Thx a lot for you help
.
- References:
- How to Join a table with Other (result) Tables ? Complex one !
- From: velu
- Re: How to Join a table with Other (result) Tables ? Complex one !
- From: Steve Kass
- Re: How to Join a table with Other (result) Tables ? Complex one
- From: velu
- Re: How to Join a table with Other (result) Tables ? Complex one
- From: Hugo Kornelis
- Re: How to Join a table with Other (result) Tables ? Complex one
- From: velu
- How to Join a table with Other (result) Tables ? Complex one !
- Prev by Date: Join syntax?
- Next by Date: about query ..
- Previous by thread: Re: How to Join a table with Other (result) Tables ? Complex one
- Next by thread: Query needs to loop?
- Index(es):
Relevant Pages
|
|