Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- if (ViewState["gameID"] == null)
- {
- //Populate Listbox
- //Set gameid in viewstate
- }
- //Add javascript handlers to buttons
- btnSomeButton.Attributes.Add("onclick", "aJavaScriptFunction");
- }
- }
- protected void btnSave_Click(object sender, EventArgs e)
- {
- ListItemCollection x = ListBoxRanks.Items;
- //Here items is has just those items that are added to the listbox on page load
- }
Add Comment
Please, Sign In to add comment