Objects that can enhance the application are known as the scripting objects.
What are the asp scripting objects?
The dictionary object, the filesystemobject object, textstream object.
The ASP scripting objects are
*Folder object
*File object
*Drive object
*Dictionary object
*FileSystem object and
*TextStream object.
Variable is a memory location through which the actual values are stored/retrieved. Its value can be changed.
To store information we use variables.
A variable declared inside a procedure is created and destroyed every time a procedure is executed.
A variable declared outside can accessed and changed by any scrips in the ASP file.
There are two types namely session variales and application variables.
How do I send sms's via the program I created using ASP.Net,or if somebody knows what tolls do I need to create a web application that sends sms's
we added web reference to sendsmsworld.asmx in webservicesx . namespace is system.web.services; system.net.mail; btncode: sms sm=new sms string Str11 = txtTo.Text; string[] str = Str11.S...
Use mCore library use its distributed licence key that is available on net and mind it using of that key is not piracy. there will be manual read it and use the mcore to send SMS using GSM modem and m...
Isclientconnected is a property of
A. Server b. Response c. Request d. Session
B. Response object
B. Response
What is the difference between thread and session
A Session relate one-to-one with clients (more or less -- arguments can be made that a client can have more than one session). Threads on the other hand are just workers that process requests with no affinity towards any particular session.
How many max cookies can we create in server?
A. 10 b. 20 c. 30 d. 40
Cookies cant create server side because its store client side information. And its not safe method because if client doesnt want to store information then he can delete the cookie. Its depend on client that whether he want to store cookie or not.....
20
Explain the post & get method or explain the difference between them.
Post method: the post method generates a form collection, which is sent as a http request body. All the values typed in the form will be stored in the form collection. Get method: the get method sends information by appending it to the url (with a question mark) and stored as a querystring collection....
if there is a client and server performs an operation the server that GET the request from client. The client that POST or sends the request to the server.
getmethod uses the querystring to pass the data to the server so it appends data to the url so it is not secured one whereas post method differs from it it is passed to the server through the form collection
A. 3 b. 2 c. 1 d. 4
(1) Session Based which expire at the end of the session.
(2) Persistent cookies which don't expire(Stored in your hard disk).
1.in memory cookies
2.persistent cookies
What is the difference between client-side script and server-side script?
Scripts executed only by the browser without contacting the server is called client-side script. It is browser dependent. The scripting code is visible to the user and hence not secure. Scripts executed by the web server and processed by the server is called server-side script.
Scripts executed only by the browser without contacting the
server is called client-side script. It is browser
dependent. The scripting code is visible to the user and
hence not secure. Scripts executed by the web server and
processed by the server is called server-side script.
Server side script which avoids manual coding by using server side controls. It makes developer job easier. In client side script when developer writes the manual code to develop the application ...
Should user input data validation occur server-side or client-side? Why?
Input data validation is Server side validate, not client side. what we give any input data, run server side.
The user input data validation will on the client side becouse when validate on the server-side user input can be wrong as well as take much time to execute by server.
A. Request.Cookies("favoriteflavors").Hasitems b. Request.Cookies("favoriteflavors").Collection.Count c. Request.Cookies("favoriteflavors").Dictionary d. Request.Cookies("favoriteflavors").Haskeys e. Request.Cookies("favoriteflavors").Count
B. Request.Cookies("FavoriteFlavors").Collection.Count
request.Cookies("FavoriteFlavoers").HshKeys
It stores information about a user’s session. Gives a notification when a user session begins or ends.
Session objects give us the power to preserve user preferences and other user information when browsing a web application.
By using session object we can maintaing the state of the data which is helpful for maintaining the session(i.e to keep track of the information of the same client during the consecutive visits of the...
A user accessing an application is known as a session.
A session is the time for which a particular user interacts with a web application. During a session the unique identity of the user is maintained internally. A session ends if there is a session timeout or if you end the visitor session in code.
How will you set the values for cookies?
<% response.Cookies("variable name ")="value" %>.
Request.Cookies.Add(New HttpCookie("name","user1"))
Response.Cookies["userName"].Value = "xyz";
Response.Cookies["userName"].Value =TextBox.Text;
What happens when a client submits a form which changes the value of an application variable a. Client actions cannot change application variables. B. The change is not visible to any client until the application is stopped and started. C. The change is only visible to future requests made by that client...
"E" is the correct answer!
"ALL users share ONE Application object"
If one user changes an application variable, all other users in all other sessions with see that change, not just the user making the change.
C is the correct answer
No. The idea of MarshalByRefObject is that it doesn't every get serialized for remoting purposes. Instead the CLR generates what is known as a transparent proxy in this scenario. It's called T...
Which of the following are server object methods ( choose two)
A. HTMLencode,mappath b. Urlencode,scripttimeout c. Urlencode,createobject d. Scripttimeout,abandon
Server.URLEncode
Server.HTMLEncode
these are server object properties:-
server.CreateObject()
server.Execute( )
server.GetLastError()
server.HTMLEncode()
server.MapPath()
server.ScriptTimeout()
server.Transfer()
server.URLEncode()
so A,B,C is the Correct Answer
What is the program id (progid) for activex data objects in 2-tier and 3-tier database applications?
A. ADO b. Rdodb c. ADOdb d. Rds e. Oledb
C. ADODB
ADODB
What is the function of buffer in response object?
Buffer controls the HTML output stream manually.
The Buffer property specifies whether to buffer the output or not. When the output is buffered, the server will hold back the response to the browser until all of the server scripts have been processed, or until the script calls the Flush or End method.
Respose.buffer=False/True
Buffer is used to send the information to the browser.
Scripting objects provide access to the functionality of the software components.These are the objects which are used for enhancing a certain application.