Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 10th, 2005, 02:44 AM
Authorized User
 
Join Date: May 2005
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error in script but can't find what's wrong!!

I'm busy making a aspx page and there is something wrong but i can't figure out what. Can you help me?
It's about this piece, and the server is saying:

Compiler Error Message: BC30455: Argument not specified for parameter 'e' of 'Public Function UpdateDataStore(obj As Object, e As System.Web.UI.WebControls.DataGridCommandEventArgs ) As Boolean'.
Code:
    sub dgData_Update(obj as object, e as DataGridCommandEventArgs)
        if UpdateDataStore(e) then
            FillDataGrid( -1 )
        end if
    end sub
Hope you guys can help me out
Thanks Bram

--------------------------------------------------
"Want more trouble in you're life?? Buy a PC"
__________________
--------------------------------------------------
\"Want more trouble in you\'re life?? Buy a PC\"
 
Old May 10th, 2005, 04:32 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

Hi,

I think you have missed out the 1st parameter from the Method Invocation.

Your method "UpdateDataStore" accepts two parameters
  •  
  • Object
  • System.Web.UI.WebControls.DataGridCommandEventArgs

and you are passing only one. it should be
Code:
sub dgData_Update(obj as object, e as DataGridCommandEventArgs)
    if UpdateDataStore(obj, e) then
         FillDataGrid( -1 )
    end if
end sub
Regards
Ganesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 6 - scaffold error, wrong number of args davidtspf BOOK: Beginning Ruby on Rails 12 August 13th, 2010 11:20 PM
No such file or directory error for wrong linking awotta BOOK: Professional Assembly Language 1 January 10th, 2010 07:44 AM
display script - zip file - something is wrong? jstewie Javascript How-To 1 August 31st, 2005 02:07 AM
Error message is wrong Mitch SQL Server 2000 3 March 17th, 2004 07:11 PM
ADODB.Recordset Error on wrong line???? Greywacke Classic ASP Databases 4 February 23rd, 2004 11:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.