I would like to know where to put the 2 script files from this article to my web app folder
After copy/pasting it you need to add the namespace, I feel dumb
Following best practices, you'd use a custom directory in the /CMSModules directory OR in the /CMSGlobalFiles directory.
Once you copy them to that location, then simply access it with the relative url to that path.
I get these 2 errors while runat is set to "server" for both labels:
The name 'lblInfo' does not exist in the current context
The name 'lblError' does not exist in the current context
Check your aspx and aspx.cs file, make sure the aspx's @Page CodeFile attribute points to your aspx.cx file, and the Inherits value matches the Class name on your aspx.cs
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ImportProducts.aspx.cs" Inherits="ImportProducts" Theme="Default" %>
public partial class ImportProducts : System.Web.UI.Page
Trevor the values are the same as you said but I still receive the same errors
Can you paste the exact aspx and aspx.cs code somewhere like a paste-bin so we can see them? That error usually means there is a disconnect between the aspx and the aspx.cs that the .cs file can't see the controls (lblError and lblinfo) which are found on the aspx page.
Please, sign in to be able to submit a new answer.