×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

ASPX and C# "discord": what am I missing? - Resolved

ASPX and C# "discord": what am I missing? - Resolved

ASPX and C# "discord": what am I missing? - Resolved

(OP)
Colleagues,
I am new to ASP, though I know a thing or two about C# WinForms (and WebForms in VS 2005... but later VSs have them no more).
I'm using VS 2019, and I go through the Murach's "ASP.NET 4.6 Web Programming with C# 2015" for self-education (I have been told that my next project at work will be Web app for internal use).
I'm now at Ch. 3, where authors show (or try to) how to use CSS on a little project "Future Value Calculator".
This is how it looks:



I dutifully typed the ASPX code from the book (page 81, if you have it) to the project, but when I tried to compile it - I got these error messages:



I, then, just old-faschionedly double-clicked on these buttons on the form in Designer and added codes to both buttons:



... but the errors didn't go away! sad

What am I'm missing or doing wrong?

Please advise.
(Let me know if you need the actual code snippets.)

Regards,

Ilya

RE: ASPX and C# "discord": what am I missing? - Resolved

(OP)
Resolved!
Turns out I was missing this directive:

Regards,

Ilya

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close