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
help
4 Posts 4 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.
  • R Offline
    R Offline
    rajmani
    wrote on last edited by
    #1

    hi, I create datalist, what mistake this code, Dim oBut As ImageButton = CType(datagrid1.Items(datagrid1.SelectedIndex).FindControl("image"), ImageButton).Attributes.Add("onMouseOver", "window.open('webform1.aspx');")) Error is end of statement expected thanks

    P N D 3 Replies Last reply
    0
    • R rajmani

      hi, I create datalist, what mistake this code, Dim oBut As ImageButton = CType(datagrid1.Items(datagrid1.SelectedIndex).FindControl("image"), ImageButton).Attributes.Add("onMouseOver", "window.open('webform1.aspx');")) Error is end of statement expected thanks

      P Offline
      P Offline
      Paddy Boyd
      wrote on last edited by
      #2

      I think you have an extra closing bracket.

      1 Reply Last reply
      0
      • R rajmani

        hi, I create datalist, what mistake this code, Dim oBut As ImageButton = CType(datagrid1.Items(datagrid1.SelectedIndex).FindControl("image"), ImageButton).Attributes.Add("onMouseOver", "window.open('webform1.aspx');")) Error is end of statement expected thanks

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        What mistake? It's VB :-D

        1 Reply Last reply
        0
        • R rajmani

          hi, I create datalist, what mistake this code, Dim oBut As ImageButton = CType(datagrid1.Items(datagrid1.SelectedIndex).FindControl("image"), ImageButton).Attributes.Add("onMouseOver", "window.open('webform1.aspx');")) Error is end of statement expected thanks

          D Offline
          D Offline
          Daniel Santillanes
          wrote on last edited by
          #4

          you must first set the variable: Dim oBut As ImageButton = CType(datagrid1.Items(datagrid1.SelectedIndex).FindControl("image"), ImageButton) then execute the attributes.add method: oBut.Attributes.Add("onMouseOver", "window.open('webform1.aspx');") daniero

          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