IT Community - Software Programming, Web Development and Technical Support

Asp Interview Questions

This is a discussion on Asp Interview Questions within the ASP and ASP.NET Programming forums, part of the Web Development category; How do you create a recordset object in VBScript? Answer1 Dim objRs Set objRs=Server.CreateObject(ADODB.RECORDSET) Answer2 ” rs....


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #21 (permalink)  
Old 04-22-2008, 08:15 PM
GDevakii GDevakii is offline
D-Web Sr.Programmer
 
Join Date: Aug 2007
Posts: 138
GDevakii is on a distinguished road
Smile Re: Asp Interview Questions

How do you create a recordset object in VBScript?
Answer1
Dim objRs
Set objRs=Server.CreateObject(ADODB.RECORDSET)
Answer2
” rs.MoveNext
wend
end if
%’>
*. Create Recordset object
*. Place form field value in a variable named “param”
*. Define query by concatenating strings and variable value
*. Open RecordSet Object. Note that the first parameter is the Command Text. The second parameter is the Connection String. The Command Object and Connection Object are created implicitly.
*. Make sure the RecordSet isn’t empty
*. Begin executing a loop which goes through all records in the RecordSet.
*. Write each record’s “firstname” and “lastname” fields to the page on a separate line.
*. Move to Next Record.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #22 (permalink)  
Old 04-23-2008, 04:40 AM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: Asp Interview Questions

List the type of Server Controls in ASP.Net?

There are three kinds of server controls:

* HTML Server Controls - Traditional HTML tags
* Web Server Controls - New ASP.NET tags
* Validation Server Controls - For input validation
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 04-23-2008, 04:49 AM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: Asp Interview Questions

Hi,
How to avoid refreshing a Page?
By using AjaxToolKit ,you can avoid a page from refresh.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 04-25-2008, 12:45 AM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 332
KiruthikaSambandam is on a distinguished road
Default Re: Asp Interview Questions

What is difference between asp and html?

· When a browser requests an HTML file, the server returns the file
· When a browser requests an ASP file, IIS passes the request to the ASP engine. The ASP engine reads the ASP file, line by line, and executes the scripts in the file. Finally, the ASP file is returned to the browser as plain HTML

Thanks
Kiruthika
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #25 (permalink)  
Old 04-25-2008, 12:46 AM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 332
KiruthikaSambandam is on a distinguished road
Default Re: Asp Interview Questions

What are advantages of asp

· Dynamically edit, change or add any content of a Web page
· Respond to user queries or data submitted from HTML forms
· Access any data or databases and return the results to a browser
· Customize a Web page to make it more useful for individual users
· The advantages of using ASP instead of CGI and Perl, are those of simplicity and speed
· Provides security since your ASP code can not be viewed from the browser
· Since ASP files are returned as plain HTML, they can be viewed in any browser
· Clever ASP programming can minimize the network traffic

Thanks
Kiruthika
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #26 (permalink)  
Old 04-25-2008, 12:47 AM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 332
KiruthikaSambandam is on a distinguished road
Default Re: Asp Interview Questions

What is asp basic syntax rule?

An ASP file normally contains HTML tags, just like an HTML file. However, an ASP file can also contain server scripts, surrounded by the delimiters . Server scripts are executed on the server, and can contain any expressions, statements, procedures, or operators valid for the scripting language you prefer to use.

What are session variables?


Session variables are used to store information about ONE single user, and are available to all pages in one application. Typically information stored in session variables are name, id, and preferences.
Tell about application variables.
Application variables are also available to all pages in one application. Application variables are used to store information about ALL users in a specific application.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #27 (permalink)  
Old 04-25-2008, 12:48 AM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 332
KiruthikaSambandam is on a distinguished road
Default Re: Asp Interview Questions

When does a session start in classic asp
A session starts when:
· A new user requests an ASP file, and the Global.asa file includes a Session_OnStart procedure
· A value is stored in a Session variable
· A user requests an ASP file, and the Global.asa file uses thetag to instantiate an object with session scope
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #28 (permalink)  
Old 04-25-2008, 12:49 AM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 332
KiruthikaSambandam is on a distinguished road
Default Re: Asp Interview Questions

What is diff between session and application?

The Application object is used to store and access variables from any page, just like the Session object. The difference is that ALL users share one Application object, while with Sessions there is one Session object for EACH user.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #29 (permalink)  
Old 04-25-2008, 12:49 AM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 332
KiruthikaSambandam is on a distinguished road
Default Re: Asp Interview Questions

What are lock and unlock in application variables? Where we use them?
You can lock an application with the "Lock" method. When an application is locked, the users cannot change the Application variables (other than the one currently accessing it). You can unlock an application with the "Unlock" method.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #30 (permalink)  
Old 04-25-2008, 12:51 AM
KiruthikaSambandam KiruthikaSambandam is offline
D-Web Analyst
 
Join Date: Aug 2007
Posts: 332
KiruthikaSambandam is on a distinguished road
Default Re: Asp Interview Questions

What are LOCAL and GLOBAL variables?

Local Variable: The scope of the local variable is for the procedure in which they are declare. Which are called procedural level variable. Which are local to the procedure. The variables which are declare outside the procedure in option explicit whose scope is local to the form in which they are declare.

Global variables are the variables whose scope is throughout the applicaiton. Usually used in module are class.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #31 (permalink)  
Old 05-19-2008, 02:17 AM
packirisamy packirisamy is offline
D-Web Trainee
 
Join Date: May 2008
Location: chennai
Posts: 15
packirisamy is on a distinguished road
Default Re: Asp.net gridview

Hlo sir..
This is a shopping card
1.I am create a one gridview..
2.the gridview collect the values in database
3.i click the add button the selected values all are display the next page
4. and i have click the home button display the first page...
5. and i have click the add button the selected values r display the next page but already i select the values and new values r dispalay gridview controls....

how can i write the coding sir

Regards...
S.Packirisamy
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #32 (permalink)  
Old 05-30-2008, 01:05 AM
naina naina is offline
D-Web Trainee
 
Join Date: May 2008
Posts: 8
naina is on a distinguished road
Default Re: Asp Interview Questions

What is the maximum size of an array?
Up to 60 dimensions.
What happens to ASP pages?
The browser makes a HTTP request; the server does the processing and gives a HTML response to the browser.
plz givw me answer of
What are LOCAL and GLOBAL variables?
__________________
Web Templetes
Web site Design
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #33 (permalink)  
Old 06-02-2008, 08:18 PM
poornima poornima is offline
D-Web Sr.Programmer
 
Join Date: Dec 2007
Posts: 189
poornima is on a distinguished road
Smile Re: Asp Interview Questions

Hi,
Global variables->U can access global variable through out the page but not the entire project.These variables should be declared before the pageload function.

Local Variables->These variables can be accessed only within the function.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #34 (permalink)  
Old 09-19-2008, 06:54 PM
pradip030384 pradip030384 is offline
D-Web Trainee
 
Join Date: Sep 2008
Posts: 3
pradip030384 is on a distinguished road
Default Re: Asp Interview Questions

What is Global.asx?
What is difference betweeb Response.Redirect and server.Transfer?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Top 10 Illegal Interview Questions Sabari Interview Questions & Answers and Tips 10 12-03-2007 05:31 AM
HR Interview Questions with Answers Sabari Interview Questions & Answers and Tips 63 11-23-2007 05:13 AM
Interview questions from TOP IT Companies venkat_charya Interview Questions & Answers and Tips 19 10-13-2007 04:59 AM
MYSQL interview questions it.wily Interview Questions & Answers and Tips 1 09-04-2007 03:33 AM
Interview Questions shiva Interview Questions & Answers and Tips 6 08-24-2007 01:28 AM


All times are GMT -7. The time now is 12:32 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0