asp.net question:

I have some code that is supposed to form a link with string uery at the
end.  It is not placing the correct code in the http request.  It is taking
the code and putting something strange in the http request.  I am sure I am
doing something wrong!  Can someone look at the code below and correct my
oversite.
 
    <asp:DataList ID="DataList1" runat="server" CellPadding="4"
DataSourceID="SqlDataSource1"
        ForeColor="#333333" Style="z-index: 84; left: 0px; position:
absolute; top: 0px">
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White"
/>
        <AlternatingItemStyle BackColor="White" />
        <ItemStyle BackColor="#E3EAEB" />
        <SelectedItemStyle BackColor="#C5BBAF" Font-Bold="True"
ForeColor="#333333" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White"
/>
        <ItemTemplate>
            <asp:Label ID="SubjectLabel" runat="server" Text='<%#
Eval("Subject") %>'></asp:Label><br />
            <asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl="messages.aspx?PassCode=<%# Eval('Subject') %>" Text='<%#
Eval("Subject") %>' />
            <br />
        </ItemTemplate>
    </asp:DataList>
 
The address line looks like this after one of the links is clicked:
 
http://localhost:1784/forumProject/messages.aspx?PassCode=<%#%20Eval('Subjec
t')%20%>
 
I tried several things but to no avail.
Charles Black
4127 Pinehaven Ct.
Columbia, SC  29205
Phone:  (803) 790-5586
Cell:   (803) 873-1698
 

Other related posts: