Académique Documents
Professionnel Documents
Culture Documents
net-project
This website allows registered users to upload and download .mp3 songs. It allows searching for
songs based on song title, singer and langauge.
Asp.Net 3.5
C# Language
Stored procedures are accessed using classes in DAL - Data Access Layer.
Password Recovery
Change password
Home page
Add Song
Delete a song
Logout
int
varchar(50)
varchar(100)
char(1)
datetime,
uniqueidentifier
Note
o
o
14. AS
16.
17.
18. CREATE PROCEDURE dbo.RecentlyAddedSongs
19. AS
20. select top 10 songid,title,singer,
21. lang = case lang
22.
when 'e' then 'Englsih'
23.
when 'h' then 'Hindi'
24.
else 'Telugu'
25. end,
26. addedon=convert(char(8),addedon,3), username
27. from songs s inner join aspnet_users u
28. on(s.UserId=u.UserId)
29. Order by songid desc
30.
31.
32. CREATE PROCEDURE dbo.SearchSongs (@title varchar(50),@singer
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
varchar(100),@lang char(1))
as
if @lang='a'
select songid,title,singer,
lang=case lang
when 'e' then 'Engslish'
when 'h' then 'Hindi'
else 'Telugu'
end,
addedon=convert(char(8),addedon,3), username
from songs s inner join aspnet_users u
on (s.UserId=u.UserId)
where title like @title and singer like @singer order by songid desc
else
select songid,title,singer,
lang=case lang
when 'e' then 'English'
when 'h' then 'Hindi'
else 'Telugu'
end,
addedon=convert(char(8),addedon,3),
username from songs s inner join aspnet_users u
on (s.UserId=u.UserId)
where title like @title and singer like @singer and lang=@lang order
by songid desc