Difference between revisions of "DD Class2"
esse quam videri
(→Review of web forms) |
|||
Line 87: | Line 87: | ||
Image | Image | ||
− | :Graphical submit button. Should | + | :Graphical submit button. Should provide alt tag |
<input type="Image" src="http://iam.colum.edu/new/imgs/msdn.jpg" Name="ImageSubmit" id="ImageSubmit" /> | <input type="Image" src="http://iam.colum.edu/new/imgs/msdn.jpg" Name="ImageSubmit" id="ImageSubmit" /> | ||
Line 108: | Line 108: | ||
:file uses multi part header | :file uses multi part header | ||
− | <input type="File" Name="File1" id="File1 /> | + | <input type="File" Name="File1" id="File1" /> |
<input type="File" Name="File2" id="File2" value="InitalFile.txt" /> | <input type="File" Name="File2" id="File2" value="InitalFile.txt" /> | ||
<html> | <html> | ||
− | <input type="File" Name="File1" id="File1 /> | + | <input type="File" Name="File1" id="File1" /> |
<input type="File" Name="File2" id="File2" value="InitalFile.txt" /> | <input type="File" Name="File2" id="File2" value="InitalFile.txt" /> | ||
</html> | </html> |
Revision as of 21:09, 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
chkbxTest1<input type="Checkbox" id ="chkbxTest1" name="chkbxTest1" /> chkbxTest1<input type="Checkbox" id ="chkbxTest2" name="chkbxTest2" />
chkbxTest1 chkbxTest2
Radio
- creates radio button. Radio buttons are grouped by name
rbTest1<input type="radio" id="rbTest1" name="rbTest1" /> rbTest2<input type="radio" id="rbTest2" name="rbTest1" /> rbTest3<input type="radio" id="rbTest3" name="rbTest1" />
rbTest1 rbTest2 rbTest3
Image
- submit button. Default value is Submit Query can be changes with Value attribute.
<input type="Submit" Name="Submit" id="Submit1" /> <input type="Submit" Name="Submit" id="Submit2" Value="My Submit" />
Reset
- rest button. Default value is Submit Query can be changes with Value attribute.
<input type="Reset" Name="Reset" id="Reset1" /> <input type="Reset" Name="Reset" id="Reset2" Value="Reset All Values" />
Button
- button.
<input type="Button" Name="Button" id="Button" /> <input type="Button" Name="Button" id="Button2" Value="Don't Panic" />
Image
- Graphical submit button. Should provide alt tag
<input type="Image" src="" Name="ImageSubmit" id="ImageSubmit" />
Hidden
- hah ha can't see this
<input type="Hidden" Name="Hidden1" id="Hidden1" value="Hide me" />
File
- file uses multi part header
<input type="File" Name="File1" id="File1" /> <input type="File" Name="File2" id="File2" value="InitalFile.txt" />
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