Click here to Skip to main content
15,914,500 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
Here i have many <asp:hyperlink> control and single destination page .So that i want pass 2 values from source page to navigate page using navigateUrl property.Both values are not dynamic i.e type="Bugs" and status="Active" OR type="Requirement" and status="Active"
OR type="Bugs"and status="Closed" and much more.

What I have tried:

<asp:HyperLink ID="HyperLink2" runat="server" Font-Bold="True" Height="22px"
             Font-Size="Small" NavigateUrl="frmCompliantView.aspx?type=Bugs">Active Bugs</asp:HyperLink>

Here i have pass single value but i want to 2 or more values like type,status etc .
Then how can i do that?

Please guide me.
Thanks in advance
Posted
Comments
SujataJK 3-Oct-17 1:56am    
I had also tried like this(using Hiddenfield)

<asp:HiddenField ID="hdtype" Value="Bugs" runat="server" />
<asp:HiddenField ID="hdstattus" Value="Active" runat="server" />
<asp:HyperLink id="hyperlink2"

NavigateUrl='<%# string.Format("~/frmCompliantView.aspx?&type={0}&status={1}",Eval("hdtype"),Eval("hdstattus")) %>'
Text="Active Bugs" runat="server"/>
but it's not working.
Karthik_Mahalingam 3-Oct-17 2:44am    
is the value (type and status) fixed or it will change?
SujataJK 3-Oct-17 2:52am    
it means when i am going click on ActiveBugs hyperlink then it will be type=="Bugs" and status="Active".Like that i have several hyperlink as follwoing

1.ActiveBugs here type="Bugs" and status="Active"
2.ResolevdBugs here type="Bugs" and status="Closed"
3.ActiveRequirement here type="Requirement" and status="Active"
4.ResolevdRequirement here type="Requirement" and status="Closed".

Karthik_Mahalingam 3-Oct-17 3:49am    
is that hardcoded ?
Atlapure Ambrish 3-Oct-17 3:04am    
Have you tried this https://stackoverflow.com/questions/3594143/dynamically-set-hyperlink-controls-navigateurl-property-inline

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900