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. General Programming
  3. Visual Basic
  4. How to access the textbox data embedded in a datalist

How to access the textbox data embedded in a datalist

Scheduled Pinned Locked Moved Visual Basic
cssdesignhardwarehelptutorial
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.
  • M Offline
    M Offline
    MacIntyre
    wrote on last edited by
    #1

    First this app is an intranet WebForms app. I have displayed bond data in a datalist with additional textboxes in the datalist grid for data entry. I'm actually looking for a better solution than the one that is currently implemented. Currnetly: textbox1 is txtQty, textbox2 is txtRate, label1 is lblTotal and button1 is btnCompute. The user enters data in txtQty and txtRate click on btnCompute thus invoke datalist_ItemCommand and retrieve the txtQty & txtRate using the .FindCommand for the current row, then compute the lblTotal and move to the next row. This subroutine gets access to "byval e as System.Web.UI.WebControls.DatalistItemEventArgs" which makes the current row available and life is great, except the dataentry operator has to click the compute button. I would like to get rid of the button and set up the app to use the OnTextChange Event of the textbox. this is a problem because it uses "byval e as System.EventArgs" for its argument and the current datalist row is not available. Can anybody show me how to get the current row of the datalist for the textbox that triggered the OnTextChange event? Thanks, Chuck

    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