Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hey, I'm getting an error in C# ASP.net here is the code: public partial class Site : System.Web.UI.MasterPage { //page load event protected void Page_Load(object

Hey, I'm getting an error in C# ASP.net here is the code:

 public partial class Site : System.Web.UI.MasterPage { //page load event protected void Page_Load(object sender, EventArgs e) { //displaying current date on the label lblDate.Text = DateTime.Now.ToString(); } }

and in site.master I have:

Two Column Layout.


<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="MillerDylanTwoColumn.site" %>

The error I'm getting is: Error CS0103 The name 'lblDate' does not exist in the current context Can anyone show me where I went wrong? Thanks.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions

Question

x ( P ( x ) - > yQ ( y ) ) x y ( P ( x ) - > Q ( y ) )

Answered: 1 week ago

Question

8. Provide recommendations for how to manage knowledge.

Answered: 1 week ago