Ask a Question related to ASP.NET General, Design and Development.
-
Chris Fink #1
DataList Container
Hi,
My question is how do I set some text within my datalist itemtemplate to be
bold, based on the higher value of two bound data items? For example, if the
value of <%# Trim(Container.DataItem("points1") %> is greater than the
value of <%# Trim(Container.DataItem("points2") %> then I want to make the
value bold contained in <%# Trim(Container.DataItem("points1") %>. Any help
is appreciated.
Is it possible to compare the dataitem's with an IF statement within the
datalist?
Thanks
Chris Fink Guest
-
CSS Clear within container only
I have a 3 column design with the lfet and right columns floated and the center ones margins set to avoid the floats. I want to float something... -
Container
Can someone explain what the Container object is, and how it it related to data binding? I can't find any reference for it anywhere. Mike -
Controls container
Hi. I'm creating a .NET server component that inherit from Table (WebControls) class. It's a container that implement this html architecture... -
.pdf and Container field
Can you only store a .pdf file in a container field on a Windows machine. I am on a Mac and it won't let me do that. tia -- -
Container functions....
In a language that I used to program in - for development we used to be able to make a function that basically just executed everything inbetween:... -
Karl Seguin #2
Re: DataList Container
You can call a protected/public function and pass in the two parameters...
<%# IsGreater(Trim(Container.DataItem("points1"),
Trim(Container.DataItem("points2")) %>
protected function IsGreater(ByVal pt1 as string, byVal pt2 as string) as
string
'convert to ints, or pass them in as ints here
if pt1 > pt2 then
return "<b>" & pt1 & "</b>"
end if
return pt1
end function
"Chris Fink" <chris@chrisfink.com> wrote in message
news:uJBZOsLQDHA.3664@tk2msftngp13.phx.gbl...be> Hi,
>
> My question is how do I set some text within my datalist itemtemplate tothe> bold, based on the higher value of two bound data items? For example, ifthe> value of <%# Trim(Container.DataItem("points1") %> is greater than the
> value of <%# Trim(Container.DataItem("points2") %> then I want to makehelp> value bold contained in <%# Trim(Container.DataItem("points1") %>. Any> is appreciated.
>
> Is it possible to compare the dataitem's with an IF statement within the
> datalist?
>
> Thanks
>
>
Karl Seguin Guest



Reply With Quote

