web application development manual
TRANSCRIPT
-
7/24/2019 Web application Development Manual
1/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#ons
T#t4e5 Str#n3 M"n#%u4"t#on *ATE5 22 6 78 0 2719
AIM5 Wr#te " %ro3r"m to #m%4ement str#n3 m"n#%u4"t#on.
E:+LANATION5
Str#n3 Fun/t#ons #n AS+.NET5
Following are the string functions used for string manipulation in asp.net.
GetChar("This is a string", 7) returns "s".
InStr() eturns the starting position in a string of a su!string, counting from .
InStr("This is a string", "string") returns .
InStre#() eturns the starting position in a string of a su!string, searching from the end of the
string.
InStr("This is a string", "string") returns .
$Case() eturns the lower%case con#ersion of a string.
$Case("T&IS IS ' STIG") returns "this is a string".
$eft() eturns the left%most specified num!er of characters of a string.
$eft("This is a string", ) returns "This".
$en() eturns the length of a string.
$en("This is a string") returns *.
$Trim() emo#es an+ leading spaces from a string.
$Trim(" This is a string") returns "This is a string".
id() eturns a su!string from a string, specified as the starting position (counting from )
and the num!er of characters.
id("This is a string", *, ) returns "is a".
+re%"re )' A%%ro;e )'
rs. . $alitha,'sst.-rof.,CS /r. 0.1.G aor. T. a2esh, 'sst.-rof.,CS -rof 3 &4/ CSrs. /. aga Swetha, 'sst.-rof.,CS
-
7/24/2019 Web application Development Manual
2/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#ons
eplace() eplaces all occurences of a su!string in a string.
eplace("This is a string", " s", " longer s") returns "This are a longer string" (replaces an "s"
preceded !+ a !lan5 space).
ight() eturns the right%most specified num!er of characters of a string.
ight("This is a string", *) returns "string".
Trim() emo#es an+ trailing spaces from a string.
Trim("This is a string ") returns "This is a string".
Str() eturns the string e6ui#alent of a num!er.
Str() returns "".
Space() Fills a string with a gi#en num!er of spaces.
"This" 3 Space(8) 3 "string" returns "This string".
StrComp() Compares two strings. eturn #alues are (strings are e6ual), (first string has the
greater #alue), or % (second string has the greater #alue) !ased on sorting se6uence.
StrComp("This is a string", "This string") returns %.
Stre#erse() e#erses the characters in a string.
Stre#erse("This is a string") returns "gnirts a si sihT".
Trim() emo#es an+ leading and trailing spaces from a string.
Trim(" This is a string ") returns "This is a string".
9Case() eturns the upper%case con#ersion of a string.
9Case("This is a string") returns "T&IS IS ' STIG".
1al() Con#erts a numeric e:pression to a num!er.
1al( ( ; < ; =)>< ) returns =*.
+ROGRAM5
+re%"re )' A%%ro;e )'
rs. . $alitha,'sst.-rof.,CS /r. 0.1.G aor. T. a2esh, 'sst.-rof.,CS -rof 3 &4/ CSrs. /. aga Swetha, 'sst.-rof.,CS
-
7/24/2019 Web application Development Manual
3/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#onsemo#e all the special characters from a Gi#en String.
a%%DEs%", " ")
str @ ege:.eplace(str, A"Es;", " ").Trim()
return str
H
For Re%4"/e S%e/#"4 C!"r"/ters
pu!lic static string emo#eSpeCharacter(string str)
?
return ege:.eplace(str, "B>a%'%%DJ.;", "", ege:4ptions.Compiled)
H
protected #oid KuttonJClic5(o!2ect sender, #ent'rgs e)
?
string str@Te:tKo:.Te:t
Te:tKo:
-
7/24/2019 Web application Development Manual
4/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#onsstatic #oid ain(stringB args)
?
string str @ "/otetASpider.com"
string replacestr@ ege:.eplace(str, "B>a%'%%DJ;", " ")
Console.Lrite$ine(replacestr)
Console.ead$ine()
H
H
H
4r
pu!lic string emo#eSpecialChars(string str)
?
stringB chars @ new stringB?",",".","M","N","A","O","P","Q",">","3","R","","E"","","%
","J","(",")","","U","B",""H
for(int i @ iV chars.$ength i;; )
?
if(str.Contains(charsBi)) ?
str @ str.eplace(charsBi,"")
H
H
return str
H
string newString @ emo#eSpecialChars("TNh>eQcNodOe3isOsuP!QmUiQt(te)d !+
Bohi)tAWaRiHn")
+re%"re )' A%%ro;e )'
rs. . $alitha,'sst.-rof.,CS /r. 0.1.G aor. T. a2esh, 'sst.-rof.,CS -rof 3 &4/ CSrs. /. aga Swetha, 'sst.-rof.,CS
-
7/24/2019 Web application Development Manual
5/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#ons
E:ECUTION5
IN+UT5
OUT+UT5
T#t4e5 C4"ss Con/e%t 22 0 78 0 2719
+re%"re )' A%%ro;e )'
rs. . $alitha,'sst.-rof.,CS /r. 0.1.G aor. T. a2esh, 'sst.-rof.,CS -rof 3 &4/ CSrs. /. aga Swetha, 'sst.-rof.,CS
8
-
7/24/2019 Web application Development Manual
6/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#ons
AIM5 Wr#te " %ro3r"m to #m%4ement /4"ss /on/e%t.
E:+LANATION5' Class is a collection of o!2ects holding similar !eha#ior. The most
common definition states that a class is a template for an o!2ect.
C4"ss mem)ers
' class has different mem!ers, and de#elopers in icrosoft suggest to program them in the
following order
N"mes%"/e The namespace is a 5e+word that defines a distincti#e name or last name forthe class. ' namespace categories and organies the li!rar+ (assem!l+) where the class
!elongs and a#oids collisions with classes that share the same name.
C4"ssdeclaration $ine of code where the class name and t+pe are defined.
F#e4s Set of #aria!les declared in a class !loc5.
Const"nts Set of constants declared in a class !loc5.
Constru/tors ' method or group of methods that contains code to initialie the class.
+ro%ert#es The set of descripti#e data of an o!2ect.
E;ents -rogram responses that get fired after a user or application action.
Met!os Set of functions of the class.
*estru/tor ' method that is called when the class is destro+ed. In managed code, the
Gar!age Collector is in charge of destro+ing o!2ects howe#er, in some cases de#elopers
need to ta5e e:tra actions when o!2ects are !eing released, such as freeing handles or
+re%"re )' A%%ro;e )'
rs. . $alitha,'sst.-rof.,CS /r. 0.1.G aor. T. a2esh, 'sst.-rof.,CS -rof 3 &4/ CSrs. /. aga Swetha, 'sst.-rof.,CS
*
-
7/24/2019 Web application Development Manual
7/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#onsdeallocating unmanaged o!2ects. In .T, there is no concept of deterministic destructors.
The Gar!age Collector will call the Finalie() method at a non%deterministic time while
reclaiming memor+ for the application.
A//ess $e'>ors
'ccess 5e+words define the access to class mem!ers from the same class and from other classes.
The most common access 5e+words are
+u)4#/ 'llows access to the class mem!er from an+ other class.
+r#;"te 'llows access to the class mem!er onl+ in the same class.
+rote/te 'llows access to the class mem!er onl+ within the same class and from
inherited classes.
Intern"4 'llows access to the class mem!er onl+ in the same assem!l+.
+rote/te #ntern"4 'llows access to the class mem!er onl+ within the same class, from
inherited classes, and other classes in the same assem!l+.
St"t#/ Indicates that the mem!er can !e called without first instantiating the class.
+re%"re )' A%%ro;e )'
rs. . $alitha,'sst.-rof.,CS /r. 0.1.G aor. T. a2esh, 'sst.-rof.,CS -rof 3 &4/ CSrs. /. aga Swetha, 'sst.-rof.,CS
7
-
7/24/2019 Web application Development Manual
8/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#ons
+ROGRAM ?15
odule classdemo
Class stud
/im rno 's Integer
/im nm 's String
Su! getdata()
Console.write$ine(Xenter roll no and name for the studentY)
nd su!
Su! disp()
Console.write$ine(X4$$ 4Y34)
Console.write$ine(X'Y3nm)
nd su!
nd class
Su! main()
/im 0 's ew stud
0.getdata()
0.disp()
Console.ead$ine()
nd su!
+re%"re )' A%%ro;e )'
rs. . $alitha,'sst.-rof.,CS /r. 0.1.G aor. T. a2esh, 'sst.-rof.,CS -rof 3 &4/ CSrs. /. aga Swetha, 'sst.-rof.,CS
Z
-
7/24/2019 Web application Development Manual
9/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#onsnd odule
E:ECUTION5
IN+UT5
nter roll no and name for the student
am
nter roll no and name for the student #no>s /4#ent /"n #nter"/t >#t!
" >e) ser;#/e.
E:+LANATION5 Le! Ser#ice is an application that is designed to interact directl+ with
other applications o#er the internet. In simple sense, Le! Ser#ices are means for interacting with
o!2ects o#er the Internet. The Le! seri#ce consumers are a!le to in#o5e method calls on remote
o!2ects !+ using S4'- and &TT- o#er the Le!. Le!Ser#ice is language independent and Le!
Ser#ices communicate !+ using standard we! protocols and data formats, such as
&TT-
_$
S4'-
+re%"re )' A%%ro;e )'
rs. . $alitha,'sst.-rof.,CS /r. 0.1.G aor. T. a2esh, 'sst.-rof.,CS -rof 3 &4/ CSrs. /. aga Swetha, 'sst.-rof.,CS
=8
-
7/24/2019 Web application Development Manual
36/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#onsA;"nt"3es of We) Ser;#/e
Le! Ser#ice messages are formatted as _$, a standard wa+ for communication !etween two
incompati!le s+stem. 'nd this message is sent #ia &TT-, so that the+ can reach to an+ machine
on the internet without !eing !loc5ed !+ firewall.
E@"m%4es for We) Ser;#/e5
We"t!er Re%ort#n35]ou can use Leather eporting we! ser#ice to displa+ weather information
in +our personal we!site.
Sto/$ Buote5]ou can displa+ latest update of Share mar5et with Stoc5 `uote on +our we! site.
Ne>s He"4#ne5]ou can displa+ latest news update !+ using ews &eadline Le! Ser#ice in
+our we!site.
+ROGRAM STE+S5
. Start a new we!site with /efault.asp: we! page.
-
7/24/2019 Web application Development Manual
37/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#onsnd Function
!) (i) ight clic5 in solution e:plorer @[ 'dd Le! eference@[ Select !rowser to
option as XLe! Ser#ices in this solutionY.It will displa+ the num!er of we! ser#ices in
the solution.
(ii) Select the we! ser#ice +ou want to use.
(iii) It will displa+ all the methods.
(i#) Select the method +ou want to use and Clic5 XIn#o5eY !utton to see the :ml
message returned !+ the method.
c) Gi#e the we! reference name (!+ default XlocalhostY) and clic5 'dd eference
!utton.
d) Le! reference with name local host gets created in 'ppJLe!eferences folder.
e) Chec5 if files with e:tensions .disco and .wsdl gets generated in localhost.
. In code file (/efault.asp:.#!)
a. Import the namespace S+stem.Le!.Ser#ices.
!. Create an o!2ect of we! ser#ice.(i.e m+Le!Ser#ice)
c. 9se the methods of respecti#e we! ser#ice.
8. Clic5 the XKuildY menu in application @[ select XKuild we! siteY.If XKuild succeededY message comes in status !ar.
:ecute the application and #iew the results
lse
Find out the errors and sol#e the errors.
nd if
+re%"re )' A%%ro;e )'
rs. . $alitha,'sst.-rof.,CS /r. 0.1.G aor. T. a2esh, 'sst.-rof.,CS -rof 3 &4/ CSrs. /. aga Swetha, 'sst.-rof.,CS
=7
-
7/24/2019 Web application Development Manual
38/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#ons
+ROGRAM5
\Inline code( /efault.asp:.#!)
Imports S+stem.Le!.Ser#ices
-artial Class J/efault
Inherits S+stem.Le!.9I.-age
/im mt 's ew m+Le!Ser#ice Creating an o!2ect we!ser#ice
-rotected Su! -ageJ$oad(K+1al sender 's 4!2ect, K+1al e 's S+stem.#ent'rgs)
&andlese.$oad
esponse.Lrite(mt.m+Function()) 9sing the method of respecti#e we! ser#ice
nd Su!
nd Class
\Le!ser#ice( m+Le!Seri#ce.#!)
+re%"re )' A%%ro;e )'
rs. . $alitha,'sst.-rof.,CS /r. 0.1.G aor. T. a2esh, 'sst.-rof.,CS -rof 3 &4/ CSrs. /. aga Swetha, 'sst.-rof.,CS
=Z
-
7/24/2019 Web application Development Manual
39/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#onsImports S+stem.Le!
Imports S+stem.Le!.Ser#ices
Imports S+stem.Le!.Ser#ices.-rotocols
VLe!Ser#ice(amespace@"httpMMtempuri.orgM")[ J
VLe!Ser#iceKinding([email protected])[ J
VGlo!al.icrosoft.1isualKasic.CompilerSer#ices./esignerGenerated()[ J
-u!lic Class m+Le!Ser#ice
Inherits S+stem.Le!.Ser#ices.Le!Ser#ice
VLe!ethod()[ J
-u!lic Function &elloLorld() 's String
eturn "&ello Lorld"
nd Function
VLe!ethod()[ J
-u!lic Function m+Function() 's String
eturn "This is m+Function in Le!ser#ice"
nd Function
nd Class
E:ECUTION5
IN+UT5
OUT+UT5
+re%"re )' A%%ro;e )'
rs. . $alitha,'sst.-rof.,CS /r. 0.1.G aor. T. a2esh, 'sst.-rof.,CS -rof 3 &4/ CSrs. /. aga Swetha, 'sst.-rof.,CS
=D
-
7/24/2019 Web application Development Manual
40/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#ons
,I,A BUESTIONS
1. W!"t #s AS+.Net
Ans5It is a framewor5 de#eloped !+ icrosoft on which we can de#elop new generation we!
sites using we! forms(asp:), 1C, &T$, Wa#ascript, CSS etc. Its successor of icrosoft
'cti#e Ser#er -ages('S-). Currentl+ there is 'S-.T ., which is used to de#elop we! sites.There are #arious page e:tensions pro#ided !+ icrosoft that are !eing used for we! site
de#elopment. g asp:, asm:, asc:, ash:, cs, #!, html, _$ etc.
2.W!"t "re t!e #fferent ;"4#"tors #n AS+.NET
Ans5
. e6uired field 1alidator
-
7/24/2019 Web application Development Manual
41/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#ons. Custom 1alidator
8. egular e:pression 1alidator
*. Summar+ 1alidator
D. W!#/! %roto/o4 #s use to /"44 " We) ser;#/e
Ans5 &TT- -rotocol
. C"n >e !";e mu4t#%4e >e) /onf#3 f#4es for "n "s%.net "%%4#/"t#on
Ans5 ]es.
9. W!"t #s t!e #fferen/e )et>een >e) /onf#3 "n m"/!#ne /onf#3
Ans5 Le! config file is specific to a we! application where as machine config is specific to a
machine or ser#er. There can !e multiple we! config files into an application where as we can
ha#e onl+ one machine config file on a ser#er.
8. Ho> /"n >e "%%4' T!emes to "n "s%.net "%%4#/"t#on
Ans5 Le can specif+ the theme in we!.config file. Kelow is the code e:ample to appl+ theme
Vconfiguration[
Vs+stem.we![
Vpages theme@"Lindows7" M[
+re%"re )' A%%ro;e )'
rs. . $alitha,'sst.-rof.,CS /r. 0.1.G aor. T. a2esh, 'sst.-rof.,CS -rof 3 &4/ CSrs. /. aga Swetha, 'sst.-rof.,CS
-
7/24/2019 Web application Development Manual
42/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#ons VMs+stem.we![
VMconfiguration[
. W!"t #s M,C
Ans5 1C is a framewor5 used to create we! applications. The we! application !ase !uilds on
odel%1iew%Controller pattern which separates the application logic from 9I, and the input and
e#ents from the user will !e controlled !+ the Controller.
.E@%4"#n t!e >or$#n3 of %"ss%ort "ut!ent#/"t#on.
Ans5 First of all it chec5s passport authentication coo5ie. If the coo5ie is not a#aila!le then the
application redirects the user to -assport Sign on page. -assport ser#ice authenticates the user
details on sign on page and if #alid then stores the authenticated coo5ie on client machine and
then redirect the user to re6uested page.
. W!"t "re t!e "s%.net Se/ur#t' Contro4s
Ans5
Vasp$ogin[ -ro#ides a standard login capa!ilit+ that allows the users to enter their
credentials
Vasp$oginame[ 'llows +ou to displa+ the name of the logged%in user
Vasp$oginStatus[ /ispla+s whether the user is authenticated or not
Vasp$ogin1iew[ -ro#ides #arious login #iews depending on the selected template
Vasp-asswordeco#er+[ email the users their lost password
17. >!"t #s )o@#n3 "n un)o@#n3
+re%"re )' A%%ro;e )'
rs. . $alitha,'sst.-rof.,CS /r. 0.1.G aor. T. a2esh, 'sst.-rof.,CS -rof 3 &4/ CSrs. /. aga Swetha, 'sst.-rof.,CS
-
7/24/2019 Web application Development Manual
43/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#onsAns5 Ko:ing is assigning a #alue t+pe to reference t+pe #aria!le.9n!o:ing is re#erse of !o:ing
ie. 'ssigning reference t+pe #aria!le to #alue t+pe #aria!le.
11. *#fferent#"te stron3 t'%#n3 "n >e"$ t'%#n3.
Ans5 In strong t+ping, the data t+pes of #aria!le are chec5ed at compile time. 4n the other hand,
in case of wea5 t+ping the #aria!le data t+pes are chec5ed at runtime. In case of strong t+ping,
there is no chance of compilation error. Scripts use wea5 t+ping and hence issues arises at
runtime.
12.Ho> >e /"n for/e "44 t!e ;"4#"t#on /ontro4s to run
Ans5 The -age.1alidate() method is used to force all the #alidation controls to run and to
perform #alidation.
1D. L#st t!e m"or )u#4t0#n o)e/ts #n AS+.NET
Ans5
'pplication
e6uest
esponse
Ser#er
Session
Conte:t
Trace
1. W!"t "re t!e #fferent t'%es of /oo$#es #n AS+.NET
+re%"re )' A%%ro;e )'
rs. . $alitha,'sst.-rof.,CS /r. 0.1.G aor. T. a2esh, 'sst.-rof.,CS -rof 3 &4/ CSrs. /. aga Swetha, 'sst.-rof.,CS
=
-
7/24/2019 Web application Development Manual
44/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#onsAns5 Sess#on Coo$#e esides on the client machine for a single session until the user does not
log out.
+ers#stent Coo$#e esides on a userbs machine for a period specified for its e:pir+, such as
da+s, one month, and ne#er.
19. W!"t #s t!e f#4e e@tens#on of >e) ser;#/e
Ans5 Le! ser#ices ha#e file e:tension .asm:..
18. W!"t "re t!e /om%onents of A*O.NET
Ans5 The components of '/4.et are /ataset, /ata eader, /ata 'daptor, Command,connection.
1. W!"t "re t!e #fferent Sess#on st"te m"n"3ement o%t#ons ";"#4")4e #n
AS+.NET
Ans5
. In%-rocess
-
7/24/2019 Web application Development Manual
45/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#ons
Out0of0+ro/essSession state management stores data in an e:ternal ser#er. The e:ternal ser#er
ma+ !e either a S`$ Ser#er or a State Ser#er. 'll o!2ects stored in session are re6uired to !e
serialia!le for 4ut%of%-rocess state management.
1. W!"t "re t!e #fferent t'%es of /"/!#n3
Ans5 'S-.T has = 5inds of caching . 4utput Caching,
-
7/24/2019 Web application Development Manual
46/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#ons
ailessage and Smtpail are classes defined S+stem.Le!.ail namespace.
27. W!"t #s t!e #fferen/e )et>een >e) /onf#3 "n m"/!#ne /onf#3
Ans5 Le! config file is specific to a we! application where as machine config is specific to a
machine or ser#er. There can !e multiple we! config files into an application where as we can
ha#e onl+ one machine config file on a ser#er.
21. W!"t "re t!e ";"nt"3es of +"ss%ort "ut!ent#/"t#on
Ans5
'll the we!sites can !e accessed using single login credentials. So no need to remem!er
login credentials for each we! site.
9sers can maintain hisM her information in a single location.
22.In >!#/! e;ent "re t!e /ontro4s fu44' 4o"e
Ans5 -age load e#ent.
2D. W!#/! "t" t'%e oes t!e R"n3e,"4#"tor /ontro4 su%%ort
Ans5 The data t+pes supported !+ the ange1alidator control are Integer, /ou!le, String,
Currenc+, and /ate.
2. W!#/! n"mes%"/es "re ne/ess"r' to /re"te " 4o/"4#e "%%4#/"t#on
Ans5 S+stem.Glo!aliation
29. *#fferent#"te )et>een C4#ent0s#e "n ser;er0s#e ;"4#"t#ons #n We)
+re%"re )' A%%ro;e )'
rs. . $alitha,'sst.-rof.,CS /r. 0.1.G aor. T. a2esh, 'sst.-rof.,CS -rof 3 &4/ CSrs. /. aga Swetha, 'sst.-rof.,CS
*
-
7/24/2019 Web application Development Manual
47/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#ons
%"3es
Ans5
Client%side #alidations happends at the clients side with the help of Wa#aScript and
1KScript. This happens !efore the Le! page is sent to the ser#er.
Ser#er%side #alidations occurs place at the ser#er side.
28.Aut!ent#/"t#on "n "ut!or#"t#on
Ans5
'uthentication is the process of #erif+ng the identit+ of a user using some credentials li5e
username and password while authoriation determines the parts of the s+stem to which a
particular identit+ has access.
'uthentication is re6uired !efore authoriation.
For e.g. If an emplo+ee authenticates himself with his credentials on a s+stem, authoriation will
determine if he has the control o#er 2ust pu!lishing the content or also editing it.
2. W!"t "re We) ser;er /ontro4s #n AS+.NET
These are the o!2ects on 'S-.T pages that run when the Le! page is re6uested.
Some of these Le! ser#er controls, li5e !utton and te:t !o:, are similar to the &T$
controls.
Some controls e:hi!it comple: !eha#ior li5e the controls used to connect to data sources
and displa+ data.
+re%"re )' A%%ro;e )'
rs. . $alitha,'sst.-rof.,CS /r. 0.1.G aor. T. a2esh, 'sst.-rof.,CS -rof 3 &4/ CSrs. /. aga Swetha, 'sst.-rof.,CS
7
-
7/24/2019 Web application Development Manual
48/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#ons
2. E@%4"#n ser#"4#"t#on "n eser#"4#"t#on.
Ans5 Serialiation is the process of con#erting an o!2ect into a stream of !+tes.
/eserialiation is the process of creating an o!2ect from a stream of !+tes.
Koth these processes are usuall+ used to transport o!2ects.
2. E@%4"#n !o> " >e) "%%4#/"t#on >or$s.
Ans5 ' we! application resides in the ser#er and ser#es the clients re6uests o#er internet. The
client access the we! page using !rowser from his machine. Lhen a client ma5es a re6uest, it
recei#es the result in the form of &T$ which are interpreted and displa+ed !+ the !rowser.
' we! application on the ser#er side runs under the management of icrosoft Internet
Information Ser#ices (IIS). IIS passes the re6uest recei#ed from client to the application. The
application returns the re6uested result in the form of &T$ to IIS, which in turn, sends the
result to the client.
D7. E@%4"#n t!e #fferent %"rts t!"t /onst#tute AS+.NET "%%4#/"t#on.
Ans5 Content, program logic and configuration file constitute an 'S-.T application.
Content f#4es5Content files include static te:t, images and can include elements from
data!ase.
+ro3r"m 4o3#/5-rogram logic files e:ist as /$$ file on the ser#er that responds to the
user actions.
Conf#3ur"t#on f#4e5Configuration file offers #arious settings that determine how the
application runs on the ser#er.
+re%"re )' A%%ro;e )'
rs. . $alitha,'sst.-rof.,CS /r. 0.1.G aor. T. a2esh, 'sst.-rof.,CS -rof 3 &4/ CSrs. /. aga Swetha, 'sst.-rof.,CS
Z
-
7/24/2019 Web application Development Manual
49/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#ons
D1. Ho> o 'ou o%en " %"3e #n " ne> >#no>
Ans5 To open a page in a new window, +ou ha#e to use client script using
onclic5@"window.open()" attri!ute of &T$ control.
D2. W!"t "re t!e #fferen/es )et>een A)str"/t "n #nterf"/e
Ans5
'!stract cannot !e instantiated !ut we can inherit. Interface it cannot !e inherit it can !e
instantiate.
Interface contain onl+ declarations no definitions. '!stract contain declarations and
definitions.
The class which contains onl+ a!stract methods is interface class.
' class which contains a!stract method is called a!stract class.
-u!lic is default access specifier for interface we donbt ha#e a chance to declare other
specifiers. In a!stract we ha#e chance to declare with an+ access specifier.
DD. W!"t "re #fferen/es )et>een fun/t#on "n store %ro/eure
Ans5
Function returns onl+ one #alue !ut procedure returns one or more than one #alue.
Function can !e utilied in select statements !ut that is not possi!le in procedure.
-rocedure can ha#e an input and output parameters !ut function has onl+ input
parameters onl+.
:ceptions can !e handled !+ tr+ catch !loc5 in procedures !ut that is not possi!le in
+re%"re )' A%%ro;e )'
rs. . $alitha,'sst.-rof.,CS /r. 0.1.G aor. T. a2esh, 'sst.-rof.,CS -rof 3 &4/ CSrs. /. aga Swetha, 'sst.-rof.,CS
D
-
7/24/2019 Web application Development Manual
50/50
G. NARAYANAMMA INSTITUTE OF TECHNOLOGY & SCIENCE
Autonomous of JNTUH (For Women
S!"#$%et H'er")".
*E+ARTMENT OF COM+UTER SCIENCE AN* ENGINEERING
I,-I, .Te/! I Semester G012 Re3u4"t#onsfunction.
+re%"re )' A%%ro;e )'