Re: asp.net question:
- From: "Chris Westbrook" <westbc@xxxxxxxxx>
- To: <programmingblind@xxxxxxxxxxxxx>
- Date: Sun, 30 Mar 2008 11:21:50 -0400
You may have to concatinate the string for the navigate url and set it in the
page_load event in code.
----- Original Message -----
From: Charles E. Black
To: programmingblind@xxxxxxxxxxxxx
Sent: Saturday, March 29, 2008 11:17 PM
Subject: 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('Subject')%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
- References:
- asp.net question:
- From: Charles E. Black
Other related posts:
- » asp.net question:
- » Re: asp.net question:
- » RE: asp.net question:
- » Re: asp.net question:
- » asp.net question:
- » Re: asp.net question:
- » Re: asp.net question:
- asp.net question:
- From: Charles E. Black