- What data types do the asp:RangeValidator control support?
- What is ViewState?
- What is ASP.NET 2.0 Page Life Cycle?
- What is difference between Trace and Debug?
- Difference between DataSet and DataReader
- What is custom tag in web.config file?
- Which is stateless
- How can you manage client-side state?
- How can you manage server-side state?
- Types of Configuration files and their difference?
- How do you retrieve username in case of Windows Authentication?
- what is the control for which by default post back is enabled(true)
- What is HttpHandler?
- What is EnableViewStateMAC?
- Explain what a diffgram is, and a good use for one?
- What is the lifespan for items stored in ViewState?
- How to make sure that despite using validation control on your.aspx page, your page is valid? or how to validate the page in the server side?
- How to copy items from one DropDownList control to another DropDownList control.
- What is the difference between asp:Label and asp:Literal control?
- How to improve performance of web page in asp.net?
- What’s the use of "GLOBAL.ASAX" file?
- What’s a SESSION and APPLICATION object ?
- What are the various ways of authentication techniques in ASP.NET?
- Do session use cookies?
- What's the difference between Page.RegisterClientScriptBlock and Page.RegisterStartupScript?
- Can a user browsing my Web site read my Web.config or Global.asax files?
- What are different types of directives in .NET?
- What are the different types of caching?
- Where do you add an event handler?
- What are user controls and custom controls?
- Where does the Web page belong in the .NET Framework class hierarchy?
- Is it possible to prevent a browser from caching an ASPX page?
- What does AspCompat="true" mean and when should I use it?
- Explain the differences between Server-side and Client-side code?
- What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?
- What event handlers can I include in Global.asax?
- What method do you use to explicitly kill a user s session?
- Which two properties are on every validation control?
- What are the validation controls in asp.net?
- How to load a user control dynamically in runtime?
- How to get the authentication mode from web.config file programmatically at runtime?
- How to convert an Array into an ArrayList?
- How to convert an ArrayList into an Array?
- What’s the difference between Response.Write() and Response.Output.Write()?
- What’s a bubbled event?
- What is different between WebUserControl and in WebCustomControl ?
- What is smart navigation?
- What is CAS?
- What is Code group?
- What event handlers can I include in Global.asax?
- How many types of cookies are there in ASP.NET ?
- Difference between DropDownList.Items.Add and DropDownList.Items.Insert method
- Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process.
- What does the "EnableViewState" property do? Why would I want it on or off?
- Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?
- What Is The Difference Between ViewState and Session...?
- What does WSDL stand for?
- How will you upload a file to IIS in Asp and how will you do the same in ASP.net?
- Menton the events in page life cycle and explain them.
- What is State management in ASP.NET?
- How to check viewstate tampering
- What is ViewState ? and how it is managed ?
- What is meant by urlencode and urldecode?
- How’s the DLL Hell problem solved in .NET ?
- What’s the difference between System.String and System.StringBuilder classes?
- Why only boxed types can be unboxed?
- Between Windows Authentication and SQL Server Authentication, which one is trusted and which one is untrusted?
- What’s a bubbled event ?
- What is the difference GridView and between DataGrid(Windows)?
- Difference between DataGrid, DataLsit and Repeater?
- What is the difference between Server.Transfer and Response.Redirect?
- which of the following controls support databinding.
- difference between custom control and user control
- What is the difference between Session Cookies and Persistent Cookies?
- What is Cookie Dictionary?
- What are the advantages and disadvantages of Cookies?
- Which one is not the correct ASP.NET Version?
- What are server controls?
- Difference between ASP Session and ASP.NET Session?
- What is cookie less session? How it works?
- What method do you use to explicitly kill a users session?
- What are the different ways you would consider sending data across pages in ASP?
- What are the disadvantages and benefits of view state?
- differences between Server-side and Client-side code?
- What is Role-Based security?
- How do you implement postback with a text box?
- What is a master page ?
- Which of the following does not contain Id and Runat Propertys
- What is the Default Property of ShowFooter in Gridview
- How many types of Validation controls are there in ASP.NET?
- Maximum Data that can be stored in a cookie?
- What is the best state management variable to save the username for particular session?
- What is the Difference Between string and System.Text.StringBuilder?
- Which is the Light (Performance wise) Data control from the following?
- Should we need to dispose the object after use Explicitly or we need to wait for Garbage Collector to dispose those object?
- What is the significance of AutoEventWireUp attribute?
- Difference between Localization and Globalization?
- Difference between ASP.Net Website and ASP.Net Web Application?
- disadvantages of hidden fields?
- How to disable the page viewstate by
- How you will get the current Page Url?
- Which of the follwoing property has the default property for gridview paging by setting the 'PageSetting' Property?
- Which of the follwoing code have to write for cancel Link in gridview?
- How To Get the Referral page's URL?
- To send Emails,you need the following classes from the System.Web.Mail namespace?
- What is code-based security?
- What is the Better approach to redirect on other page within the same server?
Response.Redirect or Server.Transfer - Default Mode for Session State?
- Which is the first event in page life-cycle Event?
- Name two properties common in every validation control?
- What is the maximum number of cookies that can be allowed to a web site?
- How do you explicitly kill a user session?
- How turn off cookies for one page in your site?
- Name Authenication Modes available in web Application?
- What is cross page posting in ASP.NET2.0 ?
- Suppose Page_load event is defined in aspx page and same page_load event in code behind. What will happen now? How program will run?
- Which ADO.NET class allows you to specify SQL text to execute, one or more parameters and also choose a specific SQL connection to run against?
- NET class that reads data from a database. Inside this class you need to use a SqlDataReader to read back any records returned from the database. What property of the DataReader should you check before attempting to read any records?
- Which of the following property is used to set a crosspage posting?
- Which of the following is Default ErrorMode in CustomError tag?
- Which control is used to display the list of Error Messages in asp.net page
- Validation Controls are non-visible controls?
- Which of the following Regular expression is used to validate a 10 digit phone fied?
- If we remove a web.config file from the application , is this application will work?
- ow to send XML file on server using HTTP protocol?
- What data types do the RangeValidator control support?
- Where does ASP.Net stores sessionIDs by default?
- Name of the event that is not fired during page cycle?
- Name the property to access Referring page URL?
- Is IIS Mandatory to develop a Web application in ASP.NET 2.0?
- Which type of control Span is in ASP.NET
- What is the default authentication system in asp.net web application?
- What is the Purpose of Server.MapPth?
- What is Size Limit for Cookies data?
- What is the Extension of web Service ?
- Is finally block executed if there is no exception?
- Which Function is used to count more than two billion rows in a table?
- Is it Possible to create more than one machine config file.
- What is the name of base class for .NET
- What Are The Difference Between AutoEventWireup="true" and AutoEventWireup="False"?
- What is Difference between Callbacks and Postback in ASP.NET?
- Which should be used to redirect on next page in the same server?
- Response.Redirect() can be used to redirect from one page to another page in
- Can an ASPX file contain more than one form marked with runat="server"?
- What is wrong with this code?
Server.transfer("Default.HTML"); - What if Some one types the URL of web.config file in the browser?
- Which method of HTTP Handler gets invoked when request is received?
- What is the name of class from which web pages are inherited?
- try
{
Response.Write("Try Block:");
return;
}
catch (Exception ex)
{
throw;
}
finally
{
Response.Write("Finally Block");
}
What will be the output for the above code? - How do you create a permanent cookie?
- What are the expiration policies for Cached objects?
- How do you turn off cookies for one page in your site?
- What's the difference between Codebehind="MyCode.aspx.cs" and Src="MyCode.aspx.cs"?
- Can we execute any web site without the web.config file?
- What is Event Bubbling?(Asp.net)
- Default setting for the expires attribute of the document.cookie property?
- Which of the following classes is required to draw an empty circle? (Choose all that apply.)
1. System.Drawing.Graphics
2. System.Drawing.Pen
3. System.Drawing.Brush
4. System.Drawing.Bitmap - You creat a Web site that stores user's active themes in user profile objects. You need to apply user's preferred themes when they log on to the Web site. What should you do?
- You need to identify a type that meets the following criteria :
Is always a number and Is not a greater than 65,535. Which type should you choose? - What’s the Difference Between <%# i %> and <%= i %>?
- Can we set priority (High, Medium, Low) of the mail sent via ASP.NET?
- Is it possible that cookies created by asp.net application can only be accessed via server side code only? Is it possible to restrict that client side code can not access any cookie?
- Does SessionID change with every request in the asp.net 2.0 application?
- ViewState is encrypted.
- You catch an unhandled exception in a Page_Error handler. How can you access the last error?
- How can you detect if a viewstate has been tampered?
- Can I use different programming languages in the same application?
- Can the App_Code folder contain source code files in different programming languages?
- What are the different code models available in ASP.NET 2.0?
- Which typically consumes more memory: application state or session state?
- Which might not work if a user has disabled cookies in his or her Web browser: application state or session state?
- What is View State Chunking?
- Is view state lost if a user refreshes a Web page? What if the user copies the URL and open it in other browser?
- Which control requires the Web.sitemap file to display site map information?
- What is the name of the Web page property that you can query to determine that a Web page is being requested without data being submitted?
- What is the name of the virtual page that you can request to view trace data when the trace data is not displayed on its corresponding Web page?
- Which of the following browser capabilities can you not check using Request.Browser?
- Which method would you call to send an e-mail message and wait for the transmission to complete before proceeding?
- What type of exception will the runtime throw if the SMTP server rejects a recipient e-mail address?
- Which of the following can be share between two pages.
- what is the transport protocol used to call webservise ?
- What is LINQ
- You need to obtain performance information about your Web Application. You should use which of the following?
- What launch conditions do Web Setup Projects include by default?
- What are the four phases of a Web Setup Project deployment?
- Is it possible to update a connection string stored in the Web.config file programatically? If Yes, then how?
- You catch an unhandled exception in a Page_Error handler. How can you access the last error?
- What is the difference between Postback and callback?
- which namespace is used to implement active directory services?
- In an ASP.NET website, when the web.config file is getting called?
- What is the Difference between RegisterStartupScript and RegisterClientScriptBlock?
- By Default, ASP.NET does not allow HTML tags to be sent to server via client side due to security reason. Which property needs to be set that allows HTML tags to be processed by server?
- When file upload control is used, you can add maximum 4 mb size of the file. Using which property one can extend the limit of file size?
- For a blank ASP.NET Page or ViewState Disabled page, will there be any value stored in the _VIEWSTATE field?
Note : The Viewstate of an ASP.NET page is created during the page life cycle, and saved into the rendered HTML using in the "__VIEWSTATE" hidden HTML field. - If for a Compare Validator control, ControlToCompare and ValueToCompare properties are set, then which property will take precedence?
- What is the difference between ListBox (Filled with data) and DropDownList (Filled with data), in terms of SelectedIndex property?
- Does ViewState is responsible for maintaining data across the Page Post Back for Postback controls (like textbox, dropdownlist) and non-postbackcontrols(like label)?
- Which component is required for all pages that use Web Parts?
- How can you define a control property using a global resource at design time?
- What can you do to make a Web page more useful to a user who does not use a mouse?
- If a users has disabled cookies in his browsers, what can be done to enable forms authentication?
- Can we delete directory having other directory and files?
- How can we copy the file from one location to other?
- Where is Cache data stored—in memory, on the hard disk, in a database, or on a state server?
- What is a primary difference between the standard validator controls and the mobile validator controls?
- What is the unit of the Duration property in the OutputCache directives of the UserControl in asp.net
- What is a web garden?
- What are the main components of IIS 7.0?
- What is cross page posting in ASP.NET?
- What is difference between ResolveUrl and ResolveClientUrl ? Which do you prefer to use?
- With which method you can set design-time data for a control ?
- Which method will you use to Delete the view-state information for all the server control's child control(s)?
- Which property do you use to determine how ASP.NET page was invoked?
- Explain AdRotator control.
- What is persistent and non-persistent cookie?
- What is difference between System.Web.Caching.Cache and System.Web.HttpContext.Current.Cache ?
- What is Cookie Munging?
- What is the difference between Session.Clear() and Session.RemoveAll() method?
- Is it possible to set SessionState to readonly mode? Readonly mode means, we can only read data from session but we can not write any data in session variable?
- Is it possible to use InProc mode for sessionState in case of web garden?
- Explain Server.URLEncode Method.
- When response expires if there are multiple calls to Response.Expires on a single page?
- HttpApplicationState class stores data in
- How many ContentsPlaceHolder Controls contains to the MasterPage by default?
- Is it possible to create cookies with keys? Explain using some example.
- Which element is used to apply a theme to the current application withint the web.config?
- The URL for a Secure Connection starts with
- which property is used to check the current connection is secure
- The FormsAuthentication class is in the
- To Create a Email Message in HTML format,set the IsBodyHtml Property to
- To specify a comment with in a Skin File you must use the
- Which attribute is used to apply the skin to a control of that type
- What is the name of the base class, from which all the validators controls of ASP.NET is derived?
- Which method will you use to access second result table of stored procedure with datareader ?
- Name the Protocols that are commonly used for sending and retrieving Email Message?
- Which protocol for defining the format of an Email message
- Name the constructor which creates a client that can send email to the specified SMTP server?
- You can redirect (or) Transfer to a CustomError Page in which block?
- Object type collections are located in the whcih NameSpace?
- Generic Collections are located in which NameSpace?
- DetailsView Control can be displayed in which Modes?
- Can we to pass more than one querystring parameter with hyperlink in .aspx file?
- Which method is used to rewriting/redirecting server-side execution?
- It is possible to get class or struct indexed just like arrays using…
- What is difference between TransferRequest and Transfer method?
- Base class for classes accessing session-state values, session-level settings, and lifetime management methods is…
- Difference between Eval() and Bind()?
- Which of the following method is correct to send an Email Message?
- Name the classes thet are used to send a mail?
- What is IsPostback property in asp.net and how does it work?
- What are the different level of settings are available for configure cookies in browser ?
- How can we disabled session for an ASP.NET Application ?
- How can we disable session in Page Level ?
- Which process is used to run ASP.NET Application from Visual Studio IDE ?
- Process Used for Maintain State Server Session ?
- is it possible to add APP_Code folder in web application project in Visual Studio 2005 or later?
- Justify : Custom validator gets executed only at client side.
- Is it possible to maintain scroll bar positions during postbacks ?
- How will you set focus to the control?
- Does defaultbutton of form tag works with ImageButton?
- What is the lifetime of ViewState?
- What is the easiest way to bring down any website in ASP.NET?
- Default ContentType of Response.ContentType is…
- What is the difference between the Theme and StylesheetTheme?
- In your asp page, HTML tag and CacheControl will be specified…
- What concept does the above sample code demonstrate?
internal class Piston {}
internal class Engine
{
private Piston[] myPistons = new Piston[4];
public bool Ignition() {
//some code
}
}
public class Car
{
private Engine myEngine = new Engine();
public void Start()
{
//put in keys etc..
if (myEngine.Ignition()) {
//some more code
}
}
} - As a developer you are displaying product data from SQL Server. Product table has
Productid and ProductName. You write ADO.NET code that uses a SqlDataAdapter
object and a SqlCommand object to retrieve the product data from the database by calling
a stored procedure. You set the CommandType property of the SqlCommand object to
CommandType.StoredProcedure. You set the CommandText property of the object to procProductList. Your code successfully files a DataTable object with a list of products that is sorted by ProductID in descending order.
You want the data to be displayed in reverse alphabetic order by ProductName.
What should you do? - What is the fastest way to concat strings in ASP.NET ? What should you do?
- You want to only get changed data in a dataset which of the below is the best way ?
- Which of the following does the actual .NET code execute ?
- Garbage collector runs ?
- How you can determine whether client is connected to server or not?
- How to assign class to htmltablerow runtime?
- how to handle EmptyDataTemplate with repeater ?
- How many ViewState objects can be created on an aspx page ?
- What is Captacha Image and why it is used?
- How do you send data through querystring to another page without displaying it in the URL?
- What is smart navigation in .NET?
- What namespace does the Web page belong in the .NET Framework class hierarchy?
- Does isMaxLengh work with multiline textbox ? How can you handle such situation?
- You need to prefix something with the retrieved amount (Positive, negative, zeros). How will you handle this?
- What is capacity and length for StringBuilder ?
- can we use session variable in App_code Class page ?
- How to redirect user to secure connection ?
- How will you make strings with TitleCase ?
- How does ASP.NET store SessionIDs by default?
- Using which property you can check on the server whether validators controls are satisfied or not?
- The capacity of the stringbuilder get increased,…
- How can we make file hidden ?
- Elements of jagged array are of…
- What is the difference between UniqueID and ClientID?
- Is it possible to read Web.config or Global.asax files from browser?
- Can I make viewstate enabled for controls where Enableviewstate of the container page is set to false?
- Can you find label placed in footer template of repeater in itemdatabound event of the same?
- What is PLINQ
- Client Sertificate is a collection of ___________ ? (Request / Response / Server)
- What is the size of the session ID ?
- What Type of Processing model asp.net simulates ?
- Which class can be used to perform data type conversion between .NET data types and XML types?
- What is the maximum number of cookies that can be allowed to a web site
- Where are shared assemblies stored?
- What is the transport protocol you use to call a Web service?
- Name two properties common in every validation control?
- What is the lifespan for items stored in viewstate
- Where do you store the information about the user locale
- What method must be overridden in a custom control ?
- How to start NotePad file in AsP.NET with code ?
- With wchich function you can get integer value for the specified part of the specified date ?
- A textbox generally gets named as "ctl00$Body$txtClientName". Can you control naming of the same?
- This function returns character string representing the specified datepart of the specified date.
- Is “var i = (i = “test”);” possible ?
- Which one is faster – DirectCast or CTYpe.
- Thumbrule for DirectCast
- What will it result…
CInt(1.8)
CInt(-1.8)
CInt(-1.2) - How to Invoke the Server Code on the Click of Checkbox in a DataGrid column.
- How to print out all the variables in the Session?
- All session content can be Removed ?
- Is there any difference between UCase and toUpper?
- Is it possible to delete application’s all setting?
- Is it possible to delete application level settings if you have not logged in to application?
- What are the common security threats for any asp.net application?
- What is Reference Equality
- What is Value Equality
- Performing binary operations with Double type can result,...
- What is ?? operator ?
- You can use ^ operator to perform logical exclusive-or with,
- For gridview, data-binding expressions are resolved at,…
- How can you cancel update/cancel of gridview ?
- is there any event "ModeChanged"?
- What is DetailsView?
- DetailsView and FormView - Which is better?
- Limitation of boxing nullable type.
- What you should do to avoid SQL Injection?
- What should be done to avoid Script Injection?
- Tell us the different ways to apply CSS in web page?
- Suppose you have deployed the website at production server. Now you have to change one of the style in style sheet file? How will you do it? After making change do you think, you need to compile it again and deploy it?
- Session state variables are type safe.
- Master Pages be nested.
- What is the extension for a Master Page file?
- What are the parts of Master Pages?
- What do you mean by ContentPlaceHolder in Master Page?
- Can you place more than one contentplaceholder in a master page?
- Can you place content of child page, outside the content place holder of Master Page?
- At which event Master Page and Content Page's contents are merged to build a single page?
- Is it possible to assign Master Page Dynamically?
- Can you access controls placed in master page in content page?
- Can you access the master page control in content page without FindControl method of master page?
- Is it possible to place a try block without a catch or a finally block?
- See below given code. Will it run?
try
{
Response.Write("In Try block");
}
finally
{
Response.Write("In Finally block.");
} - Select name of the file to which trace log is written?
- What is CausesValidation Property in ASP.NET?
- Suppose you have CausesValidation Property to False for a button and you are calling a javascript function onClientClick event of the button. Will your javascript function will be called?
- You need to combine two database fields: Employee id and Name (EmpID : Name) and display in a single column of DataGrid. How can you do it?
- Can you diplay image with hyperlink field of gridview?
- Can you have multiple form tags in a page?
- Can you hash state information of URL ?
- Can you add title to browser history point?
- Your site is deployed on testing server and you make some change in web.config file stored on the server. What will happen to the user's who are accessing site at that time?
- You are going to deploy a website on live server. Which build option you will select while building the website?
1. Debug
2. Release - MaintainScrollPositionOnPostback will work in Ajax Postback.
- What is the difference between document.getElementById('<%= btnMakeUpdate.ClientID %>').name AND document.getElementById('<%= btnMakeUpdate.UniqueID %>')?
- Whether azure supports all OS?
- Whether inline, embedded and external style sheets are same?
- I need to remove all items from the session. Tell me the code?
- What is the COM available to access the internet explorer in winForm?
- What is the difference between in-proc and out-of-proc?
- What is a PostBack?
- Name the validation control available in asp.net?.
- What are the various ways of securing a web site that could prevent from hacking etc .. ?
- What is validationsummary server control?where it is used?.
- What is web.config file ?
- When do you set "<IDENTITY impersonate="true" />“?
- How do you register JavaScript for webcontrols?
- Which method do you use to redirect the user to another page without performing a round trip to the client?
- Which two properties are on every validation control?
- How can you provide an alternating color scheme in a Repeater control?
- What is different b/w webconfig.xml & Machineconfig.xml
- What are different types of directives in .NET?
- What data type does the RangeValidator control support?
- What is MVC Pattern? How it is involved in ASP.NET?
- Whether ASP.NET is compiled or interpretted?
- Where smart naviagation is used?
- What are all the navigation controls available with asp.net?
- What is the namespace provides MVC pattern?
- How can you show the number of visitors of your app
- Diversities between static or dynamic assemblies ?
- Diff b/w Const and readonly?
- Diff b/w dataset.clone and dataset.copy
- Namespace and Assembly?
- How do we do paging in gridview?
- Whether Cookies is used for session?
- How the SQL Server Session state entry is in the Web Config ??
- How will you prevent your Image not to come from caching (Issue generally when you have editted with new one).
- The RangeValidator control supports the following datatype
- The method that transfers ASP.NET execution to another page, but returns to the original page when it is done is
- The keyword ‘int’ maps to one of the following .NET types
- Bitwise OR operator in C# is
- State True or False: C# supports multiple-inheritance
- What namespaces are necessary to create a localized application
- What is Tracing in ASP.NET ?
- How do we enable tracing ?
- what is PrePageExecute() event
- What is Authentication and Authorization.
- ASP.Net pages are compiled and are not interpreted. True or False.
- How do you validate the controls in an ASP.NET page?
- What is smart navigation?
- How to manage pagination in a page?
- How ASP .NET different from ASP?
- What is the use of profiles in ASP.NET?
- What are the different states in ASP.NET?
- how many type can maintain state at server side ?
- Whether javascript in the aspx(inline javascript) requires to compile each time for every modification?
- Whether for each modifications of code behind files we need to have a compilation
- Whether we can use vbscript and javascript combination for validation?
- How do we change the configurations of com dcom obhects
- To create a excel file using COM. Whether we need to change any dcom configuration?
- What is Multi-Targeting in .net?
- Difference between DropDownList and ListBox in ASP.NET
- How to Avoid the tempering of your page's viewstate ?
- Which namespace provides the classes to interact with system processes.
- Under which namespace does the Process class comes ?
- Name the utility used to add an assembly into the GAC.
- What is GAC ?
- Name the utility used for adding a strong name to an assembly.
- Syntax example to add strong name to an assembly "C:\\aaaa.dll" i.e. to generate a strong name key value pair file.
- Simple file extension for a dot net handler ?
- What is the Namespace of ForAuthentication class?
- Which property need in the email functionality to set to send the content as HTML?
- Which namespace does the Color class comes under ?
- What are the types for floating numbers ?
- What is the root class of the object hierarchy ?
- Name the Namespace used for interfaces and classes that defines the various collections of objects like lists, queues, bit arrays, hash tables, dictionaries etc.
- What's the Purpose of System.Collections.Generic ?
- Elements of CAS ?
- What's the major role of CLR for CAS ?
- Name few built in permission-sets in Dot NET !!
- What is FullTrust premission-set in dot net ?
- What is Nothing premission-set in dot net ?
- What is Code group in Dot Net in context to CAS ?
- Main Difference between User groups and code groups.
- Name of some of the types of evidence in Dot Net in context of CAS
- What is Security policy ?
- What are the Security policy levels in Dot Net ?
- What is the class for getting the information that is on Clipboard of your system in windows app ?
- What is the use of DataPager control?
- what is the difference between garbage collection and Dispose Method
- How can we Filter rows in a Datatable ?
- Can we have same method with same name and signature in a using partial class ?
- what is yeild keyword in .net ?
- What is the use of Global.asax File in ASP.NET Application ?
- what is the default port for Http and Https ?
- What is the Default Expiration Period For Session and Cookies?
- What is the maximum size of viewstate?
- If there is master page attached to the aspx page then which page load event will fire first?
- What is the maximum size of uploading file?
- If there are 5 rows in the datatable & it is bound to the gridview then how many times item_bound event will run?
- If there is one apllication, containing 10 folders, then how many maximum web.config can contain in that application?
- Can we put web.config in sub folders & which will applicable for the application?
- What is the maximum Number of Tables Stored in Dataset?
- How many tables can we store in the dataset?
- Who calls the validation controls?
- Difference between Session object and Profile object in ASP.NET?
- What are the validation controls available in asp.net?
- What are the two levels of variable supported by Asp.net?
- Is it possible to apply theme to a Master page?
- What is Cache Callback in Cache?
- What is Absolute and Sliding expiration in .NET?
- What are resource files and explain the steps to generate a resource file?
- What is Shared (static) member?
- Explain the aim of using EnableViewState property?
- What are the different types of Session state managements available with in ASP.NET?
- Define Error Events?
- Why the exception handling is important for an application?
- What is Session Identifier?
- What are the advantages and disadvantages of using Outproc Session State?
- How do you provide secured communication in ASP.NET?
- How do we implement ASP.NET Globalization?
- Explain how to configure Trace switches in the application's .config file? Give the code snippet of config file.
- What are the different ways to handle exceptions in ASP.NET? Explain them briefly?
- Explain the points that differentiate between login controls and Forms authentication?
- What is DataSet and DataView?
- Explain Form level validation and Field level Validation?
- How do you begin and end secure communication via SSL?
- What is the role of the ASP.NET worker process? What is aspnet_wp.exe?
- What are GridView and ListView in ASP.NET?
- What is DataPager control, describe it?
- Explain briefly what is DataList control?
- What is hidden field control?
- What is the use of @Page Directive?
- What is the difference between web service and remoting?
- What is App_Data Folder?
- What are the different ASP.Net controls?
- What are the different types of server controls present in ASP.Net? When you will use them?
- Explain about the readystate property in ASP.NET?
- What are new things with ASP.Net 4 WebForms?
- What is RedirectPermanent in ASP.Net 4.0?
- How will you specify what version of the framework your application is targeting?
- What are different classes that are present in .Net framework?
- What are the new features you can find in Asp.Net 4.0?
- How do you implement the custom output caching?
- How do you implement ViewState for a control in ASP.Net 4.0?
- What is View Control? How it relates ActiveViewChanged?
- What a Wizard control can contain?
- What is using statement versus using directive?
- Describe the Managed Execution Process?
- What is Active Directory? Explain the steps to configure ActiveDirectoryMembershipProvider(ADMP)?
- What is Access Control Lists? How to add a rule to the Access Control List?
- What is the difference between ReadOnly and Const?
- What is the meaning of neutral cultures in ASP.NET?
- What's the advantage of using Windows authentication in a Web application?
- How will you get a User Identity in an application?
- What is the default expiration period for Session and Cookies, and maximum size of ViewState?
- Describe about Server Side State Management?
- What are the advantages and disadvantages of using Session State?
- Explain what are the different Session State Modes that supports ASP.NET?
- In which way you identify a Master Page and how you can bind a Content Page to a Master Page? Can a master page be nested?
- How can you dynamically assign a Master Page?
- Explain what are the different ways to globalize the web applications?
- What are the different types of Caching in ASP.Net ?
- What are the properties and methods of cache Class ?
- What is Application Pooling and what is its advantage ?
- Describe about HttpContext Class ?
- Write the code which will create a cookie containing the user name DotnetFunda and the current date to the user computer. Set the cookie as that remains on the user computer for 10 days?
- Describe the difference between Web and Window applications?
- What are Button HTML control and the Button Server control? What is the main difference between them?
- What are the two different levels of variables that are supported by Asp.net?
- Explain what is the purpose of using EnableViewState property?
- What are Shallow Copy and Deep Copy in .NET?
- What are the Difference between Compiler and Debugger?
- What is Debugger and what are the types of Debugger?
- What is the difference between Cookie and Session in Asp.Net?
- Define and describe different File Name Extensions in Asp.net?
- Describe the different properties of cookie in Asp.Net?
- What is Profile Based State in ASP State Management ?
- Explain the ways, so that you can modify the additional permissions required by an application?
- In which 3 levels we have a configuration file for an ASP.NET web application?
- Write the steps to host a web application on a web server?
- Why it is required to monitor a deployed Web application?
- Write three major steps which involves in maintaining a deployed web application?
- How do you run the Event Viewer to view application, system, and security events as they happen?
- Mention the different levels of events for Event Viewer?
- How you can make change in deployed ASP.NET web application without restarting the server or IIS?
- What is ASP.NET Process recycling and how to configure it in machine.config file?
- List the different ProcessModel attributes which relates to process recycling in machine.config file?
- What are the three different types of Server Control Events?
- What are different application level events?
- In which levels, the events can occur in an ASP.NET web application?
- What is the difference between Application and Session Events?
- Explain steps to optimize a web application for better performance?
- What is Optimization?
- How long the instance of a web form is available on the web server?
- Explain the ways to format output of an ASP.NET Web application?
- In which levels we can apply formatting to a web application?
- Write the advantages of storing style definitions in a style sheet file (.css)?
- What is the use of Style Builder and how you can modify a style sheet using style builder?
- Can you apply styles using class names and can you change it at run time?
- What is a validation group and how do you create a validation group?
- How a validation group works when the Page is posted?
- Can a DropDownList fire validation controls?
- Why SetFocusOnError property is used for a validation control?
- What is InitialValue property of a RequiredFieldValidator?
- How you can invoke programmatically all validation controls on a page?
- What’s the difference between System.String and System.Text.StringBuilder classes?
- Can you programmatically store and retrieve data from ViewState?
- Is the ViewState of one page available to another page?
- Can the HTML controls retain State across postbacks? If no, can you make HTML controls retain State across postbacks?
- When a ViewState restoration happens and is it encoded?
- What are the three Register directive attributes used to add custom controls to a Web form?
- What are composite custom controls?
- What is difference between “Common Type System” and “Type Safe”?
- What is the use of MaintainScrollPositionOnPostBack property?
- In which way you can retrieve original request URL when using URL rewriting or Server.Transfer in ASP.NET?
- How to follow the best way to secure connection strings in an ASP.NET web application?
- What's the use of "Connecting to SQL Server using Integrated Security"?
- Why we are storing an XML file in the applications App_Data folder?
- Write the steps to avoid Script Injection attacks?
- What is an HTTP Handler?
- What is HTTP module?
- What is the interface that you have to implement to create a Custom HTTP Handler?
- What is the difference between Synchronous and Asynchronous HTTP Handlers?
- How can you create your own custom HTTP handler factory class?
- What is the co-relation and difference between HTTP handlers and HTTP modules?
- What is the difference between Named skins and Default skins?
- Explain 3 levels at which a theme can be applied for a web application?
- What is the difference between themes and CSS?
- What is the Difference between Internal and Protected Internal Access Modifiers?
- Where does Static variables store ?
- Which of the following is false regarding Constructors?
a)There can be only one static constructor in the class
b)The Static constructor should be without parameters
c)Static constructor can be used to intialize both Static members and nonStatic members
d)There should be no access modifier in static constructor definition - When were Partial Methods intorduced ? (FrameWork )
- What is the use of DIAGNOSTICS namespace in C#.Net?
- What is Screen Scraping ?
- What is the use of DataSet.CaseSensitive property?
- How you can roll back all the changes made to a DataSet when it was created?
- Describe the life cycle of a web application? When are webforms instantiated and how long do they exist?
- How do you declare an unnamed procedure within .NET?
- In order to apply .net Remoting what are the essential requirements?
- Main advantage of URL Re-Writting ?
- How many different types of triggers available ? what are they?
- Lets us assume that we are deploying a web site to a server managed by a hosting company , i only access we have to server is FTP , we need to pre-compile and deploy the website without its source files . So now what can be used to resolve this?
- How can you assign a Master Page dynamically?
- Define Session object?
- Explain what is Profile object?
- What is the difference between GetType and TypeOf?
- Define casting of a data type? What are the two types of data type conversions?
- What is the type of struct? Can a struct inherit from another struct or class?
- What are the different protocols used by a .Net Web Service?
- Explain the requirement of ASP.NET web services?
- What are the main advantages of binary serialization?
- Which one of the following file store the method signature information for an XML WebService ?
- What is the Difference between Convert.ToString() and .ToString()
- What is the difference between Panel and GroupBox classes in .NET?
- What is connection pooling and how do you make your application use it?
- When it will be advisable to use html server controls and when it will be advisable to use web server controls?
- How to make an ASP page to refresh after certain time ?
- How does SMTP support web applications ?
- How does the Transaction topic work in asp ?
- What are the simple Escape sequences write with their unicode Character encoding.
- Why this Error comes during compilation of our ASP page ?
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineOnly' beyond machine.config. - What is the use of culture attribute of the globalization element in web.config?
- Explain advantages and disadvantages of using detect and redirect approach to globalize the web application?
- How you can determine validity of an XML document?
- What are the Good Steps to be followed for maintaining Connection Strings in Asp.Net Web Applications ?
- What do we Understand by the word "THEME" in asp.net ?
- What is the main difference between DataSet.Clone() and DataSet.Copy() ?
- What is Event Bubbling in asp.net ?
- Difference Between Web.Config file and Global.asax ?
- What is Data Source Control with example?
- There is a file known as XMLFile.xml under the App_Data folder. What will be the output of this command which is executed from a .aspx page.
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("App_Data/XMLFile.xml");
} - Which of these cannot be determined using the Request.Browser property ?
- Which of these files affects the settings of Windows as well as web applications?
- Which of these is a virtual file?
- Which of these Controls supports the Bind method?
- Which event is fired when any button is Clicked in a GridView
- Which of these events of the Calendar will be appropriate to provide some
formatting like changing the Backcolor of the weekend day cells dynamically ? - How to change the CssClass of a server control without writing any code for checking the browser?
- Which of these is a valid declaration in a skin file ?
- What is the difference between Eval and Bind methods?
- Which mode should be used to maintain session state even if the Web Server
crashes? - Which of these controls is supported for pagination by DataPager ?
- A web user control has been created in WebSite1. Can we use it in WebSite2, WebSite3
etc. - You have developed a job website using ASP.NET. What must the end users should have on their PC'S to view or register at the web site.
- How can you keep a track of all the unhandled exceptions of your web application in the
system event log? - Difference between ViewState and ControlState:
- Why we use error pages in asp.net?
- Which of these is not the value provided in Type property of Validation Controls?
- Which of these Controls does not have the Display property?
- How can you remove the default arrows that appear in the ASP.NET Menu Control?
- Which of these controls can be validated using RequiredFieldValidator?
- which namespace defines the classes for Application,Request,Response,Cache objects
- You create users using the Web Site Administration Tool or the CreateUserWizard
control. No external database is being used. In which database ,all the user details
will be stored? - How to protect the view state from tampering
- What is URL Routing in ASP.NET MVC?
- What is TDD environment?
- Which of these data source control does not have the Caching feature?
- In which Login Control, you can provide a link to a Web Form(example: register.aspx)
- What is the difference between the Take and Skip clauses?
- What is the difference between the Select clause and SelectMany() method in LINQ?
- What is determined by the Culture and UICulture values?
- What is aggregate dependency?
- Which of these event handlers is fired whenever the request is sent for the web page
from the browser? - Difference between Server.Transfer and Response.Redirect
- Which of these objects can be used to implement Page output Caching?
- How can you create a Cookie that never expires?
- How can you display server-side Time and Client Side Time in asp.net?
- What is SSL?
- What is process recycling?
- What are Web Parts?
- In which of these modes, you can do dragging, dropping of the web parts
- What is the default authentication mode of an ASP.NET wEB SITE?
- What is Post- Cache Substitution?
- What is scavenging?
- What is difference between response.redirect and server.transfer ?
- How can you prevent the page from scrolllng up and down when some postback occurs ?
- Differences of ASP and ASP.NET Session State
- .Net and ASP.NET Interview Questions- Why can't we instantiate an abstract class?
- What is the use of ValidateRequest attribute in the Page directive?
- Difference between Master Page and UserControl
- Differences of Application and Session objects.
- Differences between Application and Cache objects.
- What are QueryStrings? List some of the Advantages and Disadvantages ?
- What is a Global Theme?
- How can we change the writing direction to "right to left"?
- How can you prevent server-side Caching in ASP.NET?
- In which of these events you would write code for Paging and Sorting in a Repeater?
- Which class you would use for pagination in DataList?
- What is HttpForbiddenHandler?
- Can we use App_Code folder in a ASP.NET Web application project?
- What is Configuration API ?
- What is a MMC Admin Tool?
- Can we read the ViewState of .aspx page from its source view?
- Which is the first event handler that fires for a Web Site?
- Which of these controls is required to display data in a ListView?
- What are Cached events?
- Which of these tags are mapped with HtmlInputButton class?
- <?xml version="1.0"?>
<configuration>
<system.web>
<authentication mode="Windows"/>
</system.web>
</configuration>
How can you retreive the authentication mode programatically? - How many intrinsic objects are there in ASP.NET?
- Difference between Response.Write and Response.Output.Write
- How can we get the path of the Temporary Folder?
- How can we initialize Session variables in a user -defined class?
- What is the difference between Session["uname"]=TextBox1.Text and
Session.Add("uname",TextBox1.Text)? - Why does not the SessionId change after Session.Abandon() method is called?
- Which object do you use when you need to know the type and version of the browser requesting the current web page?
- On which of these classes, we can apply skins?
- Which of these security aspects allow you to modify users properties?
- Which of these properties of a Web Page is true when you post to another page ?
- Which of these events of a web page are fired during asynchronous postback?
- Which of these files is also called as AJAX Client Library?
- Which of these are valid MIME types?
- Which of these parameters are not used with SqlDataSource control?
- Can we implement Cookieless Forms Authentication?
- How can you detect the Windows' user name in ASP.NET?
- Whioch of these controls is useful if runtime User Interface is not needed?
- Which of these represents neutral culture?
- There is a web page in which the user interface should be in English but the calendar dates should be in some regional language. How can you do that?
- Which of these cannot be a web part?
- Which directive/attribute is generated in a .aspx page that references the master page?
- Which is the base class for health-monitoring audit events?
- When health monitoring is enabled, which property is required in the health monitoring section of the web.config file?
- Which property of MembershipProvider is used to track the time interval for the failed login attempts?
- How can you prevent a cookie from cross side script attacks?
- How many role providers are there in ASP.NET ?
- Which of these techniques results in performance improvement of a web site?
- How can you configure the mobile devices for Session State?
- How can you test whether the Windows user is authenticated?
- What is RedirectPermanent?
- Can we save ViewState on the server side?
- How can you prevent data to be removed from Cache when memory becomes low?
- Where does caching of a UserControl occur?
- Can you cache a web page on the basis of stylesheets?
- What is "Has File" property for a FileUpload control?
- What is "Content Type" for a FileUpload control?
- In which situations would you use HTML controls in an ASP.NET web site?
- What is Event Bubbling?
- Difference between Response.Write() and Respons.WriteFile()
- You make changes to the Web.Config file? How will they affect the web application?
- After which of these events, ViewState of a Page is saved?
- Which of these state management techniques data can be seen using Tracing?
- Which of these components have the DefaultButton property?
- How does the LinkButton post the form back to the server?
- A function/method named A(int param1, int param2) contains two parameters param1 and param2. When we are calling this function which parameter value will take first?
- What is Site Navigation?
- Difference between Web Garden and Web Farm?
- What is the use of AutoEventWireUp attribute?
- A theme can contain how many Default and Named skin for each control ?
- What is the difference between Session.Abandon() and Session.Clear()?
- What is the Pages MaxPageStateFieldLength for?
- How do you customize an ASP.Net page so that it will use a custom browser configuration instead of the default browser capabilities object?
- What attribute must be set on a validator control for the validation to work ?
- Where is the default Session data is stored in ASP.Net?
- What is the difference between application state and caching?
- How do you turn off cookies in your site?
- What is .Net Remoting?
- What is viewstate in ASP.NET ?
- Can we run asp.net application without WEB.CONFIG file ?
- What is the difference between ASP and ASP.NET?
- is multiple inheritance possible in c#.net?
- How to pass values from one page to another in asp.net?
ASP.NET Interview Questions
List of ASP.NET Interview Questions. To get the answers of these ASP.NET Interview Questions, click here.
