Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

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

Status
Not open for further replies.

IlyaRabyy

Programmer
Nov 9, 2010
566
0
16
US
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:

2022_04_19_10_37_FutureValueCalcWithCSS_01_Form_klxonb.jpg


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:

2022_04_19_10_37_FutureValueCalcWithCSS_02_CodeASPX_zihf6g.jpg


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

2022_04_19_10_37_FutureValueCalcWithCSS_03_CodeCS_rtg09t.jpg


... but the errors didn't go away! :-(

What am I'm missing or doing wrong?

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

Regards,

Ilya
 
Resolved!
Turns out I was missing this directive:
2022_04_19_10_37_FutureValueCalcWithCSS_03_CodeCS_Corrected_rpfjug.jpg



Regards,

Ilya
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top