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" AutoGenerateCol umns="False" AlternatingItem Style-BorderStyle="Do tted" BorderColor="Bl ack" BorderStyle="So lid" Width="650px">
<AlternatingIte mStyle BorderStyle="Do tted"></AlternatingItem Style>
<Columns>
<asp:BoundColum n DataField="Nomi natedByfirstnam e" HeaderText="Nom inated By First name">
<HeaderStyle Font-Size="10pt" Font-Bold="True" ForeColor="Whit e" BackColor="#316 AC5"></HeaderStyle>
</asp:BoundColumn >
<asp:BoundColum n DataField="Nomi natedByLastName " HeaderText="Nom inated By Last Name">
<HeaderStyle Font-Size="10pt" Font-Bold="True" ForeColor="Whit e" BackColor="#316 AC5"></HeaderStyle>
</asp:BoundColumn >
<asp:BoundColum n DataField="Nomi neefirstName" HeaderText="Nom inee First Name">
<HeaderStyle Font-Size="10pt" Font-Bold="True" ForeColor="Whit e" BackColor="#316 AC5"></HeaderStyle>
</asp:BoundColumn >
<asp:BoundColum n DataField="Nomi neeLastName" HeaderText="Nom inee Last Name">
<HeaderStyle Font-Size="10pt" Font-Bold="True" ForeColor="Whit e" BackColor="#316 AC5"></HeaderStyle>
</asp:BoundColumn >
<asp:BoundColum n DataField="Nomi neeDept" HeaderText="Nom inee Dept">
<HeaderStyle Font-Size="10pt" Font-Bold="True" ForeColor="Whit e" BackColor="#316 AC5"></HeaderStyle>
</asp:BoundColumn >
<asp:BoundColum n DataField="Date Created" HeaderText="Dat e Created">
<HeaderStyle Font-Size="10pt" Font-Bold="True" ForeColor="Whit e" BackColor="#316 AC5"></HeaderStyle>
</asp:BoundColumn >
<asp:HyperLinkC olumn Text="Detail" HeaderStyle-BackColor="#316 AC5" HeaderText="Det ail" HeaderStyle-ForeColor="Whit e" HeaderStyle-Font-Bold="True" DataNavigateUrl Field="employee nominationid" DataNavigateUrl FormatString="R easonfornominat ing.aspx?employ eenominationid= {0}"></asp:HyperLinkCo lumn>
</Columns>
</asp:datagrid>
[/HTML]
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" AutoGenerateCol umns="False" AlternatingItem Style-BorderStyle="Do tted" BorderColor="Bl ack" BorderStyle="So lid" Width="650px">
<AlternatingIte mStyle BorderStyle="Do tted"></AlternatingItem Style>
<Columns>
<asp:BoundColum n DataField="Nomi natedByfirstnam e" HeaderText="Nom inated By First name">
<HeaderStyle Font-Size="10pt" Font-Bold="True" ForeColor="Whit e" BackColor="#316 AC5"></HeaderStyle>
</asp:BoundColumn >
<asp:BoundColum n DataField="Nomi natedByLastName " HeaderText="Nom inated By Last Name">
<HeaderStyle Font-Size="10pt" Font-Bold="True" ForeColor="Whit e" BackColor="#316 AC5"></HeaderStyle>
</asp:BoundColumn >
<asp:BoundColum n DataField="Nomi neefirstName" HeaderText="Nom inee First Name">
<HeaderStyle Font-Size="10pt" Font-Bold="True" ForeColor="Whit e" BackColor="#316 AC5"></HeaderStyle>
</asp:BoundColumn >
<asp:BoundColum n DataField="Nomi neeLastName" HeaderText="Nom inee Last Name">
<HeaderStyle Font-Size="10pt" Font-Bold="True" ForeColor="Whit e" BackColor="#316 AC5"></HeaderStyle>
</asp:BoundColumn >
<asp:BoundColum n DataField="Nomi neeDept" HeaderText="Nom inee Dept">
<HeaderStyle Font-Size="10pt" Font-Bold="True" ForeColor="Whit e" BackColor="#316 AC5"></HeaderStyle>
</asp:BoundColumn >
<asp:BoundColum n DataField="Date Created" HeaderText="Dat e Created">
<HeaderStyle Font-Size="10pt" Font-Bold="True" ForeColor="Whit e" BackColor="#316 AC5"></HeaderStyle>
</asp:BoundColumn >
<asp:HyperLinkC olumn Text="Detail" HeaderStyle-BackColor="#316 AC5" HeaderText="Det ail" HeaderStyle-ForeColor="Whit e" HeaderStyle-Font-Bold="True" DataNavigateUrl Field="employee nominationid" DataNavigateUrl FormatString="R easonfornominat ing.aspx?employ eenominationid= {0}"></asp:HyperLinkCo lumn>
</Columns>
</asp:datagrid>
[/HTML]
Comment