Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Null Hashtable value Question


Message #1 by "Carole D. Sullivan" <carolesullivan@e...> on Wed, 31 Jul 2002 23:01:01
I have a hashtable containing key/value pairs.

I would like to evaluate the contents of the output, located in a datagrid 
so I can put text 'Unknown' when the key is not found.

To change the datagrid output to my hashtable value I use:


----------------------------------------
<ItemTemplate>
<asp:Label runat="server" Text='<%# htGtnInfo(DataBinder.Eval
(Container, "DataItem.GTNNO")) %>' ID="Label2">
</asp:Label>	
</ItemTemplate>
----------------------------------------


in my aspx page, I am thinking my evaluation should also occur in the HTML 
portion of my aspx page.

Any help would be most appreciated.
Carole D. Sullivan

  Return to Index