GeekInterview.com
Series: Subject: Topic:

ASP.NET Interview Questions

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

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()

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...

How the server side identifies button click event

Asked By: karthime | Asked On: Apr 7th, 2012

if i have placed the button control with the OnClick event like

Code
  1. <asp:Button ID="mybutton" runat="server" Text="Insert" onclick="mybutton_Click" />  

and some other controls(buttons, textboxes) in .aspx page. When i run the page, the button displays in the page source of the browser like

Code
  1. <input type="submit" name="mybutton" value="Insert" id="mybutton" />
  2.  

here, it does not display the onclick event, then how the page calls the button click on the server side, how the server side identify which button cause the submit, and how this page moves to the server side.

Answered by: rupinder on: Apr 17th, 2013

, control renders by default an input of type="submit", which submits the form, using the browsers default mechanism. ASP .Net identifies which button was clicked, by checking the posted values. Whe...

Answered by: Modather Sadik on: Oct 5th, 2012

The secret is in the Tag and the hidden field "id="__EVENTVALIDATION", as you know that the form element supports the Event Attributes "means the abillity to fire scripts when an action happened like...

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: 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...

Answered by: Sudhakar on: Apr 4th, 2012

You can use server.EncryptUrl , Server.DecryptUrl Functions.

ASP.Net+Javascript

Asked By: shra1kalyani | Asked On: Feb 5th, 2013

How do u get the file name from a particular path using Javascript?

Answered by: rupinder on: Apr 16th, 2013

"javascript function getFileName() { //this gets the full url var url = document.location.href; //this removes the anchor at the end, if there is one url = url.substring(0, (url.in...

Answered by: dinesh on: Apr 13th, 2013

use indexOf

indexOf(path)

What is the main role of view state?

Asked By: Con2Vini | Asked On: Feb 17th, 2012

What is the main purpose of view sate.. Like we can maintain value by session and etc but still we used view state why..???

Answered by: yogeshlcse on: Mar 14th, 2013

View state is used to maintain the state of server controls during page postbacks.

Answered by: jitendramin on: Feb 12th, 2013

Viewstate is a Page label hidden variable which is used to maintain state of the control between postback. The values will be lost as soon as you move to new page. It is a client side state management...

Dotnet framework on iis server

Asked By: lokendrageek | Asked On: Dec 10th, 2012

Is it require to install dotnet framework on iis server?

Answered by: yogeshlcse on: Mar 14th, 2013

If your are running ASP.NET application. Make sure ASP.NET handlers/extensions are registered in IIS Handler Mapping section.

Answered by: prajna on: Jan 30th, 2013

Yes

What is webcombo box in ASP.Net2.0

Asked By: sahu | Asked On: Mar 29th, 2007

Waiting 4 ans

Answered by: shra1kalyani on: Feb 5th, 2013

n .NET2.0 ComboBox and TextBox has the facility. Just set the Autocomplete property to any of the following {Suggest,Append,SuggestAndAppend} And the Autocomplete DataSource to any one of the followin...

Answered by: Sandhya.Kishan on: Jul 5th, 2012

A web combo box is used to manipulates the dataset rather than query the database everytime, to shorten the resulting resultants.

Interview skills test

Asked By: trakawras | Asked On: May 5th, 2012

I will be taking a skills test for an ASP.Net developer position and I was wondering what concepts would be on the test? What can I expect to see?

Answered by: shra1kalyani on: Feb 5th, 2013

Hi!
At first I would like to know r u a fresher or experienced in .NET.If fresher,u need to know about the basics like
OOPs Concepts

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

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

Answered by: Arvind Kumar Tiwari on: Nov 27th, 2012

Types of sessions state mode in ASP.NET
1. In process mode
2. Out process mode
3. SQL Server mode
4. Cookieless session

Answered by: anusha on: Nov 16th, 2012

They are two type of sessions
1. Session
2. Cookieless session

What are clr generations ?

Asked By: dev008rhk | Asked On: Nov 3rd, 2011

Answered by: raghav on: Nov 1st, 2012

This is the concept of memory management and it is handled by garbage collector(GC) of CLR. GC cleans up the unused managed objects and for this it performs collections and the objects will be placed...

Answered by: jamil on: Sep 7th, 2012

Common Language Runtime which responsible of convert Microsoft Intermediate language to Machine Language by run the Just In Time Compiler.

What events will occur when a page is loaded?

Asked By: ghd | Asked On: Sep 23rd, 2007

Answered by: Modather Sadik on: Oct 5th, 2012

PreInit -> Theme Init, MasterPage Applied, Control Skins Applied Init -> All controls initialized and skins applied, Read/Write control properties InitComplete -> Implement logic that depends on the p...

Answered by: Manish Thakur on: Mar 7th, 2012

Events available during page load are:

1.Pre-Init
2.Init
3.Initcomplete
4.PreLoad
5.Load
6.Loadcomplete
7.PreRender
8.Render

One application can have only one web config file - true or false

Asked By: Gajalakhsmi | Asked On: Sep 26th, 2006

Star Read Best Answer

Editorial / Best Answer

Answered by: Harit Pandya

Answered On : Oct 10th, 2006

An asp.net application is a virtual directory that you make on a web server. This application will take the settings of machine.config file if a web.config file is not available in that directory. Now if you create a sub directory inside a virtual directory and place another web.config file in the sub directory then the sub directory will take the settings of the web.config file in that particular directory.

So my answer is that an application can have more than one web.config file but they should be in different directories of that web application and also the sub directory that uses it should be a virtual directory

Answered by: Jitender Sharma on: Sep 21st, 2012

False,Yes... A Project can have multiple web.config files, but they resides in separate folders...

Answered by: jamil on: Sep 7th, 2012

True

What is the main difference between external and inline style sheet.

Asked By: Anita Singh | Asked On: Jan 6th, 2007

Answered by: jamil on: Sep 7th, 2012

The CSS file better than the inline style because if you have a change request for anything in the style you dont have to go through every line you edit style inline you have just go to file then edit and it will update the style wherever you use the class of CSS file.

Answered by: adnobo007 on: Aug 2nd, 2012

Actually there exists three types of styles Inline, Internal and External. Inline CSS is defined within the style property of any element/control Can be used only by that element Internal CSS is def...

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.