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
R

Rob Koval

@Rob Koval
About
Posts
3
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Default action
    R Rob Koval

    If your target browser is IE you could do something like this: function MyKeyHandler() { if(correctKeyPressed) { var btn = document.getElementById("myBtn"); btn.click(); //Simulates a click by causing the onclick event to fire. } }

    ASP.NET sysadmin question discussion

  • button click without submiting the page
    R Rob Koval

    Be aware that button has two types of ocnlick events. Server side (the one that submits the page) and client side (the one you want) what you can do is to hav eboth attached to a button. However this cannot be done in design time. In page_load event you can do something like this to attach client side onclick handlers to your buttons: myBtn.attributes.Add("onclick","myJavaScriptFunction()"); another option is not to use server side buttons (not to user runat="server" attributes) r.

    ASP.NET help

  • Confirm delete on DataGrid
    R Rob Koval

    You need to add an event handler to datagrid for OnItemDataBound event. In that handler you need to lookup a delete button and attach client side script to it. You will do it using button's attribute collection. something like this: myBtn.Attributes.Add("onclick","javascript:myConfirmJSFunction()"); Hope this helps r.

    C# question
  • Login

  • Don't have an account? Register

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