well, the title says it all,
and i am not a hero with webbased development
i got an dictionary thats been filled at the page_load :
protected void Page_Load(object sender, EventArgs e)
{
Dictionary<int, string> values = new Dictionary<int, string>();
values.Add(0, "Value1");
values.Add(1, "Value2");
Crebotbox.DataSource = values;
Crebotbox.DataTextField = "Value";
Crebotbox.DataValueField = "Key";
Crebotbox.DataBind();
}
and its suposed value must pass with the string query through the next page
protected void submitbtn_Click(object sender, EventArgs e)
{
Response.Redirect(string.Format("~/testpage.aspx?curnmr={0}&crb={1}", Curnmrtbox.Text, Crebotbox.SelectedItem.Value));
}
but no matter wich value i select on the page itself, it just keeps pushing the first value of the dropbox
i have tried switching the Autopostback atribute but that was fruitless.
does someone have an idea?