Currently on my .htm page I have a couple of textboxes, a dropdownlist and a button. I tried to do a retrieve and post of the values inputted in the textbox however whenever I click my button, nothing seems to happen, so probably Ive done something wrong.
Do I have to write several different record value functions for each textbox and another for my dropdownlist?
The one I wrote for my textbox (trial and error) is
function recordvalue()
{
var nametext = document.getElementById("name");
form1.action="confirm.aspx?value="+nametext.value}
However when I click my button, nothing happens. My confirm.aspx page doesnt come to play.
I put this code in my .aspx.cs page
protected void Page_Load(object sender, EventArgs e)
{
string str = Request.QueryString["value"].ToString();
Label1.Text = str;
}
Did I miss something out?