Mideoan's Profile User Rating: -----

Reputation: 4 Apprentice
Group:
Active Members
Active Posts:
77 (0.06 per day)
Joined:
31-May 11
Profile Views:
2,899
Last Active:
User is offline Feb 20 2013 11:54 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   Mideoan has not set their status

Posts I've Made

  1. In Topic: ItemDataBound event when using HyperLinkColumn

    Posted 20 Feb 2013

    Found a solution. If anyone wants to reference this in the future, this was what I did.

            protected void grdOrders_ItemDataBound(object sender, DataGridItemEventArgs e)
            {
                if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
                {
    
                    HyperLink hl = e.Item.Cells[5].Controls[0] as HyperLink;
    
                    if (hl.Text.Contains("1Z"))
                    {
                        hl.NavigateUrl = "http://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=" + hl.Text.ToString();
                        
                    }
                    else
                    {
                        hl.NavigateUrl = "https://tools.usps.com/go/TrackConfirmAction_input?qtc_tLabels1=" + hl.Text.ToString();
                    }
    
                    
                }
    
    
            }
    


    Detects if it is UPS or USPS and links website passing query string of tracking number.

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

Mideoan hasn't added any friends yet.

Comments

Mideoan has no profile comments yet. Why not say hello?