Ellen Hu

Ellen Hu

  • NA
  • 63
  • 0

How can I get value from other site at Codebehind?

Dec 14 2009 6:59 PM
Hi All,

at my "Tag.ascx.cs" file

string myTag = String.Format(CultureInfo.InvariantCulture, "http://ec2-67-202-62-133.compute-1.amazonaws.com/index.php?key=8f6dd47c952c8c6b4937e345294cbc96&keyword={0}", tag.Name);

tag.Name will be gaven based on user's selection. Say we have tag.Name = "art" , then will have following URL:
http://ec2-67-202-62-133.compute-1.amazonaws.com/index.php?key=8f6dd47c952c8c6b4937e345294cbc96&keyword=art  (if you paste this URL on your browser, you will see:


[{"name": "Culture", "rank": 0.71720810000000002, "coef": 0.13953489999999999}, {"name": "Artist", "rank": 0.65750759999999997, "coef": 0.10000000000000001}, {"name": "Theater", "rank": 0.55500649999999996, "coef": 0.090909100000000007}, {"name": "Festival", "rank": 0.53509759999999995, "coef": 0.071428599999999995}, {"name": "Asian American", "rank": 0.53509759999999995, "coef": 0.071428599999999995}, {"name": "Diversity", "rank": 0.52829020000000004, "coef": 0.088235300000000003}, {"name": "PHOTOGRAPHY", "rank": 0.48868289999999998, "coef": 0.068965499999999999}, {"name": "HIP HOP", "rank": 0.42419839999999998, "coef": 0.064516100000000007}, {"name": "Theatre", "rank": 0.42419839999999998, "coef": 0.064516100000000007}, {"name": "Film", "rank": 0.39954709999999999, "coef": 0.0625}]

what I want to show on my "Tag.ascx" file is Culture, Artist, Theater, Festival, Asian American, Diversity, PHOTOGRAPHY, HIP HOP, Theatre, Film

How can I get this task done?

Thank you in advance for your time.

ellen


Answers (3)