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
A

azim11

@azim11
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Programmatically Update SqlDataSource
    A azim11

    I need to update a column of a record. I am using a FormView control to provide the UI for the SqlDataSource. The update method MUST be called from a button, rather than the built in "Update" feature of FormView1_ItemCommand, (unless there is a way to call this event with a command on the button control.) I am attempting the SqlDataSource update by: Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click SqlDataSource1.Update() End Sub and: Protected Sub SqlDataSource1_Updating(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceCommandEventArgs) Handles SqlDataSource1.Updating Dim totalcost As Single = 400 e.Command.Parameters("@TotalCost").Value = totalcost 'SqlDataSource1.UpdateParameters("TotalCost").DefaultValue = totalcost End Sub Neither the e.Command.Parameters("@TotalCost").Value = totalcost or the SqlDataSource1.UpdateParameters("TotalCost").DefaultValue = totalcost has any impact. Any help would be greatly appreciated....thank you

    ASP.NET design help announcement
  • Login

  • Don't have an account? Register

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