Last post Oct 09, 2011 09:21 PM by MindZend
Aug 20, 2007 09:26 AM|EssCee|LINK
I created the below page:
Name: DataBinder.Eval (myDataSet.Tables["Manufacturer"].Rows, "[ManufacturerName]")
NavigateUrl='<%# DataBinder.Eval(myDataSet.Tables["Manufacturer"].Rows, "") %>'>
Aug 28, 2007 03:50 PM|EssCee|LINK
Anyone got any clues? As i copied this code from a book but cant figure where the error could be.....
Aug 28, 2007 04:06 PM|jperry4|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 04:35 PM|Diamsorn|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 05:00 PM|EssCee|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 06:19 PM|Diamsorn|LINK
What is line 21?
Aug 29, 2007 03:23 PM|EssCee|LINK
The code has been changed from above. New codes is as:
Sep 02, 2007 01:51 AM|dtprice|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 10:35 PM|mhh12|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 12:58 PM|netproblems|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.
Jan 13, 2010 09:22 PM|PankilMatalia|LINK
I had similar issues, apparently when I changed my aspx page name it broke the app and started getting this error. In my case, I removed the pages from project, renamed them behind the scene and re-added similar pages back to project and then updated the
code for each page (only content, boby portions etc.) from the previous (bad) versions and when I opened the project again, it all worked fine.
Jan 19, 2011 07:52 PM|mariafg|LINK
Something that worked for me was to change the option when I publish my Web SIte
In Generate/ Publish Site Choose the option Copy... All files in the proyect
When I upload that to my development server the Image shows with the simple code
Oct 09, 2011 09:21 PM|MindZend|LINK
I had a similar problem but my reason was i had accidentaly added a . in the folder name along the path. I removed this and all was well.
ex: Web Design/Asp.Net/Default.aspx
fix: Web Design/AspNet/Default.aspx
Change code behind partial class ref also
Simple for me. Hope this helps someone.