GeekInterview.com
Series: Subject: Topic:

ASP.NET Interview Questions

Showing Questions 1 - 20 of 348 Questions
First | Prev | | Next | Last Page
Sort 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: 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...

Answered by: Rajesh on: Sep 15th, 2011

SILVER-U
S --> START
I --> INITIALIZE
L --> LOAD
V --> VALIDATE
E --> EVENT HANDLING
R --> RENDERING
U --> UNLOAD

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

Asmx web service and wcf web service

Asked By: tfeaster | Asked On: Jun 24th, 2012

What is the difference between asmx web service and wcf web service? How is wcf better than asmx?

Answered by: vpote on: Aug 16th, 2012

WCF vs. ASMX Protocols Support WCF •HTTP •TCP •Named pipes •MSMQ •Custom •UDP ASMX •HTTP only Hosting ASMX •Can be hosted only with HttpRuntime on IIS. WCF •A WCF componen...

Answered by: suchitra on: Jun 27th, 2012

WCF web service provides a complete solution for the WS* specification. asmx does not.

Web service as non-web serviced component

Asked By: mohanpsm8 | Asked On: May 3rd, 2012

Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .Net component

Answered by: vpote on: Aug 14th, 2012

This is the tricky one but i feel it would be appropriate to use web service only when you are trying to receive data or send data to some one. I hope this helps.

What must be done before you can consume a web service?

Asked By: mahathi_mani | Asked On: Sep 20th, 2007

Build a proxy library by using the wsdl.Exe utility

Answered by: adnobo007 on: Aug 2nd, 2012

One way is We must hard code to convert the request and response into SOAP format . Better way is to use wsdl.exe tool to build a proxy that will take care of conversion of response and request into S...

Answered by: kirangiet on: Oct 20th, 2009

There are 2 ways one can consume a webservice. 1) By creating a proxy manually 2) By adding web reference Creating Proxy manually: 1) Browse the webservice 2) Add ?wsdl at the end of the URL ...

Focus

Asked By: ajit008 | Asked On: Jun 23rd, 2012

Use of focus() method in ASP.Net

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

The focus() method sets focus to the current window.When web page is loaded you can use a BODY onload event and javascript client code to set focus method(). Example The above example assumes a web ...

What is boxing and unboxing?

Asked By: vHarish_06 | Asked On: Oct 3rd, 2007

Answered by: Aakash.ramya on: Jun 8th, 2012

Boxing permits any value type to be implicitly converted to type object or to any interface type implemented by value type.
Unboxing is vice verse of boxing operation where the value is copied from the instance into appropriate storage location.

EX:-
Dim X As Integer
Dim Y As Object

X=10<--BOXING PROCESS-->
Y=X<--UNBOXING PROCESS-->

Answered by: Js on: Sep 12th, 2011

Boxing

Value Type -----> Reference Type

Un Boxing

Reference Type ------> Value Type

What is ispostback method in ASP.Net? Why do we use that?How can we use pointers in ASP.Net?

Asked By: kalaiselvi | Asked On: Nov 16th, 2007

Answered by: kiran kumar.B on: May 24th, 2012

Why we use postback method in c# .net?

Answered by: Venky Mokka on: Apr 30th, 2012

IsPostBack is a property which returns boolean value. It checks weather the page is postedback or not."c# protected void Page_Load(object sender, EventArgs e) { ...

What is reflection

Asked By: sanjayg | Asked On: Nov 19th, 2005

Answered by: kartik bhatt on: May 11th, 2012

reflection is the bending of light

Answered by: siddu46565 on: Feb 22nd, 2010

Reflection is the feature of C# that enables you to obtain the information about a type.

First | Prev | | Next | Last Page

 

 

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

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.