I think this may help, however I don't need to output that variable, I
need to calculate that variable before I can output the variable that
will be displayed on a page. My problem really is this....in cold
fusion I could do this:
<cfquery name="getNums" datasource="#dsn#">
SELECT num1, num2 FROM NUMBERS
</cfquery>
<cfset tempNum = 2>
<cfoutput query="getNums">
<cfset tempNum = tempNum * num1>
<cfset tempNum2 = tempNum / num2>
Display TempNum2: #tempNum2#
</cfoutput>
Basically I am trying to do the same type of think with asp.net
----- Original Message -----
From: zazo_zazo70 <[EMAIL PROTECTED]>
Date: Thu, 30 Sep 2004 08:23:00 -0000
Subject: [AspNetAnyQuestionIsOk] Re:setting variables within an
AlternatingItemTemplate...possible?
To: [EMAIL PROTECTED]
Hi,
As i can understand that you are trying to display a text, so Change
this line of code
<AlternatingItemTemplate>
<%
Dim p_requirment as double
p_requirment.text = ceiling(amps /
((DataBinder.Eval(Container.DataItem, "nom_cell_cap") *
DataBinder.Eval(Container.DataItem, "battery_c_rating"))/1000))
%>
to the following
<tr>
<td>
<asp:Label Runat=server Text='<%FunctionToCall(DataBinder.Eval
(Container.DataItem, "nom_cell_cap"),DataBinder.Eval
(Container.DataItem, "battery_c_rating"))%>'>
</asp:Label>
</td>
</tr>
and in the codeBehind wirte a public function with the exactName
which accepts two paramter and return a string
HTH
Best Regards
Mohamed Zahra
Yahoo! Groups Sponsor
ADVERTISEMENT
________________________________
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/