Pastebin
API
tools
faq
paste
Login
Sign up
Please fix the following errors:
New Paste
Syntax Highlighting
<%@ Page Language="VB" debug="true" %> <script runat="server"> Sub Page_Load() If IsPostBack() Then Dim MyCookie As New HttpCookie("csci4160") MyCookie.Values("Name") = Name.Text MyCookie.Values("ZipCode") = ZipCode.Text MyCookie.Values("BgColour") = BGColour.Text MyCookie.Values("FontStyle") = FontStyle.Text MyCookie.Values("FontSize") = FontSize.Text MyCookie.Values("NewsSite") = NewsSite.Text MyCookie.Values("NewsURL") = NewsSite.SelectedValue MyCookie.Values("TechSite") = TechSite.Text MyCookie.Values("TechURL") = TechSite.SelectedValue MyCookie.Values("SportsSite") = SportsSite.Text MyCookie.Values("SportsURL") = SportsSite.SelectedValue MyCookie.Values("StockQuotes") = StockQuotes.Text MyCookie.Values("StockSymbol") = StockSymbol.Text MyCookie.Values("FavTrailer") = FavTrailer.Text MyCookie.Values("TrailerCode") = FavTrailer.SelectedValue MyCookie.Values("ShowInfo") = ShowInfo.Text MyCookie.Values("Theme") = Theme.Text MyCookie.Values("FullScreen") = FullScreen.Text MyCookie.Values("Autoplay") = Autoplay.Text MyCookie.Values("ProgressBar") = ProgressBar.Text MyCookie.Expires = DateTime.Now.AddDays(10) Response.Cookies.Add(MyCookie) Response.Redirect("./Project1.aspx") End If End Sub </script> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <style type="text/css"> .style1 { width: 100%; } .style2 { height: 23px; text-align: center; background-color: #666666; } .style3 { height: 23px; background-color: #666666; } .style4 { background-color: #666666; } .style5 { width: 334px; } </style> </head> <body> <form id="form1" runat="server"> <br /> <h2 style="text-align: center">CSCI 4160 Project 1 - Interactive Web Page</h2> <br /> <table class="style1"> <tr> <td colspan="6" class="style3"> <strong>Personal Information</strong></td> </tr> <tr> <td class="style5"> Name</td> <td> <asp:TextBox ID="Name" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Name is a required field" Display="None" ControlToValidate="Name" /> </td> <td colspan="2"> Zip Code</td> <td colspan="2"> <asp:TextBox ID="ZipCode" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Zip code is a required field" Display="None" ControlToValidate="ZipCode" /> </td> </tr> <tr> <td colspan="6" class="style4"> <strong>Personal Preferences</strong></td> </tr> <tr> <td class="style5"> Background Colour</td> <td> <asp:DropDownList ID="BGColour" runat="server"> <asp:ListItem Selected="True">orange</asp:ListItem> <asp:ListItem>red</asp:ListItem> <asp:ListItem>yellow</asp:ListItem> <asp:ListItem>white</asp:ListItem> <asp:ListItem>black</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="BG Colour is a required field" Display="None" ControlToValidate="BGColour" /> </td> <td> Font Style</td> <td> <asp:DropDownList ID="FontStyle" runat="server"> <asp:ListItem Selected="True">arial</asp:ListItem> <asp:ListItem>verdana</asp:ListItem> <asp:ListItem>times new roman</asp:ListItem> <asp:ListItem>tahoma</asp:ListItem> <asp:ListItem>georgia</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Font style is a required field" Display="None" ControlToValidate="FontStyle" /> </td> <td> Font<br /> Size</td> <td> <asp:DropDownList ID="FontSize" runat="server"> <asp:ListItem Selected="True">x-small</asp:ListItem> <asp:ListItem>small</asp:ListItem> <asp:ListItem>medium</asp:ListItem> <asp:ListItem>large</asp:ListItem> <asp:ListItem>x-large</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Font size is a required field" Display="None" ControlToValidate="FontSize" /> </td> </tr> <tr> <td colspan="6" class="style4"> <strong>WWW Preferences</strong></td> </tr> <tr> <td class="style5"> General News Sites</td> <td> <asp:DropDownList ID="NewsSite" runat="server"> <asp:ListItem Value="http://www.msnbc.com">MSNBC</asp:ListItem> <asp:ListItem Value="http://www.thestar.com">Toronto Star</asp:ListItem> <asp:ListItem Value="http://www.aljazeera.com/">Al Jazeera</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="News site is a required field" Display="None" ControlToValidate="NewsSite" /> </td> <td colspan="2"> Technology Sites</td> <td colspan="2"> <asp:DropDownList ID="TechSite" runat="server"> <asp:ListItem Value="http://news.ycombinator.com">Hacker News</asp:ListItem> <asp:ListItem Value="http://arstechnica.com/">Ars Technica</asp:ListItem> <asp:ListItem Value="http://www.slashdot.org">Slashdot</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="Tech site is a required field" Display="None" ControlToValidate="TechSite" /> </td> </tr> <tr> <td class="style5"> Sports Sites</td> <td> <asp:DropDownList ID="SportsSite" runat="server"> <asp:ListItem Value="http://www.joindota.com">joinDOTA</asp:ListItem> <asp:ListItem Value="http://www.teamliquid.net">teamliquid</asp:ListItem> <asp:ListItem Value="http://www.honcast.com">Honcast</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="Sports site is a required field" Display="None" ControlToValidate="SportsSite" /> </td> <td colspan="4"> </td> </tr> <tr> <td class="style4" colspan="6"> <strong>Stock Preferences</strong></td> </tr> <tr> <td class="style5"> Stock Quotes</td> <td> <asp:DropDownList ID="StockQuotes" runat="server"> <asp:ListItem>Google Finance</asp:ListItem> <asp:ListItem>Yahoo! Finance</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="Stock site is a required field" Display="None" ControlToValidate="StockQuotes" /> </td> <td colspan="2"> Stock Symbol</td> <td colspan="2"> <asp:TextBox ID="StockSymbol" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ErrorMessage="Stock symbol is a required field" Display="None" ControlToValidate="StockSymbol" /> </td> </tr> <tr> <td colspan="6" class="style4"> <strong>Favourite Movie Trailer</strong></td> </tr> <tr> <td class="style5"> Favourite Trailer</td> <td> <asp:DropDownList ID="FavTrailer" runat="server"> <asp:ListItem Value="AZYbWpUjdbs">Chasing Amy</asp:ListItem> <asp:ListItem Value="0AUvtLZQyDE">Anchorman</asp:ListItem> <asp:ListItem Value="wZBfmBvvotE">Pulp Fiction</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ErrorMessage="Favourite trailer is a required field" Display="None" ControlToValidate="FavTrailer" /> </td> <td colspan="2"> Show Info</td> <td colspan="2"> <asp:DropDownList ID="ShowInfo" runat="server"> <asp:ListItem>Yes</asp:ListItem> <asp:ListItem>No</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ErrorMessage="Show Info is a required field" Display="None" ControlToValidate="ShowInfo" /> </td> </tr> <tr> <td class="style5"> Theme</td> <td> <asp:RadioButtonList ID="Theme" runat="server"> <asp:ListItem>Dark</asp:ListItem> <asp:ListItem>Light</asp:ListItem> </asp:RadioButtonList> <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ErrorMessage="Theme is a required field" Display="None" ControlToValidate="Theme" /> </td> <td colspan="2"> Full Screen</td> <td colspan="2"> <asp:RadioButtonList ID="FullScreen" runat="server"> <asp:ListItem>Enabled</asp:ListItem> <asp:ListItem>Disabled</asp:ListItem> </asp:RadioButtonList> <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ErrorMessage="Full screen is a required field" Display="None" ControlToValidate="FullScreen" /> </td> </tr> <tr> <td class="style5"> Autoplay</td> <td> <asp:RadioButtonList ID="Autoplay" runat="server"> <asp:ListItem>Yes</asp:ListItem> <asp:ListItem>No</asp:ListItem> </asp:RadioButtonList> <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ErrorMessage="Autoplay is a required field" Display="None" ControlToValidate="Autoplay" /> </td> <td colspan="2"> Progress Bar Colour</td> <td colspan="2"> <asp:RadioButtonList ID="ProgressBar" runat="server"> <asp:ListItem>Red</asp:ListItem> <asp:ListItem>White</asp:ListItem> </asp:RadioButtonList> <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ErrorMessage="Progress bar colour is a required field" Display="None" ControlToValidate="ProgressBar" /> </td> </tr> <tr> <td class="style2" colspan="6"> <asp:Button PostBackURL="./Preferences.aspx" ID="CreateButton" runat="server" style="text-align: center" Text="Create my Personalized Page"/> </td> </tr> </table> <div> </div> <asp:ValidationSummary ID="ValidationSummary1" ShowMessageBox="true" ShowSummary="false" runat="server" /> </form> </body> </html>
Optional Paste Settings
Category:
None
Cryptocurrency
Cybersecurity
Fixit
Food
Gaming
Haiku
Help
History
Housing
Jokes
Legal
Money
Movies
Music
Pets
Photo
Science
Software
Source Code
Spirit
Sports
Travel
TV
Writing
Tags:
Syntax Highlighting:
None
Bash
C
C#
C++
CSS
HTML
JSON
Java
JavaScript
Lua
Markdown (PRO members only)
Objective C
PHP
Perl
Python
Ruby
Swift
4CS
6502 ACME Cross Assembler
6502 Kick Assembler
6502 TASM/64TASS
ABAP
AIMMS
ALGOL 68
APT Sources
ARM
ASM (NASM)
ASP
ActionScript
ActionScript 3
Ada
Apache Log
AppleScript
Arduino
Asymptote
AutoIt
Autohotkey
Avisynth
Awk
BASCOM AVR
BNF
BOO
Bash
Basic4GL
Batch
BibTeX
Blitz Basic
Blitz3D
BlitzMax
BrainFuck
C
C (WinAPI)
C Intermediate Language
C for Macs
C#
C++
C++ (WinAPI)
C++ (with Qt extensions)
C: Loadrunner
CAD DCL
CAD Lisp
CFDG
CMake
COBOL
CSS
Ceylon
ChaiScript
Chapel
Clojure
Clone C
Clone C++
CoffeeScript
ColdFusion
Cuesheet
D
DCL
DCPU-16
DCS
DIV
DOT
Dart
Delphi
Delphi Prism (Oxygene)
Diff
E
ECMAScript
EPC
Easytrieve
Eiffel
Email
Erlang
Euphoria
F#
FO Language
Falcon
Filemaker
Formula One
Fortran
FreeBasic
FreeSWITCH
GAMBAS
GDB
GDScript
Game Maker
Genero
Genie
GetText
Go
Godot GLSL
Groovy
GwBasic
HQ9 Plus
HTML
HTML 5
Haskell
Haxe
HicEst
IDL
INI file
INTERCAL
IO
ISPF Panel Definition
Icon
Inno Script
J
JCL
JSON
Java
Java 5
JavaScript
Julia
KSP (Kontakt Script)
KiXtart
Kotlin
LDIF
LLVM
LOL Code
LScript
Latex
Liberty BASIC
Linden Scripting
Lisp
Loco Basic
Logtalk
Lotus Formulas
Lotus Script
Lua
M68000 Assembler
MIX Assembler
MK-61/52
MPASM
MXML
MagikSF
Make
MapBasic
Markdown (PRO members only)
MatLab
Mercury
MetaPost
Modula 2
Modula 3
Motorola 68000 HiSoft Dev
MySQL
Nagios
NetRexx
Nginx
Nim
NullSoft Installer
OCaml
OCaml Brief
Oberon 2
Objeck Programming Langua
Objective C
Octave
Open Object Rexx
OpenBSD PACKET FILTER
OpenGL Shading
Openoffice BASIC
Oracle 11
Oracle 8
Oz
PARI/GP
PCRE
PHP
PHP Brief
PL/I
PL/SQL
POV-Ray
ParaSail
Pascal
Pawn
Per
Perl
Perl 6
Phix
Pic 16
Pike
Pixel Bender
PostScript
PostgreSQL
PowerBuilder
PowerShell
ProFTPd
Progress
Prolog
Properties
ProvideX
Puppet
PureBasic
PyCon
Python
Python for S60
QBasic
QML
R
RBScript
REBOL
REG
RPM Spec
Racket
Rails
Rexx
Robots
Roff Manpage
Ruby
Ruby Gnuplot
Rust
SAS
SCL
SPARK
SPARQL
SQF
SQL
SSH Config
Scala
Scheme
Scilab
SdlBasic
Smalltalk
Smarty
StandardML
StoneScript
SuperCollider
Swift
SystemVerilog
T-SQL
TCL
TeXgraph
Tera Term
TypeScript
TypoScript
UPC
Unicon
UnrealScript
Urbi
VB.NET
VBScript
VHDL
VIM
Vala
Vedit
VeriLog
Visual Pro Log
VisualBasic
VisualFoxPro
WHOIS
WhiteSpace
Winbatch
XBasic
XML
XPP
Xojo
Xorg Config
YAML
YARA
Z80 Assembler
ZXBasic
autoconf
jQuery
mIRC
newLISP
q/kdb+
thinBasic
Paste Expiration:
Never
Burn after read
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Paste Exposure:
Public
Unlisted
Private
Folder:
(members only)
Password
NEW
Enabled
Disabled
Burn after read
NEW
Paste Name / Title:
Create New Paste
Hello
Guest
Sign Up
or
Login
Sign in with Facebook
Sign in with Twitter
Sign in with Google
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Public Pastes
B7800 HYLK session 1985
8 hours ago | 2.25 KB
me
13 hours ago | 0.06 KB
FED RESPONSE TEMPLATES: FED HTML Review Feedb...
1 day ago | 0.79 KB
disable email per category (not fully tested)
1 day ago | 0.82 KB
Neuromancer — The Construct Cut (Complete Una...
1 day ago | 3.30 KB
GLUC6
1 day ago | 1.56 KB
Mapscan v1.0 - Archeagus Grey Hack Series, Ep...
JavaScript | 1 day ago | 3.33 KB
Untitled
1 day ago | 17.15 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!