Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. checkbox CheckedChanged event not firing after conversion to .net 3.5

checkbox CheckedChanged event not firing after conversion to .net 3.5

Scheduled Pinned Locked Moved ASP.NET
questioncsharpcssdesignhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    icewolf_snowfire
    wrote on last edited by
    #1

    I have a gridview that is in a webpart, , one column is a checkbox column. in the grid_row created event I set the proberties for the check box like so: private void Grid_RowCreated(object sender, GridViewRowEventArgs args) { TableCell cell; CheckBoxField column; CheckBox checkBox; if (args.Row.RowType == DataControlRowType.DataRow) { for (int i = 0; i < args.Row.Cells.Count; i++) { cell = args.Row.Cells[i]; column = Grid.Columns[i] as CheckBoxField; if (column != null) { foreach (System.Web.UI.Control ctl in cell.Controls) { checkBox = ctl as CheckBox; if (checkBox != null) { CaseCategory dataObj = args.Row.DataItem as CaseCategory; if (dataObj != null) { checkBox.ID = dataObj.CategoryId.ToString(System.Globalization.CultureInfo.InvariantCulture); } checkBox.AutoPostBack = true; checkBox.EnableViewState = true; checkBox.CheckedChanged +=new EventHandler(checkBox_CheckedChanged); checkBox.Enabled = true; } } } } } } before converting this code worked perfectly, after the event does not get fired. I have removed the scriptmanager and related controls from the page, with no effect. does anyone have any ideas what is going wrong, or how to fix it?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups