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 8723753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:41:48+00:00 2026-06-13T07:41:48+00:00

I have been creating an order status ASPX page that shows the Date, Carrier,

  • 0

I have been creating an order status ASPX page that shows the Date, Carrier, Customer and Tracking Number. The data on this page is generated by a search form where the user can search either via the date or the customer’s name. In our SQL Database, for Tracking Number, it only contains the numerical number such as “759102160484401” (Random FedEx Tracking Number). Whenever a search is pulled up I wanted to hyperlink these to the proper tracking papers respectively to each Shipping company. The current output is as follows:

10/8/2012 — FEDEX — JAMES FRANCO — 759102160484401

Now The Problem. We have the current DataNavigateUrlFormatString set to a FedEx url. We would like this to alternate to the UPS link when it detects that the SQL field for Carrier says “UPS”. How would I accomplish this? Below is the current line for the Tracking number column for the Tracking.aspx file.

<asp:HyperLinkField DataTextField="TRACKNUM" DataNavigateUrlFields="TRACKNUM" HeaderText="Tracking#" Target="_blank" Text="Tracking#"
                    DataNavigateUrlFormatString="http://www.fedex.com/Tracking?clienttype=dotcom&ascend_header=1&cntry_code=us&language=english&mi=n&tracknumbers={0}"
                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" />

Hope this is detailed and much 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-06-13T07:41:49+00:00Added an answer on June 13, 2026 at 7:41 am

    In outline form,

    Register an event on OnRowDataBound (Same concept for other databinding controls)
    http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.onrowdatabound.aspx

    Extract from the row the HyperLinkField. Usually using FindControl on the .Row property of the event, or sometimes .Row[x] where x is the index of the cell that holds your control.

    Set the DataNavigateUrlFormatString to one string or another depending on what ever lets you know if you need a fedex or ups url.

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

Sidebar

Related Questions

I have been creating a peer to peer connection for a new game, that
So i have been creating this framework thing that basically puts together source code
I have been reading that creating dependencies by using static classes/singletons in code, is
I have been creating a date range, but in some cases a have a
I am currently creating an order form. However, I have been stuck at the
I am currently creating an order form. However, I have been stuck at the
I have been creating a helper class for the Facebook PHP API in order
I have been working on creating a kpi that compares the rank of a
In the past years I have been working on different projects that required creating
I have been creating a php application that makes quite a few queries to

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.