GeekInterview.com
Series: Subject: Topic:

ASP.NET Interview Questions

Showing Questions 1 - 20 of 648 Questions
First | Prev | | Next | Last Page
Sort by: 
 | 

How can you unload an ASP.Net app. Without touching the iis?

Asked By: rajeevmalik | Asked On: Sep 1st, 2007

Answered by: Archana on: Sep 10th, 2014

Using App_offline.htm file

Answered by: varuneshwer reddy on: Nov 15th, 2013

How can you unload an ASP.NET App. without touching the IIS?

Passing data between pages

Asked By: sambomb3 | Asked On: Jun 24th, 2014

Which is the most secure way to pass data from one page to another page other than session?

Answered by: sathis kumar on: Jun 27th, 2014

In page 1:
Application["key"] = value;

In page 2:
String value = Application["key"];

Answered by: sathis kumar on: Jun 27th, 2014

Application["key"]=value;

Can we pass ref and out to partial method??

Asked By: sambomb3 | Asked On: Jun 20th, 2014

Answered by: Deepti on: Jun 20th, 2014

No, Because Out Parameter is used to pass the value out of a method.Out parameters are like return values which must be assigned by the callee. We know a partial method may or may not have an implan...

Encrypt connection string in web.Config

Asked By: rajankvns | Asked On: Sep 18th, 2011

How to encryption and decryption connection string in web.Config ? Explain with example ?

Answered by: Rodger Svovah on: May 25th, 2014

You encrypt connection string string by using aspnet_regiis.exe like so:
aspnet_regiis.ex -pe "connection string" -app "MyWebApp"

To decrypt you only need to change the option -pe to -pd.

Answered by: rupinder on: Apr 17th, 2013

methods for Encrypting and decrypting connectionStrings section in web.config you can use encryption configuration model " Rsa," it is feasible to change this to DataProtectionConfigurationProv...

What are the different types of sessions in ASP.Net? Name them.

Asked By: pu | Asked On: Apr 12th, 2007

Answered by: Amit_Kumar on: May 20th, 2014

InProc
OutProc
StateServer
Custom

Answered by: test on: May 3rd, 2014

1. Inproc
2. Out Proc
3. StateServer

The object used by SQL connection to make security demands

Asked By: Interview Candidate | Asked On: Dec 4th, 2005

Skill/topic: advanceda) SQLlcientattributeb) SQLpermissionc) SQLpermissionclientd) SQLclientpermission

Answered by: Anmol on: Apr 26th, 2014

SQLClientPermission

Answered by: hmahmud on: Oct 15th, 2008

SQLPermission

What methods must be used with the application object to ensure that only one process accross a varaible at a time?

Asked By: pedarayuduk | Asked On: Nov 20th, 2007

Answered by: saroj kumar manik on: Mar 27th, 2014

Lock()

Answered by: Pranav Thakur on: Jul 28th, 2011

Lock() and unlock()

What is the advantage of disconnected mode of ADO.Net in ASP.Net

Asked By: Interview Candidate | Asked On: Dec 4th, 2005

Skill/topic: advanceda) automatically dump data at client pcb) not necessary to connect with serverc) user data can update and retrieve in dataset and when connection connected, update values with serverd) all of the above

Answered by: anup on: Nov 20th, 2013

All the above

Answered by: neeraj on: Sep 26th, 2013

A) Automatically dump data at client PC

To add a custom control to a web form we have to register with

Asked By: Interview Candidate | Asked On: Dec 4th, 2005

Skill/topic: beginnera) tagprefixb) name space of the dll that is referencedc) assemblynamed) all of the above

Answered by: arf on: Oct 11th, 2013

D

Answered by: mrvick on: Jul 25th, 2010

 b) Name space of the dll that is referenced

What is the significance of server .Mappath

Asked By: Interview Candidate | Asked On: Dec 4th, 2005

Skill/topic: advanceda) returns the physical file path that corresponds to virtual specified pathb) returns the virtual path of the web folderc) maps the specified virtual path to physical pathd) none

Answered by: neeraj on: Sep 26th, 2013

D) None

Answered by: Sisira From Sninfotech (Hyd) on: Dec 9th, 2005

Ans:A) Returns the physical file path that corresponds to virtual specified path

When a session is expiring in ASP.Net page?

Asked By: krkumarid | Asked On: Apr 12th, 2011

Please help me to answer when the session is expiring in a ASP.Net page?Is it in page closing?

Answered by: swati on: Aug 16th, 2013

Its depends upon the value of session.timeout ()
by default it is 20 mins.

Answered by: sathish57 on: May 9th, 2012

Session of an asp page expires when it reaches the time out set in the web config or the idle time out in IIS whichever comes first. Default is 20 minutes if I am not wrong

What method do you use to explicitly kill a user s session?

Asked By: Interview Candidate | Asked On: Aug 18th, 2005

Answered by: parshuramkharade1102 on: Aug 9th, 2013

Session.abondan() for all users
session.remove() for such user

Answered by: mrp100461 on: Aug 5th, 2009

Session.Contents.Remove( variable ) is the session fuction to remove one item from the contents<%    Session("myName") = " "   Session.Contents.Remove("...

Difference between datagrid and datareader?

Asked By: Interview Candidate | Asked On: Jul 6th, 2005

Answered by: parshuramkharade1102 on: Aug 9th, 2013

Datagrid can be used to bind query data.whereas datareader is an object can read data or forword only.

Answered by: srinivasulu.p on: Dec 10th, 2009

Data grid is a control used to bind data from database. but data reader is an object used to read data from database.Data reader is read only means it only reads data from database & it doesn't su...

Where the assembly is stored in ASP.Net?

Asked By: sunileswar behera | Asked On: Jul 24th, 2006

Answered by: parshuramkharade1102 on: Aug 9th, 2013

Private assemblies can be shared on same application folder as bin folder and Public assembly can be shared in gacutil.

Answered by: ynvpavan on: Oct 1st, 2008

Hi,     Every control is maintained with hiddenfield property on the form. when the page is submitted to the server, the values of each control are read from the hidden fields of e...

How can you perform validation on client side, if the validation controls are server side?

Asked By: veluworld | Asked On: Jul 10th, 2007

Answered by: parshuramkharade1102 on: Aug 9th, 2013

For that you can use javascript and server validation control as custom validator for that

Answered by: kirangiet on: Oct 21st, 2009

Two ways you can achieve this.1) You can use javaScript to validate the data.2) You can use Validation Controls. (One for Client Side Validation One for Server Side Validation)Even though Validation c...

What is query string?

Asked By: lalitha | Asked On: Aug 26th, 2007

Answered by: parshuramkharade1102 on: Aug 9th, 2013

Query string is defined as information appended to the url string.that can be used for next page.

string studentID=request.querystring["ID"]

Answered by: kirangiet on: Oct 20th, 2009

Query String is the part of a URL that contains data to be passed to web pages. Query string is a client side state management technique. URL is followed by Querystring  separated by "?"...

What are the series of events that take place or the life cycle of page that takes place when a master page and content page are involved ?

Asked By: Yusuf Jelani | Asked On: Apr 17th, 2007

Answered by: vaishali zindal on: Aug 1st, 2013

1) Page Request
2) Start
3) Page Initialization
4) Load
5) Validation
6) Post back event handling
7) Render
8) Unload

Answered by: rupinder on: Apr 23rd, 2013

A master page and themes are also applied to the page if applicable during Preinitialization event and order of events occuring in page life cycle are same as in page life cycle without master page. 1...

Why is GLobal.Asax is used

Asked By: Interview Candidate | Asked On: Dec 4th, 2005

Skill/topic: beginnera) implement application and session level eventsb) declare GLobal variablesc) no use

Answered by: Cliff on: Jul 24th, 2013

Yes you can declare "Global variables" in the global file, but if you are answering this question on a test with these options, pick "A".

Answered by: sirikasturi on: Jul 26th, 2007

ANS: A,B

Who can access session state variables

Asked By: Interview Candidate | Asked On: Dec 4th, 2005

Skill/topic: intermediatea) all users of an applicationb) a single sessionc) all users within a single tunnel

Answered by: Cliff on: Jul 24th, 2013

The answer would be B) as only the user that created the "single session" can access his/her own session. Whereas ALL users can access application state.

Answered by: sahu on: Dec 13th, 2005

Ans:A) All Users of an application

What does response.End will do?

Asked By: Interview Candidate | Asked On: Dec 4th, 2005

Skill/topic: intermediatea) it will stop the server processb) it will stop the client processc) none of the above

Answered by: Cliff on: Jul 24th, 2013

I think the answer was slightly misstated. It stops the server process from continuing that current page process. As stated by Microsoft in the below quote, it will return whatever is in the buffer ...

Answered by: vikasrajbansal on: Oct 12th, 2006

no answer is correct my answer is h

First | Prev | | Next | Last Page

 

 

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.