Thanks in advance for any help you can give me on this.
I am trying to include the value from a request.queryst ring in the
DataNavigateUrl FormatString
I am able to include one of the values which comes from the database
to make a link with the syntax
http://server/work_order.asp?WorkOrd...45678&Site=NYC but I cannot
get the NYC value to work from a request.queryst ring when submitted
from http://server/default.aspx?Site=NYC
<asp:GridView ID="GridView1" runat="server"
AutoGenerateCol umns="False"
DataSourceID="S qlDataSource1" CellPadding="4"
Font-Size="Small" ForeColor="#333 333" GridLines="None ">
<Columns>
<asp:HyperLinkF ield
DataNavigateUrl Fields="Work_Or der"
DataNavigateUrl FormatString="h ttp://server/work_order.asp? WorkOrder={0}&a mp;Site="
DataTextField=" Work_Order"
HeaderText="Lin kField"
Target="_blank" />
DataNavigateUrl FormatString="h ttp://server/work_order_prin t.asp?WorkOrder ={0}&Site=< %=Site
%>"
Becomes
<a
href="http://server/work_order.asp? WorkOrder=12345 678&Site=&l t;%=Site
%>
If I try
DataNavigateUrl FormatString="h ttp://server/work_order.asp? WorkOrder={0}&a mp;Site="
+ <%=Site %>
It errors with
DataNavigateUrl FormatString="h ttp://server/work_order.asp? WorkOrder={0}&a mp;Site="
+') is not allowed within a
'System.Web.UI. WebControls.Dat aControlFieldCo llection'.
Line 27:
DataNavigateUrl FormatString="h ttp://server/work_order.asp. asp?WorkOrder={ 0}&Site="
+ <%=Site %>
Thanks again from a new asp.net user.