Whenever I bind my descprtion url to the datasource it evaluates the item, but adds these weird "%20" in between.
I.E.
jelly%20fish
this code works perfectly when in my title attribute of my image i.e.
<li><asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<asp:Image ID="Image1" runat="server" ImageUrl='<%# "getImage.ashx?ImID="+ Eval("ID") %>' title='<%# Eval("imagename") %>' DescriptionUrl='<%# Eval("Description") %>' />
</ItemTemplate>
</asp:Repeater></li>
How do i decode this descriptionurl?
Here is my c# code:
SqlConnection connection = new SqlConnection(strcon);
string querystring = "SELECT image, description ,imagename, id from table where startdate <= CONVERT (date, SYSDATETIME())and endate >= CONVERT (date, SYSDATETIME())";
SqlCommand command = new SqlCommand(querystring, connection);
SqlDataAdapter daimages = new SqlDataAdapter(command);
DataTable dt = new DataTable();
daimages.Fill(dt);
Repeater1.DataSource = dt;
Repeater1.DataBind();