using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class code_testquery : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        string url = "arduino.aspx?";
        url += "username=" + TextBox1.Text + "&";
        url += "password=" + TextBox2.Text + "&";
        url += "datastream_id=" + TextBox3.Text + "&";
        url += "value=" + TextBox4.Text;
        Label1.Text = url;        
        Response.Redirect(url);
    }
}