I have a datagrid with a hyperlink field. It passes a parameter but I need
it to pass two. I need two of the parameters to be querystrings but I have no idea how to add them the hyperlink column if any one know about this then please help me .
here is my code:
[HTML]
<asp:datagrid id="DataGrid1" runat="server" AutoGenerateColumns="False" AlternatingItemStyle-BorderStyle="Dotted" BorderColor="Black" BorderStyle="Solid" Width="650px">
<AlternatingItemStyle BorderStyle="Dotted"></AlternatingItemStyle>
<Columns>
<asp:BoundColumn DataField="NominatedByfirstname" HeaderText="Nominated By First name">
<HeaderStyle Font-Size="10pt" Font-Bold="True" ForeColor="White" BackColor="#316AC5"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="NominatedByLastName" HeaderText="Nominated By Last Name">
<HeaderStyle Font-Size="10pt" Font-Bold="True" ForeColor="White" BackColor="#316AC5"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="NomineefirstName" HeaderText="Nominee First Name">
<HeaderStyle Font-Size="10pt" Font-Bold="True" ForeColor="White" BackColor="#316AC5"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="NomineeLastName" HeaderText="Nominee Last Name">
<HeaderStyle Font-Size="10pt" Font-Bold="True" ForeColor="White" BackColor="#316AC5"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="NomineeDept" HeaderText="Nominee Dept">
<HeaderStyle Font-Size="10pt" Font-Bold="True" ForeColor="White" BackColor="#316AC5"></HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="DateCreated" HeaderText="Date Created">
<HeaderStyle Font-Size="10pt" Font-Bold="True" ForeColor="White" BackColor="#316AC5"></HeaderStyle>
</asp:BoundColumn>
<asp:HyperLinkColumn Text="Detail" HeaderStyle-BackColor="#316AC5" HeaderText="Detail" HeaderStyle-ForeColor="White" HeaderStyle-Font-Bold="True" DataNavigateUrlField="employeenominationid" DataNavigateUrlFormatString="Reasonfornominating.a spx?employeenominationid={0}"></asp:HyperLinkColumn>
</Columns>
</asp:datagrid>
[/HTML]