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. Type 'DataListCommandEventArgs' is not defined.

Type 'DataListCommandEventArgs' is not defined.

Scheduled Pinned Locked Moved Visual Basic
csharpasp-nethelpquestion
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.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    I am developing a asp.net website, and I am using a vb.net code-behind file. In the code-behind file, I am trying to do the following code Sub NewsLinks_ItemCommand( s As Object, e As DataListCommandEventArgs ) Dim ArticleID as integer NewsLinks.SelectedIndex = e.Item.ItemIndex ArticleID = NewsLinks.DataKeys( e.Item.ItemIndex ) GetFile(ArticleID) End Sub Where NewsLinks is a DataList in the Asp.net side. However I keep getting the error Type 'DataListCommandEventArgs' is not defined. I have the following Imports at the top of the page: Imports System Imports System.Web Imports System.Configuration Imports System.Data Imports System.Data.SqlClient I think I am just forgetting to do something like import the right file. Am I missing one or doing something else wrong? I am also getting this same type of error when I try this Private Sub Page_Change(ByVal sender As Object, ByVal e As DataGridPageChangedEventArgs) Dim start As Integer start = CommercialGrid.CurrentPageIndex * CommercialGrid.PageSize CommercialGrid.CurrentPageIndex = e.NewPageIndex PopulateDataGrid() End Sub Only the error I get is this Type 'DataGridPageChangedEventArgs' is not defined. Thanks in advance! jeremy

    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