Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8317401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:35:22+00:00 2026-06-08T21:35:22+00:00

I have the following HyperLink: <asp:HyperLink ID=Link1 runat=server NavigateUrl=~/pros.aspx?proid={0} Text=<%#CObj(Eval(ProID))%> DataNavigateUrlFields=<%#CObj(Eval(ProID))%> /> The result

  • 0

I have the following HyperLink:

    <asp:HyperLink ID="Link1" runat="server" NavigateUrl="~/pros.aspx?proid={0}"  Text=<%#CObj(Eval("ProID"))%>  DataNavigateUrlFields=<%#CObj(Eval("ProID"))%> />

The result is that I get a hyperlink that shows the current ID

 9855555

but when I hover over it, it shows the following url:

    http://localhost/CDDDev/pros.aspx?proid={0}

I wanted the {0} to be populated with the actual ProID

As such, I wanted it to show something like:

    http://localhost/CDDDev/pros.aspx?proid=9855555
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T21:35:24+00:00Added an answer on June 8, 2026 at 9:35 pm

    Try using String.format in the NavigateUrl property:

    NavigateUrl='<%# String.Format("~/pros.aspx?proid={0}", Eval("ProID").ToString())%>'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have following asp hyperlink: <asp:HyperLink ID=a runat=server Text=return NavigateUrl=https://google.com/></asp:HyperLink > What i want
I have used following code : <asp:HyperLink ID=Time runat=server Text='<%#Eval(CREATED_ON)%>'> </asp:HyperLink> It will display
On an aspx page I have following hyperlink: <asp:HyperLink ID=HyperLink1 runat=server NavigateUrl=#Bottom CssClass=ToBottom>To Bottom
I have following hyperlink in asp.net: <asp:HyperLink ID=a runat=server ImageUrl=1.png NavigateUrl=https://google.com/></asp:HyperLink> I want to
I have the following code in a ASP.NET master page: <div id=hyperlinkimage><asp:HyperLink ID=SomeHyperLink runat=Server
I have several links that look like the following: <ul> <li><asp:HyperLink ID=lnk1 NavigateUrl=~/section/sub-section/page1 runat=server>My
I have the following HyperLinkField: <asp:HyperLinkField DataTextField=SysID DataNavigateUrlFields=SysID DataNavigateUrlFormatString=pgmtasklist.aspx?sysid={0} Text=Click Here /> I need
I have following aspx page called search.aspx: <div id=wrap> <div id=menu> <div id=t_menus runat=server>
I have the following code in my page file: <td style= text-align:center> <asp:HyperLink ID=HyperLink1
ok the following is the code for the gridview: <asp:GridView ID=GridView1 runat=server AutoGenerateColumns=False BorderColor=#3399FF

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.