title: How I can get specific values from URL in ASP.NET
body: <p>How I can get specific values from the following URL I need to get only 3 values </p>
  
  <pre><code>http://earnprofitclickint.com/UserWorking/Successfull.aspx?lr_paidto=U9925362&amp;lr_amnt=2.00&amp;lr_currency=LRUSD&amp;lr_store=http%3A%2F%2Fwww.earnprofitclickint.com&amp;lr_merchant_ref=&amp;lr_paidby=U3563444&amp;lr_fee_amnt=0.00&amp;lr_transfer=143636187&amp;lr_timestamp=2013-12-05+18%3A31%3A33&amp;ctl00%24contentplaceholder1%24amount=&amp;ctl00%24contentplaceholder1%24id=70&amp;ctl00%24contentplaceholder1%24txtamount=+2&amp;ctl00%24contentplaceholder1%24username=networker&amp;lr_encrypted=04E20ADA982A2AF9C1C64DB3C1601BA596373E22D7B4D21813A51C43DC0198CD&amp;lr_encrypted2=59C8269D431F915360F3B8179EC95181D8C458AB91D72AF3DFC1DC0DFDAC4F64
  </code></pre>
  
  <p>I want to get 3 values from the above URL return from Liberty Reserve Website and want to insert these three values to database using LINQ TO SQL </p>
  
  <p>I need to get the following values</p>
  
  <pre><code>r_amnt=2.00 ID=70 username=networker
  </code></pre>
  
  <hr>
  
  <p>I have written the code in page load to get the above values when the response come and Redirect to my successful page:</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      if (!IsPostBack)
      {
          ID.Value = Request.QueryString["id"].ToString();
          UserName.Value = Request.QueryString["username"].ToString();
          Amount.Value = Request.QueryString["lr_amnt"].ToString();
  
          SaveLocalHistory();
          Divmessage.Visible = true;
      }
  }
  
  public void SaveLocalHistory()
  {
      MLMDataContext db = new MLMDataContext();
  
      UsersInvestement pd = new UsersInvestement();
      pd.Amount = Convert.ToDouble(Amount.Value);
      pd.UserId = Convert.ToInt32(ID.Value);
      pd.UserName = UserName.Value;
      pd.Description = "This amount has been received From LR";
      pd.IncomeTypeId = 4;
      pd.CreatedDate = DateTime.Now.Date;
      db.UsersInvestements.InsertOnSubmit(pd);
      db.SubmitChanges();
  }
  </code></pre>
  
  <hr>
  
  <p>This is a manual change in the URL:</p>
  
  <p><a href="http://earnprofitclickint.com/UserWorking/Successfull.aspx?lr_paidto=U9925362&amp;lr_amnt=2.00&amp;lr_currency=LRUSD&amp;lr_store=http%3A%2F%2Fwww.earnprofitclickint.com&amp;lr_merchant_ref=&amp;lr_paidby=U3563444&amp;lr_fee_amnt=0.00&amp;lr_transfer=143636187&amp;lr_timestamp=2013-12-05+18%3A31%3A33&amp;ctl00%24contentplaceholder1&amp;amount=&amp;ctl00%24contentplaceholder1&amp;id=70&amp;ctl00%24contentplaceholder1%24txtamount=+2&amp;ctl00%24contentplaceholder1&amp;username=networker&amp;lr_encrypted=04E20ADA982A2AF9C1C64DB3C1601BA596373E22D7B4D21813A51C43DC0198CD&amp;lr_encrypted2=59C8269D431F915360F3B8179EC95181D8C458AB91D72AF3DFC1DC0DFDAC4F64" rel="nofollow">http://earnprofitclickint.com/UserWorking/Successfull.aspx?lr_paidto=U9925362&amp;lr_amnt=2.00&amp;lr_currency=LRUSD&amp;lr_store=http%3A%2F%2Fwww.earnprofitclickint.com&amp;lr_merchant_ref=&amp;lr_paidby=U3563444&amp;lr_fee_amnt=0.00&amp;lr_transfer=143636187&amp;lr_timestamp=2013-12-05+18%3A31%3A33&amp;ctl00%24contentplaceholder1&amp;amount=&amp;ctl00%24contentplaceholder1&amp;id=70&amp;ctl00%24contentplaceholder1%24txtamount=+2&amp;ctl00%24contentplaceholder1&amp;username=networker&amp;lr_encrypted=04E20ADA982A2AF9C1C64DB3C1601BA596373E22D7B4D21813A51C43DC0198CD&amp;lr_encrypted2=59C8269D431F915360F3B8179EC95181D8C458AB91D72AF3DFC1DC0DFDAC4F64</a></p>
  
  <hr>
  
  <p>If I change it manually then it works. Any idea?</p>