GeekInterview.com
Series: Subject: Topic:

ASP.NET Interview Questions

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

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 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: sumit on: May 21st, 2012

view state is a .net mechanism preserves the control & state on a webpage when user enter data page re-display view state for you by storing the appreciate information in hidden field on a form ;do not have to write code 2 implement viewsate;

Answered by: Same on: Mar 1st, 2012

View State is used to store the values in the current page.
Session is similar,but can hold values across the pages.

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.

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

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?

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

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

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

Answered by: mks87 on: Apr 27th, 2012

False

Answered by: Nilpesh Patel on: Mar 30th, 2012

One application can have more than one WEB.config file but application root has only one. And any folder then we can add config file inside.

If we define same key in both config file then the config file inside the folder overrides the value of root config file.

ASP.Net repeater control

Asked By: Con2Vini | Asked On: Sep 15th, 2011

Is it possible in repeater control to do a functionality of edit, update, delete as gridview,listview and etc data binding control?

Answered by: Urmi on: Apr 20th, 2012

No.The Repeater control is used to display a repeated list of items that are bound to the control. The Repeater control may be bound to a database table, an XML file, or another list of items.

Answered by: Aarti Helkar on: Apr 9th, 2012

Yes, repeater also have that capability to edit,delete and update the record.

We have to explicitly write the code for that, as we write for the binding of db.

What is the difference between the repeater and the datalist?

Asked By: bthshariff | Asked On: Apr 8th, 2012

Answered by: Aarti helkar on: Apr 9th, 2012

Datalist is used to just read only purpose where data in table format. where a repeater has no such format to store the data. In repeater we can put data in any where in random format. The Repeater ...

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.

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: Sudhakar on: Apr 4th, 2012

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

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

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

Answered by: venkatesh on: Mar 12th, 2012

client side session
server side session

Answered by: sbehera02 on: Feb 23rd, 2012

1. Inproc
2. Out Proc
3. StateServer

What events will occur when a page is loaded?

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

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

Answered by: kirangiet on: Oct 23rd, 2009

We are having 11 Page life cycle events.Below are the events occures during page load.1) Page_PreInit2) Page_Init3) Page_InitComplete4) Page_PreLoad5) Page_Load6) Page_LoadComplete7) Page_PreRender8)R...

How to get listview data key on button click

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

How to find a datakey value on image button click in listview without using any listview event ???

Answered by: shanaz fathima on: Mar 5th, 2012

if you want to Get Data Key value on Click of ImageButton/LinkButton, you can set the DataKey value to CommandArgument property of your control and then in Click handler you can get the value from CommandArgument property

Code
  1.  <asp:ImageButton ID="ibtn" runat="server" CommandArgument=<%# Eval("DataKeyName")%>
  2.  ImageUrl="~/Images/edit.png"></asp:ImageButton>
  3.  

What is event bubbling?

Asked By: mdchaus | Asked On: Dec 2nd, 2005

Answered by: karthik L on: Mar 1st, 2012

Basically this is the concept of control hierarchy works just the same with a DataGrid.

Answered by: rimipaul86 on: Sep 14th, 2011

The passing of the control from the child to the parent is called as bubbling. Controls like DataGrid, Datalist, Repeater, etc can have child controls like Listbox, etc inside them. An event generated is passed on to the parent as an ItemCommand.

What is caching? What are different ways of caching in ASP.Net?

Asked By: avkdsiva | Asked On: Feb 19th, 2007

Answered by: sbehera02 on: Feb 23rd, 2012

Caching on the web is that it avoids a roundtrip to the origin web server each time a resource is requested and instead retrieves the file from a local computers browser cache or a proxy cache closer to the user.

1. output caching
2. fragment caching
3. data caching

Answered by: ranjani on: Feb 5th, 2012

To Imporve the performance of Web Pages, we use Caching. Caching is a used for persisting data in memory for immediate acces to the program calls. It has three types : 1. Output Caching - to fetch ...

Why is multiple inheritance not allowed in c#?

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

Answered by: Lokesh M on: Feb 12th, 2012

One reason is to avoid name collision or avoid the problem of Identity which can lead to collision in method overriding. However, please note that absolute multiple inheritance is not possible in C# but C# partially supports multiple inheritance via Interfaces.

Where do the cookie state and session state information be stored?

Asked By: S S REDDY | Asked On: Jul 16th, 2007

Answered by: suresh on: Feb 2nd, 2012

Cookie is stored in client machine
Session is stored in server

Answered by: yousuf on: Sep 14th, 2011

Cookies : are stored in client side (User's browser) , Ideally suits for tiny data to be stored to be remembered by the browser where as Sessions : are variables stored in the web server to store data.

How to create chat room application using ASP.Net and vb

Asked By: ljmax | Asked On: Jun 17th, 2008

Hi all,i am a beginner in vb programming, so I need to write web based chat room application using ASP.Net and visual basic 2005. The application will save all comments on database.Can someone please help me achieve this.Thank you in advance

Answered by: jaya on: Jan 30th, 2012

This is simple web chat application which will be used by people to talk about any job opening and interview related questions. It has two modules the login and the chat module. Login module consists ...

Answered by: nikhil on: Jan 11th, 2012

You can use socket programming for that.

If we remove web.Config or machine.Config from the application then, is this application will works?

Asked By: mdchaus | Asked On: Dec 2nd, 2005

Answered by: Megha on: Jan 6th, 2012

Without web.config file, the application will be run but you cant debug.

Without machine.config file, you wont be run application because by default asp.net application used machine.config file settings.

Answered by: reach_yousuf on: Sep 14th, 2011

If you remove web.config file the app will work provided that no connection string setting etc and other dependant dll. references is configured.

if you remove machine.config the app will not run


First | Prev | | Next | Last Page

 

 

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us:
 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, click "Subscribe".