Asp.Net Transfer all Values Listbox to Another Page? (Response.Redirect)

Bellegospeawl

New Member
I have Problem with transfer all Data in Listbox from Page1 to Page2. Pleas, could me someone help me ?Page1\[code\]protected void Button1_Click(object sender, ImageClickEventArgs e){ int _count = Listbox1.Items.Count; if (_count != 0) { for (int i = 0; i < _count; i++) { ListItem item = new ListItem(); item.Text = Listbox1.Items.Text; item.Value = http://stackoverflow.com/questions/14520736/Listbox1.Items.Value; Response.Redirect("Page2.aspx?Listitems="+ item.Value);\[/code\]Page 2\[code\] protected void Page_Load(object sender, EventArgs e){ i if (Request.QueryString["Listitems"] != null) ListItem1.Items.Add["Listitems"];\[/code\]Sorry for easy question, but i have only Rookie in ASP.NET :(Thank you
 
Back
Top