Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Oct 09, 2011 08:21 PM by MindZend
Aug 20, 2007 08:26 AM|LINK
I created the below page:
Name: DataBinder.Eval (myDataSet.Tables["Manufacturer"].Rows, "[ManufacturerName]")
NavigateUrl='<%# DataBinder.Eval(myDataSet.Tables["Manufacturer"].Rows, "") %>'>
Aug 28, 2007 02:50 PM|LINK
Anyone got any clues? As i copied this code from a book but cant figure where the error could be.....
Aug 28, 2007 03:06 PM|LINK
I'm only guessing here, but try setting AutoEventWireup to true. This will allow page events to be hooked up automatically.
Was the code-behind class name changes or namespace changed?
Sorry, I'm just taking stabs in the dark.
Aug 28, 2007 03:35 PM|LINK
verify that your CodeFile is correct (pointing to your codebehind file). Also look at your inherits=, making sure you include any namespaces you have defined in your codebehind.
Aug 28, 2007 04:00 PM|LINK
I changed AutoEventWireup to true and made no diffrence. I've been copying and pasting the form so i decided to create a new project and copy the code into it - same error.
I think the code file is correct. The inherits/Import statement now reads as:
Current error is:
Error 1 Argument not specified for parameter 'expression' of 'Public Shared Function Eval(container As Object, expression As String, format As String) As String'. C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\InlineDataSet\Default.aspx 21
Ill keeping playing along but if you get anymore ideas please advise.
Aug 28, 2007 05:19 PM|LINK
What is line 21?
Aug 29, 2007 02:23 PM|LINK
The code has been changed from above. New codes is as:
Sep 02, 2007 12:51 AM|LINK
I am an amateur developer and I had the same problem. During development on my computer my project worked fine. When I copied it to the web server it failed with and error "Context is not a member of." I could not find the solution to the problem anywhere.
By trial and error I found a solution that worked. I did the following for mypage.aspx with code behind
It worked for me but I am not sure why.
Oct 21, 2009 09:35 PM|LINK
I'll tell you what the secret is. There are three names that have to be coordinated, including their folder:
Now go to the aspx.vb code behind file:
Partial Class foldername_xyzpagename
Note the underline connector between the folder name and the page name.
When you correct them in the order above, when you get to changing the .vb page, it will come up with alternatives. One of them will match Inherits on the first page.
I have corrected this worthless message any number of times this way.
Now do yourself a favor and start a notebook of how you correct worthless messages. Ultimately, you will save yourself a lot of time.
Oct 30, 2009 11:58 AM|LINK
In my case, with a similar error, I had been chopping and changing the code. By the time I had finished, I should have had a very simple code behind page:
Partial Class _Default
Unfortunately, I had ommited
Dropped that back in. Sorted.