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

  • Home
  • SEARCH
  • 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 7577351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:09:48+00:00 2026-05-30T17:09:48+00:00

In my ASP.NET Web Forms I would like to get the DataNavigateUrlFields from the

  • 0

In my ASP.NET Web Forms I would like to get the DataNavigateUrlFields from the HyperLinkField control.

In order to get the control I use the following code in the RowDataBound event:

If e.Row.Cells(n).Controls(0).GetType().ToString() = "System.Web.UI.WebControls.HyperLink" Then
     Dim linkDownload As HyperLink = DirectCast(e.Row.Cells(n).Controls(0), HyperLink)

The problem is that I get an HyperLink already “filled” so the DataNavigateURLFormatString (myPage.aspx?downloadId = {0}) and DataNavigateUrlFields (downloadGuid) are already combined in the HyperLink.NavigateUrl property.

Is there any way to get the DataNavigateUrlFields property? In case there is not, is there any function to extract the downloadGuid value from HyperLink.NavigateUrl (in short treating the NavigateUrl as a QueryString)?

VB is preferred but also answers in C# are appreciated

  • 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-05-30T17:09:49+00:00Added an answer on May 30, 2026 at 5:09 pm

    If you got the url, you can use Url class to manipulate it. It also allows to extract parameters and values. There’s regexp option available too.

    But where’s downloadGuid in DataNavigateUrlFields (downloadGuid) coming from? You should get your bound object in the RowDataBound event parameters, if downloadGuid is the property, you can grap if from there.

    Anyways, full event code will certainly help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm quite a proficient ASP.Net Web Forms developer, but I would like to get
I would really like use the jQuery Validation plugin in my ASP.NET Web Forms
Im familiar with asp.net web forms. I would now like to move on to
In traditional ASP.NET (Web Forms), the UpdatePanel control lets you do a partial refresh
When building a multi-lingual website (with ASP.NET web forms), I'll use an HTTP module
In my asp.net web application, I'm using asp.net forms authentication with following configuration. <authentication
When using ASP.net webforms my usual solution would have following type of setup -
I have a asp.net web forms app that uses System.Web.Caching.Cache to cache xml data
Technologies involved : ASP.NET Web-forms Javascript (jQuery for instance) Case To make it clearer
I have a ASP.NET Web Forms application and I'm using some dynamic controls in

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.