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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. Server side script does is not executed

Server side script does is not executed

Scheduled Pinned Locked Moved Web Development
sysadmintoolsquestion
2 Posts 2 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.
  • J Offline
    J Offline
    just4ulove7
    wrote on last edited by
    #1

    Hi, I have a asp:checkbox in DataGrid. I attached an event OnCheckedChanged on the checkbox say.. And the event is scripted as : public void dgProjects_CheckedChanged(Object sender ,System.EventArgs e) { CheckBox chkTemp = (CheckBox)sender; DataGridItem dgi; dgi = (DataGridItem)chkTemp.Parent.Parent; if (chkTemp.Checked==true) { dgi.BackColor = dgProjects.SelectedItemStyle.BackColor; dgi.ForeColor = dgProjects.SelectedItemStyle.ForeColor; } else { dgi.BackColor = dgProjects.ItemStyle.BackColor; dgi.ForeColor = dgProjects.ItemStyle.ForeColor ; } } But the event doesnt fire... what do I need to do? Is there anything to add up??? Thanks </x-turndown>

    V 1 Reply Last reply
    0
    • J just4ulove7

      Hi, I have a asp:checkbox in DataGrid. I attached an event OnCheckedChanged on the checkbox say.. And the event is scripted as : public void dgProjects_CheckedChanged(Object sender ,System.EventArgs e) { CheckBox chkTemp = (CheckBox)sender; DataGridItem dgi; dgi = (DataGridItem)chkTemp.Parent.Parent; if (chkTemp.Checked==true) { dgi.BackColor = dgProjects.SelectedItemStyle.BackColor; dgi.ForeColor = dgProjects.SelectedItemStyle.ForeColor; } else { dgi.BackColor = dgProjects.ItemStyle.BackColor; dgi.ForeColor = dgProjects.ItemStyle.ForeColor ; } } But the event doesnt fire... what do I need to do? Is there anything to add up??? Thanks </x-turndown>

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      You missed AUTOPOSTBACK=true for the checkbox. Deepak Kumar Vasudevan Personal Web: http://vdeepakkumar.netfirms.com/ I Blog At: http://deepak.blogdrive.com/

      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