Skip to Content
studyboost
  • Home
  • BCA SEM-4
  • Contact us
  • Sign in
  • Contact Us
studyboost
      • Home
      • BCA SEM-4
      • Contact us
    • Sign in
    • Contact Us

    Unit 1 Practical 3

    Design a class file with two methods as sum and subtraction which takes two arguments. Design a web page to take two integer numbers from the user. When user clicks on sum or subtraction button, display the result of two entered values in the label control placed on the web page. (Use of App_code & Bin directory).


    First Add class file and named "mathOperation.cs"

    Step1: right click on BCA_SEM4 in Solution Explorer then Add > Add New Items > class file (rename with mathOperation.cs) then click on add ( it will ask you to create an App_Code folder so click on Yes . )

    step2: create two following methods sum and subtraction as showing below:



    mathOperation.cs ( class file )


     U1_P3.aspx

     

     
    U1_P3.aspx

     







     OUTPUT:

     

    • Home
    • •
    • About us
    • •
    • Products
    • •
    • Terms of Services

    How can we help?

    Contact us anytime

    Copyright 2025 © Studyboost
    Powered by Odoo - Create a free website