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. DataList

DataList

Scheduled Pinned Locked Moved ASP.NET
htmltutorialannouncement
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.
  • S Offline
    S Offline
    samsonx
    wrote on last edited by
    #1

    How to add and configure TextBox in Item template datalist controls for update the rows....Please send a HTML Coding

    With Regards, Samson

    V 1 Reply Last reply
    0
    • S samsonx

      How to add and configure TextBox in Item template datalist controls for update the rows....Please send a HTML Coding

      With Regards, Samson

      V Offline
      V Offline
      Vinay Dornala
      wrote on last edited by
      #2

      hi see this code template Protected Sub DataList1_UpdateCommand(ByVal source As Object, _ ByVal e As System.Web.UI.WebControls.DataListCommandEventArgs) Dim categoryID As String = _ DataList1.DataKeys(e.Item.ItemIndex).ToString() Dim categoryName As TextBox = _ CType(e.Item.FindControl("textCategoryName"), TextBox) Dim description As TextBox = _ CType(e.Item.FindControl("textDescription"), TextBox) SqlDataSource1.UpdateParameters("original_CategoryID"). _ DefaultValue = categoryID SqlDataSource1.UpdateParameters("categoryName"). _ DefaultValue = categoryName.Text SqlDataSource1.UpdateParameters("Description"). _ DefaultValue = description.Text SqlDataSource1.Update() DataList1.EditItemIndex = -1 DataList1.DataBind() End Sub

      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