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
M

minckle

@minckle
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • onfocus postback problem
    M minckle

    thanks, but even using ajax it still creates a postback doesnt it. on focus of the control i need it to run some vb.net code ( server side code ). I have ajax set up and it still loads the page_load event so i presume it is still posting back, no ? eiher way i dont have it working with ajax, maybe i have set some thing wrong my code is in pageload event TextBox1Test.Attributes.Add("onfocus", "javascript:DoPostBack('TextBox1Test');") Dim eventTarget As String = Request.Form("__EVENTTARGET") If eventTarget IsNot Nothing Then DayPostback(eventTarget) // server side code i need to run on focus End If javascript code function DoPostBack(control) { __doPostBack(control, "onFocus"); } if i set the DayPostback method to manually set the focus, i get in a loop, if I loop the textbox loses focus after the event has been fired

    modified on Monday, August 1, 2011 7:36 PM

    ASP.NET csharp css asp-net visual-studio

  • onfocus postback problem
    M minckle

    Im using vs 2008 ( asp.net / vb.net ) I've got grid with editable textboxes on the rows ( 1 textbox per column ). On focus of a textbox I need to have a postback to retrieve a related value and display it on screen but after the postback it loses the focus. Is there anything i can do to keep the focus?? tried multiple things online but nothing working yet if i manual set the focus back to the control, then it will just fire the onfocus event - and therefore enter a loop. anyone got any ideas

    ASP.NET csharp css asp-net visual-studio

  • OnFocus server side event for textbox in datagrid
    M minckle

    I have a datagrid containing multiple rows / columns, each cell contains a textbox. How do I kick off a server side event when a user mouseclicks or tabs into a cell / textbox, there doesn t seem to be a standard event so was wondering if i need to add javascript to kick of the event. theres a onTextChanged Event but no onFocus Event any ideas would be really helpful

    ASP.NET javascript sysadmin 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