N
Nathan Sokalski
I am using a SortedList as my DataSource. However, one of the things I am
using the data for is to generate the URL for the HyperLinks in my DataList.
Therefore, I need to use the result of a Server.UrlEncode() method with the
data as the parameter. The code I am using to get the data from the
SortedList (which successfully gives me the expected value) is:
<%# DataBinder.Eval(Container, "DataItem.Key") %>
However, when I try to modify this to be used as the parameter for the
Server.UrlEncode() (or any other method and/or function), I recieve an
error. Is there a way to do what I want and still use the DataList? Thanks.
using the data for is to generate the URL for the HyperLinks in my DataList.
Therefore, I need to use the result of a Server.UrlEncode() method with the
data as the parameter. The code I am using to get the data from the
SortedList (which successfully gives me the expected value) is:
<%# DataBinder.Eval(Container, "DataItem.Key") %>
However, when I try to modify this to be used as the parameter for the
Server.UrlEncode() (or any other method and/or function), I recieve an
error. Is there a way to do what I want and still use the DataList? Thanks.