Download - final project report.docx
-
8/16/2019 final project report.docx
1/87
A PROJECT REPORT
MUSIC PORTAL
(In partial ful llment for the award of the degree of BCA )
Submitted by
Suhail (03721202010)and Gaganpreet singh (03621202010)
Maharaja Surajmal InstituteA liated to
Guru Govind Singh Indraprasatha University !"#$I
!e%em&er'()*(
-
8/16/2019 final project report.docx
2/87
CANDIDATE’S DECLARATION
I hereby declare that the project work entitled “ !SIC
"ORTAL ” #$b%itted to the C C ltd & a# re'$ire%ent# o( #i)
week #$%%er trainin* i# a record o( an ori*inal work done
d$rin* ++ th ,$ne -.+- to /+ th ,$ly -.+-0
The %atter e%bodied in thi# report ha# not been #$b%itted by %e(or the award o( any other de*ree0
S$hail 1./2-+-.-.+.3 45a*anpreet #in*h1./6-+-.-.+.3
70C0A 8 th #e%e#terDepart%ent o( Co%p$ter Science
aharaja S$raj%al In#tit$tec9:& ,anakp$ri& new Delhi98;
-
8/16/2019 final project report.docx
3/87
CONTENTS
1. INTRODUCTION
1.1 PURPOSE 1.2 SCOPE
1.3 TECHNOLOGIES
1.3.1 OPERATING ENVIRONVENT
1.3.2 DEPLOYMENT ENVIRONMENT
1.3.3 DEVELOPMENT TOOLS 1.3.4 DEVELOPMENT ENVIRONMENT
2. COMPANY PROFILE
3. HARDWARE AND SOFTWARE SPECIFICATION
4. SYSTEM DESIGN
4.1 ENTITY RELATIONSHIP DIAGRAM5. DATA DICTIONARY
6. MODULES IN THE PROJECT
. SOURCE CODE
!. FUTURE SCOPE
". SCREENSHOTS OF PROJECT1#. $I$LIOGRAPHY
-
8/16/2019 final project report.docx
4/87
AC
-
8/16/2019 final project report.docx
5/87
M -,* ,- / &+ '&= 8 '- = 0, = ,- -' /0 /0 -,7 /* . I+- *'=='/7 = /+- & %,+* (8 ,* 7,+, - ' +,= & /0 + ;+ & .
T *& +,'/: % & '&= /* : -,
-
8/16/2019 final project report.docx
6/87
7-' , 8 -'/
-
8/16/2019 final project report.docx
7/87
*+,+* -perating "nvironmentOE 1B T 8 %%7,* +,'/ 8,77 '% & + 8,+ + '77'8,/< W$&'8- &-B M,*&'-' + I/+ &/ + E;%7'& & &-,'/ .#: !.#: ".#: G'' ,& = /+-B S L S & & 2##5: ./ + & = 8'&
3.5.OE 6B L /< < - - 0 & A-%./ + -,/< * /0 -*&,%+,/< ,- 0'/
-,/< J S*&,%+.
OE B H &08 & R > ,& = /+-B
256(=,/,= =) 512(& *'== /0 0) M$ RAM
OE !B H &0 0,-* N G$ 0 % /0,/< %'/ + & > ,& = /+ +' -+'&
0 + =,/,= = ' 25G$.
*+,+( !evelopment .ools!.'* AS/+0etA- 8 / 0 +' 0 7'% W A%%7,* +,'/ '& E=%7'9 C7 ,=-
P&'* --,/< S9-+ = (WECS). W 8,77 - ASP.N + - ,+ ,- + / 8
M,*&'-' + + * /'7'
-
8/16/2019 final project report.docx
8/87
!.'( C1.NET ,- ,7+ '/ + W,/0'8- S & & S9-+ = +' + = '&
0 /+ < ' + OS /0 8 ,* *'= - 8,+ '-+ ' 0, & /+
- & &- 8 ,* 77'8- '& ,70,/
-
8/16/2019 final project report.docx
9/87
+ %%7,* +,'/ /0 & 77'* +,'/ ' = ='&9 '& & -' &* - + + &
/'+ / 0 0.
T .NET F& = 8'& ,- 0 -,
-
8/16/2019 final project report.docx
10/87
EOCS A%%7,* +,'/ - - S L S & & 2##5 - -+'&,/< + 0 + .
M,*&'-' + S L S & & 2##5 - ' & 0 + - /0 ,+ - -' = /9
+ & - 8 ,* ,- ,0 7 '& ' & 0'+ / + - 0 %%7,* +,'/. F + & -
I/*7 0 -
• S %%'&+ '& M 7+,%7 P7 + '&=-
• I/+
-
8/16/2019 final project report.docx
11/87
8,+ = / < 0 *'0 '& 77 %7 + '&=- - %%'&+ 0 9 M,*&'-' +
W,/0'8-: W,/0'8- M' ,7 : W,/0'8- CE: .NET F& = 8'& :
.NET C'=% *+ F& = 8'& /0 M,*&'-' + S,7 &7,< +.
V,- 7 S+ 0,' ,/*7 0 - *'0 0,+'& - %%'&+,/< I/+ 77,S /- -
8 77 - *'0 & *+'&,/
-
8/16/2019 final project report.docx
12/87
,7 7 , 7 /< < - & ,* - 8 ,* & +' ,/-+ 77 0
- % & + 79. I+ 7-' - %%'&+- ML SLT: HTML HTML:
J S*&,%+ /0 CSS. L /< < -% *, ,* &-,'/- ' V,- 7 S+ 0,'
7-' ;,-+ 8 ,* %&' ,0 ='& 7,=,+ 0 7 /< < - & ,* - +' +
- &. T - ,/0, ,0 7 % * < - & * 77 0 M,*&'-' + V,- 7
$ -,*: V,- 7 J : V,- 7 C : /0 V,- 7 C .
-0 CO "AN@ "RO?ILE
-
8/16/2019 final project report.docx
13/87
CMC L,=,+ 0 ,- 7 0,/< IT -'7 +,'/- *'=% /9 /0
- -,0, &9 ' T + C'/- 7+ /*9 S & ,* - L,=,+ 0 (TCS L+0.):
'/ ' + 8'&70 - 7 0,/< I/ '&= +,'/ T * /'7' I/ '&= +,'/ T * /'7'
-
8/16/2019 final project report.docx
14/87
ARD=ARE REB!IRE ENTS
A =,/,= = *'=% + & -9-+ = + + 8,77 7% 9'** -- 77 + +''7- ,/ + *' &- ,- P /+, = 166 '&
++ & 512 = < 9+ - ' RAM '& ++ &.
W,/0'8- "!: 2###: P: : V,-+ .P&,/+ & +' %&,/+ + + +'&, 7-
SO?T=ARE REB!IRE ENTS
V,- 7 S+ 0,' 2##! 2#1#AJA T''7 ,+M,*&'-' + W'&0
-
8/16/2019 final project report.docx
15/87
:0 S@STE DESI5N
+0 Entity9Relation#hip Dia*ra%
-
8/16/2019 final project report.docx
16/87
80 DATA DICTIONAR@
TA7LE NA E >alb$%$pload
TA7LE NA E >#on*$pload
-
8/16/2019 final project report.docx
17/87
TA7LE NA E >#$#eri
-
8/16/2019 final project report.docx
18/87
60 OD!LES
o%e pa*e od$leT ,- ,- + W 7*'= -*& / ' + MUSIC PORTAL 8 -,+ .H & 0, & /+ - &-( - &: 0=,/) * /
-
8/16/2019 final project report.docx
19/87
20 So$rce code
Admin.aspx.csusing System;using System.Collections;
using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI. tmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.Web!arts;using System."ml.Linq;
public partial class admin # System.Web.UI. !age$ protected %oid !age&Load' ob(ect sender) *%entArgs e+ $ if 'Session ,, null + $ -esponse.-edirect' adminlogin.aspx +; / / protected %oid Lin01utton2&Clic0' ob(ect sender) *%entArgs e+ $ -esponse.-edirect' uploadsong.aspx +; / protected %oid Lin01utton3&Clic0' ob(ect sender) *%entArgs e+ $ -esponse.-edirect' admin&users&%ie4.aspx +;
/ protected %oid Lin01utton2&Clic02' ob(ect sender) *%entArgs e+ $
Session.Abandon'+; Session.-emo%eAll'+;
-esponse.-edirect' adminlogin.aspx +; //
-
8/16/2019 final project report.docx
20/87
A0=,/. -%;56 7 !age Language , C8 9aster!age:ile , erits , admin 6?
5asp #Content Content!lace olderID , Content!lace older2 runat , ser%er ?5asp #!anel ID , !anel2 runat , ser%er @isible , rue ?
5asp #Label ID , Label3 runat , ser%er ext , Welcome 1ac0Color , 8::::CC :ontB1old , rue :ontBSi e , Large eig>t , = px Widt> , EFpx ?5< asp #Label ? 5asp #Label ID , Label2 runat , ser%er 1ac0Color , 8::::CC :ontB1old , rue :ontBSi e , Large eig>t , ==px Widt> , 2GGpx ? Admin 5< asp #Label ? 5di% style , float # rig>t ; ? 5asp #Lin01utton ID , Lin01uttonH runat , ser%er :ontB1old , rue :ontBSi e , Large eig>t , =2px
Widt> , 2H2px onclic0 , Lin01utton2&Clic02 ? logout 5< asp #Lin01utton ? 5< di% ?
5< asp #!anel ?5di% ? 5asp # Lin01utton ID , Lin01utton2 runat , ser%er onclic0 , Lin01utton2&Clic0
1ac0Color , ello4 :ontB1old , rue :ontBSi e , Larger :oreColor , -ed
1orderStyle , Double Widt> , 2J=px ? UploadSong 5< asp # Lin01utton ?
Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;
5asp # Lin01utton ID , Lin01utton3 runat , ser%er
onclic0 , Lin01utton3&Clic0
1ac0Color , ello4 :ontB1old , rue :ontBSi e , Larger :oreColor , -ed 1orderStyle , Double Widt> , 2J2px ? @ie4
Users 5< asp #Lin01utton ?
Knbsp;Knbsp;Knbsp;Knbsp;
5asp # Lin01utton ID , Lin01utton= runat , ser%er !ost1ac0Url , , 2J3px ? Upload Album 5< asp #Lin01utton ?
Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;
5asp # Lin01utton ID , Lin01utton runat , ser%er 1ac0Color , ello4 :ontB1old , rue :ontBSi e , Larger :oreColor , -ed !ost1ac0Url , o4&all&albums.aspx 1orderStyle , Double
Widt> , 2J2px ? S>o4 All Albums 5< asp #Lin01utton ? 5br
-
8/16/2019 final project report.docx
21/87
5< di% ?
5< asp #Content ?
admin&users&%ie4.aspx.csusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI. tmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.Web!arts;using System."ml.Linq;
public partial class admin&users&%ie4 # System.Web.UI. !age
$ protected %oid !age&Load' ob(ect sender) *%entArgs e+ $
/ protected %oid Lin01utton2&Clic0' ob(ect sender) *%entArgs e+ $ -esponse.-edirect' uploadsong.aspx +; / protected %oid Lin01utton3&Clic0' ob(ect sender) *%entArgs e+ $ -esponse.-edirect' admin&users&%ie4.aspx +; / protected %oid Lin01utton=&Clic0' ob(ect sender) *%entArgs e+ $ -esponse.-edirect' albumupload.aspx +; / protected %oid Lin01utton &Clic0' ob(ect sender) *%entArgs e+ $ -esponse.-edirect' s>o4&all&albums.aspx +; / protected %oid Lin01uttonH&Clic0' ob(ect sender) *%entArgs e+ $ Session.Abandon'+; Session.-emo%eAll'+;
-esponse.-edirect' adminlogin.aspx +; //
admin&users&%ie4.aspx56 7 !age Language , C8 9aster!age:ile , erits , admin&users&%ie4 6?
-
8/16/2019 final project report.docx
22/87
5asp #Content Content!lace olderID , Content!lace older2 runat , ser%er ?5asp #!anel ID , !anel2 runat , ser%er @isible , rue ?
5asp #Label ID , LabelH runat , ser%er ext , Welcome 1ac0Color , 8::::CC :ontB1old , rue :ontBSi e , Large eig>t , = px Widt> , EFpx ?5< asp #Label ?
5asp #Label ID , LabelF runat , ser%er 1ac0Color , 8::::CC :ontB1old , rue :ontBSi e , Large eig>t , ==px Widt> , 2GGpx ? Admin 5< asp #Label ? 5di% style , float # rig>t ; ? 5asp #Lin01utton ID , Lin01uttonH runat , ser%er :ontB1old , rue :ontBSi e , Large eig>t , =2px
Widt> , 2H2px onclic0 , Lin01uttonH&Clic0 ? logout 5< asp #Lin01utton ? 5< di% ? 5< asp #!anel ? 5di% ? 5asp # Lin01utton ID , Lin01utton2 runat , ser%er onclic0 , Lin01utton2&Clic0
1ac0Color , ello4 :ontB1old , rue :ontBSi e , Larger :oreColor , -ed
1orderStyle , Double Widt> , 2J=px ? UploadSong 5< asp # Lin01utton ?
Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;
5asp # Lin01utton ID , Lin01utton3 runat , ser%er
onclic0 , Lin01utton3&Clic0 1ac0Color , ello4 :ontB1old , rue :ontBSi e , Larger
:oreColor , -ed 1orderStyle , Double Widt> , 2J2px ? @ie4
Users 5< asp #Lin01utton ?
Knbsp;Knbsp;Knbsp;Knbsp;
5asp # Lin01utton ID , Lin01utton= runat , ser%er 1ac0Color , ello4 :ontB1old , rue
:ontBSi e , Larger :oreColor , -ed 1orderStyle , Double Widt> , 2J3px
onclic0 , Lin01utton=&Clic0 ? Upload Album 5< asp #Lin01utton ?
Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;
5asp # Lin01utton ID , Lin01utton runat , ser%er 1ac0Color , ello4 :ontB1old , rue :ontBSi e , Larger :oreColor , -ed
1orderStyle , Double Widt> , 2J2px onclic0 , Lin01utton &Clic0 ? S>o4 All Albums 5< asp #Lin01utton ? 5br
-
8/16/2019 final project report.docx
23/87
5br
-
8/16/2019 final project report.docx
24/87
public partial class admin # System.Web.UI. !age$ protected %oid !age&Load' ob(ect sender) *%entArgs e+ $
/ protected %oid 1utton2&Clic0' ob(ect sender) *%entArgs e+ $ if ' ext1ox2. ext ,, admin K ext1ox3. ext ,, admin + $ SessionR username , admin ; -esponse.-edirect' admin.aspx +; / else Label=. ext , In%alid Login ry Again T ; //
adminlogin.aspx56 7 !age Language , C8 9aster!age:ile , erits , admin 6?
5asp #Content Content!lace olderID , Content!lace older2 runat , ser%er ? 5di% ?
5 table align , center style , borderBstyle # ridge ; borderB4idt> #t>ic0 ; >eig>t # 3 Fpx ; 4idt> # H36 ; ? 5 tr ? 5 td colspan , 3 style , textBalign # center ? AD9IMIS -A O- LO IM 5< td ?
5< tr ? 5 tr ? 5 td ? 5asp #Label ID , Label2 runat , ser%er :ontBMames , centurygot>ic
:oreColor , blac0 ext , User Mame ?5< asp #Label ? 5< td ? 5 td ? 5asp # ext1ox ID , ext1ox2 runat , ser%er Widt> , 2HGpx ?5< asp # ext1ox ? Knbsp; 5asp # -equired:ield@alidator ID , -equired:ield@alidator2runat , ser%er
Control o@alidate , ext1ox2 *rror9essage , Q :oreColor , Lime
@alidation roup , a ?5< asp # -equired:ield@alidator ? 5< td ? 5< tr ? 5 tr ? 5 td ? 5asp #Label ID , Label3 runat , ser%er :ontBMames , centurygot>ic
:oreColor , blac0 ext , !ass4ord ?5< asp # Label ? 5< td ?
-
8/16/2019 final project report.docx
25/87
5 td ? 5asp # ext1ox ID , ext1ox3 runat , ser%er
ext9ode , !ass4ord Widt> , 2HGpx ?5< asp # ext1ox ? Knbsp; 5asp # -equired:ield@alidator ID , -equired:ield@alidator3runat , ser%er
Control o@alidate , ext1ox3 *rror9essage , Q :oreColor , Lime
@alidation roup , a ?5< asp # -equired:ield@alidator ? 5< td ? 5< tr ? 5 tr ? 5 td colspan , 3 ? 5asp #1utton ID , 1utton2 runat , ser%er :ontBMames , century got>ic
onclic0 , 1utton2&Clic0 ext , Login @alidation roup , a
-
8/16/2019 final project report.docx
26/87
Image1utton3.Attributes.Add' onmouseo%er )src, images
-
8/16/2019 final project report.docx
27/87
ImageUrl ,
-
8/16/2019 final project report.docx
28/87
5< >tml ?
albumsong.aspx.csusing System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI. tmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.Web!arts;
using System."ml.Linq;using System.Data.SqlClient;
public partial class Default= # System.Web.UI. !age$ string str; protected %oid !age&Load' ob(ect sender) *%entArgs e+ $ str , SessionR song . oString'+;
SqlConnection con , ne4 SqlConnection '+; con.ConnectionString , 7 Data Source,.XSYL*"!-*SS;Attac>Db:ilename,VdatadirectoryVXdatabase.mdf;Integrated Security, rue;User Instance, rue ; SqlCommand cmd , ne4 SqlCommand '+; cmd.Connection , con; cmd.Command ext , select Q from albumupload 4>ere album, Z str Z
; con.Open'+; SqlData-eader dr , cmd.*xecute-eader'+; [email protected] , dr; [email protected]'+; Label3. ext , SessionR song . oString'+; con.Close'+;
/
/
albumsong.aspx56 7 !age Language , C8 9aster!age:ile , erits , Default=
itle , Untitled !age 6?
-
8/16/2019 final project report.docx
29/87
5asp #Content ID , Content2 Content!lace olderID , >ead -unat , Ser%er ?5< asp #Content ?5asp #Content ID , Content3 Content!lace olderID , Content!lace older2 -unat , Ser%er ? 5di% style , bac0ground # 8ffffff ; ?5 >3 ?5 asp #Label ID , Label2 runat , ser%er
ext , Album name# ?5< asp #Label ? Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp; 5 asp #Label ID , Label3 runat , ser%er ?5< asp #Label ?5< >3 ?5< di% ? 5 br
-
8/16/2019 final project report.docx
30/87
using System.Web.UI. tmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.Web!arts;using System."ml.Linq;using System.IO;using System.Data.SqlClient;
public partial class albumupload # System.Web.UI. !age$ SqlConnection con , ne4 SqlConnection '+; protected %oid !age&Load' ob(ect sender) *%entArgs e+ $ con.ConnectionString , 7 Data Source,.XSYL*"!-*SS;Attac>Db:ilename,VdatadirectoryVXdatabase.mdf;Integrated Security, rue;User Instance, rue ; /
protected %oid -epeater2&ItemCommand' ob(ect source)-epeaterCommand*%entArgs e+ $
-esponse.Add eader' contentBdisposition ) attac>ment;filename, Ze.CommandArgument+; -esponse.Write:ile'e.CommandArgument. oString'++; -esponse.*nd'+;
/ static int i , G; public %oid get%al'+ $
SqlCommand cmd , ne4 SqlCommand '+; cmd.Connection , con; cmd.Command ext , select count'id&no+ from albumupload ; con.Open'+; i , Con%ert . oInt=3'cmd.*xecuteScalar'++; con.Close'+; ere id&no, Z i) con+;
Data able dt , ne4 Data able '+; ad.:ill'dt+; rp.DataSource , dt; rp.Data1ind'+; / protected %oid 1utton2&Clic02' ob(ect sender) *%entArgs e+ $
SqlCommand cmd , ne4 SqlCommand '+; cmd.Connection , con; if ':ileUpload2. as:ile+ $
-
8/16/2019 final project report.docx
31/87
string ext , !at> . et*xtension':ileUpload2.:ileMame+; if ''ext ,, .mp= + VV 'ext ,, .4ma ++ $ :ileUpload2.Sa%eAs'Ser%er.9ap!at>' XXuploadXX + Z:ileUpload2.:ileMame+; cmd.Command ext , insert intoalbumupload'songname)songaddress)album)singer+%alues'7songname)7songaddress)7album)7singer+ ;
cmd.!arameters.AddWit>@alue' 7songname ):ileUpload2.:ileMame+; cmd.!arameters.AddWit>@alue' 7songaddress ) XXuploadXX Z:ileUpload2.:ileMame+; cmd.!arameters.AddWit>@alue' 7album ) ext1ox2. ext+; cmd.!arameters.AddWit>@alue' 7singer ) ext1ox3. ext+; con.Open'+; try $ int i , G; i , cmd.*xecuteMonYuery'+;
if 'i ? G+ $ s>o4'+; / Label2. ext , mp= Upload ; / catc> ' *xception ex+ $ Label2. ext , U 9ust Login first ;
/
con.Close'+;
s>o4'+; / else $ Label2. ext , !lease select any file ; /
/ / protected %oid Lin01utton2&Clic02' ob(ect sender) *%entArgs e+ $
Session.Abandon'+; Session.-emo%eAll'+;
-esponse.-edirect' adminlogin.aspx +; / protected %oid Lin01utton2&Clic0' ob(ect sender) *%entArgs e+ $ -esponse.-edirect' uploadsong.aspx +; / protected %oid Lin01utton3&Clic0' ob(ect sender) *%entArgs e+ $
-
8/16/2019 final project report.docx
32/87
-esponse.-edirect' admin&users&%ie4.aspx +; //
albumupload.aspx56 7 !age Language , C8 9aster!age:ile , erits , albumupload 6?
5asp #Content Content!lace olderID , Content!lace older2 runat , ser%er ?
5asp #!anel ID , !anel2 runat , ser%er @isible , rue ?
5asp #Label ID , LabelH runat , ser%er ext , Welcome 1ac0Color , 8::::CC :ontB1old , rue :ontBSi e , Large eig>t , = px Widt> , EFpx ?5< asp #Label ? 5asp #Label ID , Label2G runat , ser%er 1ac0Color , 8::::CC :ontB1old , rue
:ontBSi e , Large eig>t , ==px Widt> , 2GGpx ? Admin 5< asp #Label ? 5di% style , float # rig>t ; ? 5asp #Lin01utton ID , Lin01uttonH runat , ser%er :ontB1old , rue :ontBSi e , Large eig>t , =2px
Widt> , 2H2px onclic0 , Lin01utton2&Clic02 ? logout 5< asp #Lin01utton ? 5< di% ? 5< asp #!anel ? 5di% ? 5asp # Lin01utton ID , Lin01utton2 runat , ser%er onclic0 , Lin01utton2&Clic0
1ac0Color , ello4 :ontB1old , rue :ontBSi e , Larger :oreColor , -ed
1orderStyle , Double Widt> , 2J=px ? Upload
Song 5< asp # Lin01utton ?
Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;
5asp # Lin01utton ID , Lin01utton3 runat , ser%er onclic0 , Lin01utton3&Clic0
1ac0Color , ello4 :ontB1old , rue :ontBSi e , Larger :oreColor , -ed
1orderStyle , Double Widt> , 2J2px ? @ie4Users 5< asp #Lin01utton ?
Knbsp;Knbsp;Knbsp;Knbsp;
5asp # Lin01utton ID , Lin01utton= runat , ser%er !ost1ac0Url , , 2J3px ? Upload Album 5< asp #Lin01utton ?
Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;
-
8/16/2019 final project report.docx
33/87
5asp # Lin01utton ID , Lin01utton runat , ser%er 1ac0Color , ello4
:ontB1old , rue :ontBSi e , Larger :oreColor , -ed !ost1ac0Url , o4&all&albums.aspx 1orderStyle , Double
Widt> , 2J2px ? S>o4 All Albums 5< asp #Lin01utton ? 5br
-
8/16/2019 final project report.docx
34/87
5 tr ?5 td ?5 asp # Label ID , LabelH runat , ser%er ext , 568*%al' li0es +6? ?5< asp #Label ?
Knbsp; Knbsp; 5 asp # Label ID , Label runat , ser%er ext , li0es ?5< asp #Label ?5< td ?5< tr ?
5< table ?5< Item emplate ?
5< asp # -epeater ?
5br
-
8/16/2019 final project report.docx
35/87
using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI. tmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.Web!arts;using System."ml.Linq;using System.Data.SqlClient;using System.Dra4ing;
public partial class capture # System.Web.UI. !age$ protected %oid !age&Load' ob(ect sender) *%entArgs e+ $ 1itmap b , ne4 1itmap '2JG) H2+; rap>ics g , rap>ics .:romImage'b+;
g.Clear' Color .Cadet1lue+; g. ext-endering int , System.Dra4ing. ext. ext-endering int .AntiAlias; :ont f , ne4 :ont ' arial ) =G) :ontStyle .-egular+; string randomstr , generatepass4ord'+; SessionR randomstr , randomstr; g.Dra4String'randomstr) f) 1rus>es .W>ite) 3) 3+; -esponse.Content ype , image
-
8/16/2019 final project report.docx
36/87
using System;using System.Configuration;using System.Data;using System.Linq;using System.Web;
using System.Web.Security;using System.Web.UI;using System.Web.UI. tmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.Web!arts;using System."ml.Linq;
public partial class &Default # System.Web.UI. !age $ protected %oid !age&Load' ob(ect sender) *%entArgs e+ $
/ protected %oid Lin01utton3&Clic0' ob(ect sender) *%entArgs e+ $
/ protected %oid Image1utton2&Clic0' ob(ect sender) ImageClic0*%entArgs e+ $ SessionR song , Label2. ext; -esponse.-edirect' albumsong.aspx +; / protected %oid Image1utton3&Clic0' ob(ect sender) ImageClic0*%entArgs e+ $ SessionR song , Label3. ext; -esponse.-edirect' albumsong.aspx +; / protected %oid Image1utton=&Clic0' ob(ect sender) ImageClic0*%entArgs e+ $ SessionR song , Label=. ext; -esponse.-edirect' albumsong.aspx +; / protected %oid Image1utton &Clic0' ob(ect sender) ImageClic0*%entArgs e+ $ SessionR song , Label . ext; -esponse.-edirect' albumsong.aspx +; / protected %oid Image1uttonH&Clic0' ob(ect sender) ImageClic0*%entArgs e+ $
SessionR song , LabelH. ext; -esponse.-edirect' albumsong.aspx +; / protected %oid Image1uttonF&Clic0' ob(ect sender) ImageClic0*%entArgs e+ $ SessionR song , LabelF. ext; -esponse.-edirect' albumsong.aspx +; //
-
8/16/2019 final project report.docx
37/87
Default.aspx56 7 !age Language , C8 9aster!age:ile , erits , &Default 6?
5asp #Content Content!lace olderID , Content!lace older2 runat , ser%er ?
5di% style , bac0groundBcolor#8ffffff; ? 5>2 ? Latest 1olly4ood Songs # 5< >2 ? 5< di% ?
5center ? 5di% style , bac0groundBcolor#8ffffff;4idt>#EGGpx; ? 5script type , text, EGGpxeig>t%ar slider>eig>t, 2H pxtslideR2 , 5a >ref, maximum&3G23.aspx target,&blan0?5imgsrc, imagesref, coc0tail&3G23.aspx target,&blan0?5imgsrc, imagesref, ferrari&0i&sa4aari&3G23.aspx target,&blan0?5imgsrc, imagesref, s>ang>ai&3G23.aspx target,&blan0?5imgsrc, imagesang>ai.(pg border,G alt, S>ang>ai 9p= Songs ?5tslideRG , 5a >ref, teri&meri&0a>aani&3G23.aspx target,&blan0?5imgsrc, imagesaani.(pg border,G alt, eri 9eri [a>aani 9p=Songs ?5tslideR= , 5a >ref, qasam&se&qasam&se&3G23.aspx target,&blan0?5imgsrc, images
-
8/16/2019 final project report.docx
38/87
leftrig>tslideR , 5a >ref, gangs&of&4asseypur&3G23.aspx target,&blan0?5imgsrc, imagesref, bol&bac>c>an&3G23.aspx target,&blan0?5imgsrc, imagesc>an.(pg border,G alt, 1ol 1ac>c>an 9p= Songs ?5o4gap,H
o4gapZ px/else if 'document.layers+$ns&slide,document.ns&slidemenu.document.ns&slidemenu3ns&slide3,document.ns&slidemenu.document.ns&slidemenu=ns&slide.document.4rite'leftrig>tslide+ns&slide.document.close'+actual4idt>,ns&slide.document.4idt>ns&slide3.left,actual4idt>Zslides>o4gapns&slide3.document.4rite'leftrig>tslide+ns&slide3.document.close'+/lefttime,setInter%al' slideleft'+ )=G+/4indo4.onload,fillup
function slideleft'+$if 'iedom+$if 'parseInt'cross&slide.style.left+?'actual4idt>Q'B2+ZJ++cross&slide.style.left,parseInt'cross&slide.style.left+BcopyspeedZ pxelsecross&slide.style.left,parseInt'cross&slide3.style.left+Zactual4idt>Zslides>o4gapZ px
-
8/16/2019 final project report.docx
39/87
if 'parseInt'cross&slide3.style.left+?'actual4idt>Q'B2+ZJ++cross&slide3.style.left,parseInt'cross&slide3.style.left+BcopyspeedZ pxelsecross&slide3.style.left,parseInt'cross&slide.style.left+Zactual4idt>Zslides>o4gapZ px
/else if 'document.layers+$if 'ns&slide.left?'actual4idt>Q'B2+ZJ++ns&slide.leftB,copyspeedelsens&slide.left,ns&slide3.leftZactual4idt>Zslides>o4gap
if 'ns&slide3.left?'actual4idt>Q'B2+ZJ++ns&slide3.leftB,copyspeedelsens&slide3.left,ns&slide.leftZactual4idt>Zslides>o4gap//
if 'iedomVVdocument.layers+$
4it> 'document+$document.4rite' 5table border, G cellspacing, G cellpadding, G ?5td? +if 'iedom+$4rite' 5di%style, position#relati%e;4idt># Zslider4idt>Z ;>eig>t# Zslider>eig>tZ ;o%erflo4#>idden ? +4rite' 5di%style, position#absolute;4idt># Zslider4idt>Z ;>eig>t# Zslider>eig>tZ ;bac0groundBcolor# ZslidebgcolorZ on9ouseo%er, copyspeed,Gon9ouseout, copyspeed,slidespeed ? +4rite' 5di% id, test3 style, position#absolute;left#Gpx;top#Gpx ?5eig>t, Zslider>eig>tZname, ns&slidemenu bgColor, ZslidebgcolorZ ? +4rite' 5layer name, ns&slidemenu3 left,G top,G on9ouseo%er, copyspeed,Gon9ouseout, copyspeed,slidespeed ?5
-
8/16/2019 final project report.docx
40/87
5di% style , float#left;>eig>t# 22px; 4idt>#=GGpx;bac0groundBcolor#8ffffff; ? 5>3 ? 9ost !opular 5< >3 ? 5>=? Albums# 5< >= ? 5br
-
8/16/2019 final project report.docx
41/87
5 tr ?5 td ? 5asp # Image ID , Image runat , ser%er eig>t , 23Epx
ImageUrl ,
-
8/16/2019 final project report.docx
42/87
google&ad&4idt>,==F;google&ad&>eig>t,3JG;google&ad&format, ==Fx3JG&as ;google&ad&type, text&image ;google&ad&>ost&c>annel, GGG2ZSGG22ZLGGG2 ;google&color&border, :::::: ;google&color&bg, :::::: ;google&color&lin0, GGGGGG;google&color&url, 3 E:A= ;google&color&text, 333333 ;
-
8/16/2019 final project report.docx
43/87
public partial class 9aster!age # System.Web.UI. 9aster!age$ protected %oid !age&Load' ob(ect sender) *%entArgs e+ $ Image1utton2.Attributes.Add' onmouseo%er )
src, imagesome&button2.png +; Image1utton2.Attributes.Add' onmouseout )
src, imagesome&button.png +; Image1utton3.Attributes.Add' onmouseo%er )
src, images
-
8/16/2019 final project report.docx
44/87
Label . ext , !lease enter t>e correct username ; /
/
protected %oid 1utton3&Clic02' ob(ect sender) *%entArgs e+ $ if ' ext1ox=. ext ,, + $
/ else $ Content!lace older2.@isible , false ; rid@ie42.@isible , true ;
rid@ie43.@isible , false ; ext1ox . ext , ; /
/ protected %oid 1utton=&Clic0' ob(ect sender) *%entArgs e+ $ if ' ext1ox . ext ,, + $ / else $
Content!lace older2.@isible , false ; rid@ie42.@isible , false ; rid@ie43.@isible , true ; ext1ox=. ext , ; / / protected %oid Image1utton3&Clic0' ob(ect sender) ImageClic0*%entArgs e+ $ if 'SessionR username ,, null + $ !anel2.@isible , false ; / else $
/ //
9aster!age.master56 7 9aster Language , C8 Auto*%entWireup , true Code:ile , 9aster!age.master.cs In>erits , 9aster!age 6?
-
8/16/2019 final project report.docx
45/87
5T DOC !* >tml !U1LIC B
-
8/16/2019 final project report.docx
46/87
Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp; 5asp #Label ID , Label3 runat , ser%er :oreColor , 8CEG2HC ext , !ass4ord
:ontBSi e , Large ?5< asp # Label ?
5br
-
8/16/2019 final project report.docx
47/87
5< td ? 5< tr ? 5< table ? 5< center ? 5< di% ? 5asp #Label ID , LabelF runat , ser%er :ontB1old , rue :ontBSi e , 9edium eig>t , 3Npx ext , 1y Song Mame Widt> , 22=px 1ac0Color , 8CEG2HC
:oreColor , ello4 ?5< asp # Label ? 5 asp # ext1ox ID , ext1ox runat , ser%er eig>t , 3Fpx Widt> , 3F3px ?5< asp # ext1ox ? 5 asp #1utton ID , 1utton= runat , ser%er onclic0 , 1utton=&Clic0
ext , Searc> eig>t , 3Epx Widt> , JGpx
-
8/16/2019 final project report.docx
48/87
ConnectionString , 56P ConnectionStrings#ConnectionString 6? SelectCommand , S*L*C Rsongname ) Rsongaddress ) Ralbum )
Rsinger :-O9 Ralbumupload W *-* 'Ralbum li0e 6 Z7albumZ 6 + ? 5Select!arameters ? 5asp #Control!arameter ControlID , ext1ox= Mame, album !ropertyMame , ext
ype , String Default@alue , 6
-
8/16/2019 final project report.docx
49/87
5 br
-
8/16/2019 final project report.docx
50/87
Image1utton3.Attributes.Add' onmouseo%er )src, imageseability .MoCac>e+; -esponse.Cac>e.SetMoStore'+; / catc> $
/
/ protected %oid Image1utton2&Clic0' ob(ect sender) ImageClic0*%entArgs e+ $
/
protected %oid 1utton3&Clic02' ob(ect sender) *%entArgs e+ $ if ' ext1ox=. ext ,, + $
/ else $ Content!lace older2.@isible , false ; rid@ie42.@isible , true ; rid@ie43.@isible , false ; ext1ox . ext , ; /
/ protected %oid 1utton=&Clic0' ob(ect sender) *%entArgs e+ $
-
8/16/2019 final project report.docx
51/87
if ' ext1ox . ext ,, + $ / else $
Content!lace older2.@isible , false ; rid@ie42.@isible , false ; rid@ie43.@isible , true ; ext1ox=. ext , ; / / protected %oid Lin01utton2&Clic02' ob(ect sender) *%entArgs e+ $
Session.Abandon'+; Session.-emo%eAll'+;
-esponse.-edirect' Default.aspx +; / protected %oid Lin01utton2&Clic0' ob(ect sender) *%entArgs e+
$ -esponse.-edirect' userupload.aspx +; / protected %oid Lin01utton3&Clic0' ob(ect sender) *%entArgs e+ $ -esponse.-edirect' user&Do4nload.aspx +; / protected %oid rid@ie42&-o4Command' ob(ect sender)
rid@ie4Command*%entArgs e+ $ -esponse.Add eader' contentBdisposition ) attac>ment;filename, Ze.CommandArgument+; -esponse.Write:ile'e.CommandArgument. oString'++; -esponse.*nd'+;
/ protected %oid rid@ie43&-o4Command' ob(ect sender)
rid@ie4Command*%entArgs e+ $ -esponse.Add eader' contentBdisposition ) attac>ment;filename, Ze.CommandArgument+; -esponse.Write:ile'e.CommandArgument. oString'++; -esponse.*nd'+; //
9aster!age3&user.master
56 7 9aster Language , C8 Auto*%entWireup , true Code:ile , 9aster!age3&user.master.cs In>erits , 9aster!age3&user 6?
5T DOC !* >tml !U1LIC B
-
8/16/2019 final project report.docx
52/87
5< asp #Content!lace older ? 5 lin0 rel , Styles>eet type , textref , StyleS>eet.css
-
8/16/2019 final project report.docx
53/87
5di% ?5 center style , marginBleft# Gpx ?
5asp # Image1utton ID , Image1utton2 runat , ser%er ImageUrl ,
-
8/16/2019 final project report.docx
54/87
5 asp # ext1ox ID , ext1ox runat , ser%er eig>t , 3Fpx Widt> , 3F3px ?5< asp # ext1ox ? 5 asp #1utton ID , 1utton= runat , ser%er onclic0 , 1utton=&Clic0
ext , Searc> eig>t , 3Epx Widt> , JGpx
-
8/16/2019 final project report.docx
55/87
5 center ?5 asp # rid@ie4 ID , rid@ie43 runat , ser%er
Auto enerateColumns , :alse DataSourceID , SqlDataSource3 1ac0Color , 8D*1AJ 1orderColor , 8D*1AJ 1orderWidt> , 2px Cell!adding , =
@isible , :alse
Widt> , JGJpx 1orderStyle , Mone CellSpacing , 3 onro4command , rid@ie43&-o4Command ? 5 -o4Style 1ac0Color , 8:::N*N :oreColor , 8JC H2G
-
8/16/2019 final project report.docx
56/87
5br
-
8/16/2019 final project report.docx
57/87
5 tr ?5 td ? 5asp # Image ID , ImageF runat , ser%er eig>t , 23Epx
ImageUrl ,
-
8/16/2019 final project report.docx
58/87
5< body ?5< >tml ?
searc>bar.aspx56 7 !age Language , C8 9aster!age:ile , bar.aspx.cs In>erits , searc>bar
itle , Untitled !age 6?
5asp #Content ID , Content2 Content!lace olderID , >ead -unat , Ser%er ?5< asp #Content ?5asp #Content ID , Content3 Content!lace olderID , Content!lace older2 -unat , Ser%er ? 5asp # rid@ie4 ID , rid@ie42 runat , ser%er Auto enerateColumns , :alse
DataSourceID , SqlDataSource3
onselectedindexc>anged , rid@ie42&SelectedIndexC>anged ? 5Columns ? 5asp # 1ound:ield Data:ield , songname eader ext , songname
Sort*xpression , songname
-
8/16/2019 final project report.docx
59/87
using System.Web.UI.WebControls;using System.Web.UI.WebControls.Web!arts;using System."ml.Linq;using System.Data.SqlClient;
public partial class Default3 # System.Web.UI. !age$ protected %oid !age&Load' ob(ect sender) *%entArgs e+ $
/
protected %oid Custom@alidator2&Ser%er@alidate2' ob(ect source)Ser%er@alidate*%entArgs args+ $ SqlConnection con , ne4 SqlConnection '+; con.ConnectionString , 7 Data Source,.XSYL*"!-*SS;Attac>Db:ilename,VdatadirectoryVXdatabase.mdf;Integrated Security, rue;User Instance, rue ;
SqlCommand ob(cmd , ne4 SqlCommand ' Select Q from suseri 4>ereusername, Z args.@alue Z ) con+; SqlData-eader ob(-eader; con.Open'+; ob(-eader , ob(cmd.*xecute-eader'+;
if 'ob(-eader. as-o4s+ $ args.Is@alid , false ; / else $ args.Is@alid , true ; / con.Close'+; /
protected %oid Custom@alidator2&Ser%er@alidate' ob(ect source)Ser%er@alidate*%entArgs args+ $
/ protected %oid 1utton2&Clic0' ob(ect sender) *%entArgs e+ $ if 'T!age.Is@alid+ $ return ; / if ' ext1oxN. ext ,, SessionR randomstr . oString'++ $ LabelJ.:oreColor , System.Dra4ing. Color . reen; LabelJ. ext , O0 ; SqlConnection con , ne4 SqlConnection '+;
-
8/16/2019 final project report.docx
60/87
con.ConnectionString , 7 DataSource,.XSYL*"!-*SS;Attac>Db:ilename,VdatadirectoryVXdatabase.mdf;IntegratedSecurity, rue;User Instance, rue ; SqlCommand cmd , ne4 SqlCommand '+; cmd.Connection , con; cmd.Command ype , Command ype .Stored!rocedure; cmd.Command ext , dbo.Stored!rocedure2 ; cmd.!arameters.AddWit>@alue' username ) ext1oxF. ext+; cmd.!arameters.AddWit>@alue' pass4ord ) ext1ox2. ext+; cmd.!arameters.AddWit>@alue' confirm ) ext1ox3. ext+; cmd.!arameters.AddWit>@alue' email ) ext1ox=. ext+; cmd.!arameters.AddWit>@alue' question ) ext1ox . ext+; cmd.!arameters.AddWit>@alue' ans4er ) ext1oxH. ext+;
con.Open'+; cmd.*xecuteMonYuery'+; con.Close'+; -esponse.-edirect' aftersignup.aspx +; / else $ LabelJ.:oreColor , System.Dra4ing. Color .-ed; LabelJ. ext , try again ;
/
/
/
signup.aspx56 7 !age Language , C8 9aster!age:ile , erits , Default3 6?
5asp #Content Content!lace olderID , Content!lace older2 runat , ser%er ? 5center ? 5asp #!anel ID , !anel2 runat , ser%er ?
5 table id , t2 runat , ser%er bgcolor , 8::CCGG border , G style , %erticalBalign # G6; >eig>t # JEpx ; 4idt> # EGGpx; ?
5 tr ?5 t> colspan ,3 bgcolor , 8CCGGGG ? 5asp # Label ID , LabelN runat , ser%er
ext , Sign Up :or Me4 Account 1ac0Color , 8::CCGG ?5< asp #Label ?5< t> ?5< tr ? 5 tr ?5 td ? 5 asp #Label ID , Label2 runat , ser%er ext , Username ?5< asp #Label ? 5< td ?5 td ? Knbsp;Knbsp;Knbsp; 5asp # ext1ox ID , ext1oxF runat , ser%er ?5< asp # ext1ox ?
-
8/16/2019 final project report.docx
61/87
5asp #Custom@alidator ID , Custom@alidator2 runat , ser%er Control o@alidate , ext1oxF *rror9essage , UserMame Already In
Use onser%er%alidate , Custom@alidator2&Ser%er@alidate2
@alidation roup , % ? QQ5< asp #Custom@alidator ? 5asp #-equired:ield@alidator ID , -equired:ield@alidator2 runat , ser%er
Control o@alidate , ext1oxF *rror9essage , *nter t>e user name @alidation roup , % ? QQ5< asp #-equired:ield@alidator ? 5< td ?5< tr ? 5 tr ?5 td ?5 asp #Label ID , Label3 runat , ser%er
ext , !ass4ord ?5< asp # Label ?5< td ?5 td ? 5asp # ext1ox ID , ext1ox2 runat , ser%er style , marginBbottom # Gpx
ext9ode , !ass4ord 9axLengt> , 3G ?5< asp # ext1ox ? 5asp # -equired:ield@alidator ID , -equired:ield@alidator3 runat , ser%er
Control o@alidate , ext1ox2 *rror9essage , *nter t>e pass4ord @alidation roup , % ? QQ5< asp #-equired:ield@alidator ?
5< td ?5< tr ? 5 tr ?5 td ?5 asp #Label ID , Label= runat , ser%er ext , Confirm
!ass4ord ?5< asp #Label ?5< td ?5 td ? 5asp # ext1ox ID , ext1ox3 runat , ser%er ext9ode , !ass4ord ?5< asp # ext1ox ? 5asp # Compare@alidator ID , Compare@alidator2 runat , ser%er
Control oCompare , ext1ox2 Control o@alidate , ext1ox3 *rror9essage , !ass4ord does not matc>
@alidation roup , % ? QQ5< asp #Compare@alidator ? 5< td ?5< tr ? 5 tr ?5 td ?5 asp #Label ID , Label runat , ser%er
ext , *mail ?5< asp #Label ?5< td ?5 td ? Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp; 5asp # ext1ox ID , ext1ox= runat , ser%er ?5< asp # ext1ox ? 5 asp #Custom@alidator ID , Custom@alidator3 runat , ser%er
Control o@alidate , ext1ox= *rror9essage , Custom@alidator @alidation roup , % ? QQ5< asp #Custom@alidator ? 5 asp #-equired:ield@alidator ID , -equired:ield@alidatorH runat , ser%er
Control o@alidate , ext1ox= *rror9essage , *nter t>e email @alidation roup , % ? QQ5< asp #-equired:ield@alidator ? 5 asp #-egular*xpression@alidator ID , -egular*xpression@alidator2 runat , ser%er
Control o@alidate , ext1ox= *rror9essage , *nter %alid emailid
@alidation*xpression , X4Z'RBZ. X4Z+Q7X4Z'RB. X4Z+QX.X4Z'RB. X4Z+Q
@alidation roup , % ? QQ5< asp #-egular*xpression@alidator ? 5< td ?5< tr ? 5 tr ?5 td ?5 asp #Label ID , LabelH runat , ser%er ext , SecurityYuestion ?5< asp #Label ?5< td ?5 td ?5 asp # ext1ox ID , ext1ox runat , ser%er ?5< asp # ext1ox ? 5 asp #-equired:ield@alidator ID , -equired:ield@alidator= runat , ser%er
Control o@alidate , ext1ox *rror9essage , *nter t>e Securityquestion
@alidation roup , % ? QQ5< asp #-equired:ield@alidator ? 5< td ?5< tr ?
-
8/16/2019 final project report.docx
62/87
5 tr ?5 td ?5 asp #Label ID , LabelF runat , ser%er ext , SecurityAns4er ?5< asp #Label ?5< td ?5 td ?5 asp # ext1ox ID , ext1oxH runat , ser%er ?5< asp # ext1ox ? 5 asp #-equired:ield@alidator ID , -equired:ield@alidator runat , ser%er
Control o@alidate , ext1oxH *rror9essage , *nter t>e Securityans4er
@alidation roup , % ? QQ5< asp #-equired:ield@alidator ? 5< td ?5< tr ? 5 tr ?5 td ?5 asp #Image ID , img runat , ser%er ImageUrl ,
-
8/16/2019 final project report.docx
63/87
using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI. tmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.Web!arts;using System."ml.Linq;using System.IO;using System.Data.SqlClient;
public partial class Default= # System.Web.UI. !age$ SqlConnection con , ne4 SqlConnection '+; protected %oid !age&Load' ob(ect sender) *%entArgs e+ $ con.ConnectionString , 7 Data Source,.XSYL*"!-*SS;Attac>Db:ilename,VdatadirectoryVXdatabase.mdf;Integrated Security, rue;User Instance, rue ;
/
protected %oid -epeater2&ItemCommand' ob(ect source)-epeaterCommand*%entArgs e+ $ -esponse.Add eader' contentBdisposition ) attac>ment;filename, Ze.CommandArgument+; -esponse.Write:ile'e.CommandArgument. oString'++; -esponse.*nd'+;
/ static int i , G; public %oid get%al'+ $
SqlCommand cmd , ne4 SqlCommand '+; cmd.Connection , con; cmd.Command ext , select count'id&no+ from songupload ; con.Open'+; i , Con%ert . oInt=3'cmd.*xecuteScalar'++; con.Close'+; ereid&no, Z i) con+;
Data able dt , ne4 Data able '+; ad.:ill'dt+; rp.DataSource , dt; rp.Data1ind'+; / protected %oid 1utton2&Clic02' ob(ect sender) *%entArgs e+
-
8/16/2019 final project report.docx
64/87
$
SqlCommand cmd , ne4 SqlCommand '+; cmd.Connection , con; if ':ileUpload2. as:ile+ $ string ext , !at> . et*xtension':ileUpload2.:ileMame+;
if ''ext ,, .mp= + VV 'ext ,, .4ma ++ $ :ileUpload2.Sa%eAs'Ser%er.9ap!at>' XXuploadXX + Z:ileUpload2.:ileMame+; cmd.Command ext , insert intosongupload'songname)songaddress)uploadby+%alues'7songname)7songaddress)7uploadby+ ;
cmd.!arameters.AddWit>@alue' 7songname ):ileUpload2.:ileMame+; cmd.!arameters.AddWit>@alue' 7songaddress ) XXuploadXX Z:ileUpload2.:ileMame+; cmd.!arameters.AddWit>@alue' 7uploadby ) SessionR username +;
con.Open'+; try $ int i , G; i , cmd.*xecuteMonYuery'+; if 'i ? G+ $ s>o4'+; / Label2. ext , mp= Upload ; / catc> ' *xception ex+ $ Label2. ext , U 9ust Login first ;
/
-
8/16/2019 final project report.docx
65/87
-esponse.-edirect' admin&users&%ie4.aspx +; / protected %oid Lin01utton=&Clic0' ob(ect sender) *%entArgs e+ $ -esponse.-edirect' albumupload.aspx +; / protected %oid Lin01utton &Clic0' ob(ect sender) *%entArgs e+ $ -esponse.-edirect' s>o4&all&albums.aspx +; / protected %oid Lin01uttonH&Clic0' ob(ect sender) *%entArgs e+ $ Session.Abandon'+; Session.-emo%eAll'+;
-esponse.-edirect' adminlogin.aspx +; //
uploadsong.aspx56 7 !age Language , C8 9aster!age:ile , erits , Default= 6?
5asp #Content Content!lace olderID , Content!lace older2 runat , ser%er ?5asp #!anel ID , !anel2 runat , ser%er @isible , rue ?
5asp #Label ID , LabelH runat , ser%er ext , Welcome 1ac0Color , 8::::CC :ontB1old , rue :ontBSi e , Large eig>t , = px Widt> , EFpx ?5< asp #Label ? 5asp #Label ID , LabelF runat , ser%er 1ac0Color , 8::::CC :ontB1old , rue :ontBSi e , Large eig>t , ==px Widt> , 2GGpx ? Admin 5< asp #Label ? 5di% style , float # rig>t ; ? 5asp #Lin01utton ID , Lin01uttonH runat , ser%er :ontB1old , rue :ontBSi e , Large eig>t , =2px
Widt> , 2H2px onclic0 , Lin01uttonH&Clic0 ? logout 5< asp #Lin01utton ? 5< di% ? 5< asp #!anel ? 5di% ? 5asp # Lin01utton ID , Lin01utton2 runat , ser%er onclic0 , Lin01utton2&Clic0
1ac0Color , ello4 :ontB1old , rue :ontBSi e , Larger :oreColor , -ed
1orderStyle , Double Widt> , 2J=px ? UploadSong 5< asp # Lin01utton ?
Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;
5asp # Lin01utton ID , Lin01utton3 runat , ser%er
onclic0 , Lin01utton3&Clic0 1ac0Color , ello4 :ontB1old , rue :ontBSi e , Larger
:oreColor , -ed 1orderStyle , Double Widt> , 2J2px ? @ie4
Users 5< asp #Lin01utton ?
-
8/16/2019 final project report.docx
66/87
Knbsp;Knbsp;Knbsp;Knbsp;
5asp # Lin01utton ID , Lin01utton= runat , ser%er 1ac0Color , ello4 :ontB1old , rue
:ontBSi e , Larger :oreColor , -ed 1orderStyle , Double Widt> , 2J3px
onclic0 , Lin01utton=&Clic0 ? Upload Album 5< asp #Lin01utton ?
Knbsp;Knbsp;Knbsp;Knbsp;Knbsp;
5asp # Lin01utton ID , Lin01utton runat , ser%er 1ac0Color , ello4 :ontB1old , rue :ontBSi e , Larger :oreColor , -ed
1orderStyle , Double Widt> , 2J2px onclic0 , Lin01utton &Clic0 ? S>o4 All Albums 5< asp #Lin01utton ? 5br
-
8/16/2019 final project report.docx
67/87
5< table ?5< Item emplate ?
5< asp # -epeater ?
5br
-
8/16/2019 final project report.docx
68/87
using System.Web.UI;using System.Web.UI. tmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.Web!arts;using System."ml.Linq;
public partial class user&Do4nload # System.Web.UI. !age$ protected %oid !age&Load' ob(ect sender) *%entArgs e+ $
/ protected %oid rid@ie42&-o4Command' ob(ect sender)
rid@ie4Command*%entArgs e+ $
/
protected %oid rid@ie43&-o4Command' ob(ect sender)rid@ie4Command*%entArgs e+
$ -esponse.Add eader' contentBdisposition ) attac>ment;filename, Ze.CommandArgument+; -esponse.Write:ile'e.CommandArgument. oString'++; -esponse.*nd'+;
//
user&Do4nload.aspx=56 7 !age Language , C8 9aster!age:ile , erits , user&Do4nload itle , Untitled !age 6?
5asp #Content ID , Content2 Content!lace olderID , >ead -unat , Ser%er ?5< asp #Content ?5asp #Content ID , Content3 Content!lace olderID , Content!lace older2 -unat , Ser%er ? 5di% style , bac0groundBcolor #W>ite ; >eig>t #2GGGpx ; ?5di% ?
5br
-
8/16/2019 final project report.docx
69/87
5 -o4Style 1ac0Color , 8:::N*N :oreColor , 8JC H2G
-
8/16/2019 final project report.docx
70/87
5br
-
8/16/2019 final project report.docx
71/87
%ie4users.aspx
56 7 !age Language , C8 Auto*%entWireup , true Code:ile , %ie4users.aspx.cs In>erits , %ie4users 6?
5T DOC !* >tml !U1LIC B
-
8/16/2019 final project report.docx
72/87
5+ 6uture s%ope
T ,- %&' *+ 8 - 0 7'% 0 +' 7 ,77 - & & > ,& = /+ '8 & + &
& 7'+- ' -*'% +' ,=%&' ,/ + & ' - & ,/+ & * : 0 + -
% & '&= /* : /0 > &9 %&'* --,/< +,= . E+*.
S' + & & = /9 + ,/ &9 8 ,* ,- = 00 0 ,/ + -9-+ =
-
8/16/2019 final project report.docx
73/87
0 SCREEN S OTS
+0 o%epa*e >
-
8/16/2019 final project report.docx
74/87
-0 Abo$t !# >
-
8/16/2019 final project report.docx
75/87
/0 Si*n$p >
-
8/16/2019 final project report.docx
76/87
4. Lo*in >
-
8/16/2019 final project report.docx
77/87
80 !#er o%e >
60 !pload >
-
8/16/2019 final project report.docx
78/87
20 Download Son* >
-
8/16/2019 final project report.docx
79/87
;0 Search Son*>
-
8/16/2019 final project report.docx
80/87
0 "lay Son*>
+.0 Search Alb$% by Na%e >
-
8/16/2019 final project report.docx
81/87
++0 Search and Download Son* >
+-0 Ad erti#e%ent >
-
8/16/2019 final project report.docx
82/87
+/0 "op$lar Alb$%# >
-
8/16/2019 final project report.docx
83/87
14. Ad%in Lo*in >
+80 Ad%in o%e >
-
8/16/2019 final project report.docx
84/87
16. !pload Alb$% >
+20 Show all alb$%# >
1!. Ter%# And Condition# >
-
8/16/2019 final project report.docx
85/87
-
8/16/2019 final project report.docx
86/87
+ 0 Ad%in iew to $#er#>
2#. Contact In(or%ation >
-
8/16/2019 final project report.docx
87/87
10. BIBLIOGRAPHY
7e&sitesF'77'8,/< 8 -,+ - & & &&,/< +' *& + + ,- %&' *+ & %'&+-.
• ++%B 888.*'0 %&' *+.*'=
• ++%B 888.=-0/.=,*&'-' +.*'= / - 7, & &9 . -%;
• ++%B 888 . '& =-. -%./ +
• ++%B 888. -%./ + ;L, & &9 A ;C'/+&'7T''7 ,+S =%7 S,+
7ook#
F'77'8,/< '' - /0 '' & - 0 +' *'=%7 + + ,- %&' *+ & %'&+-.
• M -+ &,/< C (P % & * )
• S L S & & $, 7 (P % & * )
• .NET $7 * $'' (P % & * )
• P&' --,'/ 7 C : 2/0 E0,+,'/ (P % & * )
• P&' --,'/ 7 ASP.NET (P % & * )
• MCAD MCSD S 7 P * 0 T& ,/,/< K,+B D 7'%,/< W
http://www.codeproject.com/http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSitehttp://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSitehttp://www.codeproject.com/