Last post Mar 08, 2017 10:24 AM by aitorEG
Mar 08, 2017 09:30 AM|aitorEG|LINK
I'm a NAV developer, and for one specific project, I had to start programming again since years. I am programming a WebApp that consumes a WebService published in NAV. And at this point, is where i found the problem, probably because of my inexperience.
The problem cames when I try to obtain the value of a textBox on the OnClick event of a button, and the shown error is the next:
"The name 'txtCodigo' does no exist in the actual context"
The page is like this:
And the code where I try to obtain the value, is this one:
I also add the error log, where I can find an issue with the heritance, that probably will affect to this issue, and I don't know how to manage.
Probably the error is some small issue, but I don't know how to handle it,.
Really appreciate your help!
Mar 08, 2017 10:03 AM|aitorEG|LINK
Problem solved with:
But I'm still having the problem of the heritance, that doesn't allow me to visualize the page on the Explorer.
edit: Thought it was solved, but the error appears again.. I'm quite lost...
Mar 08, 2017 10:19 AM|kaushalparik27|LINK
Issue is in page directive, where inherits should also include name of the namespace you are using in code behind. Try:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Entrada.aspx.cs" Inherits="Picking.Entrada" %>
Mar 08, 2017 10:24 AM|aitorEG|LINK
Really thanks, it really worked!
Appreciate your help!