i got $50 to anyone who can make this for me:
[code] Create a web application with the same name as your last name. Change the name of the web form to your first name. Create a C# class named using your middle name.
The C# class should contain the properties listed below. Each property must include a set and get method.
C# class:
Properties-initial value (set when the property is created, not when the object is created)
FirstName- your first name
LastName-your last name
StudentID-your student ID #
Height-your height
EyeColor-your eye color
HairColor-your hair color
Web Form:
Create two buttons one for each object created below. The buttons should display the name of the object that will be created.
Create two instances of the class.
1) The first instance is named with your first name, an "s", and the word "object". For example "stevesobject". This object does not pass any attributes when created. Save the object in a ViewState with the same name as the object.
2) The second instance is named with your first name, an "s", the words "twinobject". For example "stevestwinobject". This object does pass attributes when created. The attributes are the following:
FirstName-your name in reverse
LastName-your last name in reverse
StudentID-your ID number with one added to each digit (except for any number 9's)...for example...orginal ID number 90000015151 new number is: 91111126262.
Height - add 2 inches
EyeColor - same color as yours, but pass the value anyway
HairColor - same color as yours, but pass the value anyway
Save the object in an Session variable with the same name as the object.
Create two additional buttons with "view" and the name of the objects. Such as "ViewSteve" and "ViewStevesTwin".
These buttons will retrieve the object (either from ViewState or from the Session variable) and then display the complete information on the web form.
Add one additional button. This button will display "Change" and the name of the first object. Such as "ChangeSteve". The code under this button must retrieve the object from ViewState, change the last name to "Smith", and then save the object back into ViewState again.
Once you have completed the program, compress it[/code]




Reply With Quote

