Difference between revisions of "DD Class2"
esse quam videri
(→Review of web forms) |
m (→HTML forms) |
||
Line 13: | Line 13: | ||
:creates a text entry box | :creates a text entry box | ||
<input type="Text" id="txtText1" /> | <input type="Text" id="txtText1" /> | ||
+ | |||
<html> | <html> | ||
<input type="Text" id="txtText1" /> | <input type="Text" id="txtText1" /> | ||
Line 20: | Line 21: | ||
:same as text but hides characters 'note the password is not hashed or encrypted when is it is sent to the web server; it is only masked in the web browser' | :same as text but hides characters 'note the password is not hashed or encrypted when is it is sent to the web server; it is only masked in the web browser' | ||
<input type="Password" id="passwd1" /> | <input type="Password" id="passwd1" /> | ||
+ | |||
<html> | <html> | ||
<input type="Password" id="passwd1" /> | <input type="Password" id="passwd1" /> | ||
Line 29: | Line 31: | ||
<input type="Checkbox" id ="chkbxTest1" name="chkbxTest1" /> | <input type="Checkbox" id ="chkbxTest1" name="chkbxTest1" /> | ||
<input type="Checkbox" id ="chkbxTest2" name="chkbxTest2" /> | <input type="Checkbox" id ="chkbxTest2" name="chkbxTest2" /> | ||
+ | |||
<html> | <html> | ||
<input type="Checkbox" id ="chkbxTest1" name="chkbxTest" /> | <input type="Checkbox" id ="chkbxTest1" name="chkbxTest" /> | ||
<input type="Checkbox" id ="chkbxTest2" name="chkbxTest" /> | <input type="Checkbox" id ="chkbxTest2" name="chkbxTest" /> | ||
</html> | </html> | ||
+ | |||
+ | |||
'''GET and POST''' | '''GET and POST''' |
Revision as of 20:45, 29 January 2007
Web Forms
Review of web forms
HTML forms
Input Types
- Input type from w3c http://www.w3.org/TR/html4/interact/forms.html#h-17.4
Text
- creates a text entry box
<input type="Text" id="txtText1" />
Password
- same as text but hides characters 'note the password is not hashed or encrypted when is it is sent to the web server; it is only masked in the web browser'
<input type="Password" id="passwd1" />
CheckBox
- creates checkboxes
<input type="Checkbox" id ="chkbxTest1" name="chkbxTest1" /> <input type="Checkbox" id ="chkbxTest2" name="chkbxTest2" />
GET and POST
Html get
http://iam.colum.edu/DD/classsource/class2/simpleGet.html - source simpleGet.aspx - source
http://iam.colum.edu/DD/classsource/class2/simplePost.html - source simplePost.aspx - source
Web forms
PostBack
Homework
Read Intro and Chapter 1 in Beginning ASP.NET 2.0 Databases (BAD)
Build registration form for cheese conference in html and then build form in aspx
Install Microsoft SQL Management Studio