{"id":48208,"date":"2018-02-02T08:59:50","date_gmt":"2018-02-02T03:29:50","guid":{"rendered":"http:\/\/blog.odango.com\/?p=48208"},"modified":"2023-02-03T14:05:13","modified_gmt":"2023-02-03T08:35:13","slug":"asp-net-interview-questions-and-answers","status":"publish","type":"post","link":"https:\/\/asha24.net\/blog\/asp-net-interview-questions-and-answers\/","title":{"rendered":"ASP.NET Interview Questions and Answers"},"content":{"rendered":"\n[et_pb_section bb_built=&#8221;1&#8243; next_background_color=&#8221;#000000&#8243;][et_pb_row][et_pb_column type=&#8221;4_4&#8243;][et_pb_post_title _builder_version=&#8221;3.0.106&#8243; title=&#8221;on&#8221; meta=&#8221;off&#8221; author=&#8221;on&#8221; date=&#8221;on&#8221; categories=&#8221;on&#8221; comments=&#8221;on&#8221; featured_image=&#8221;off&#8221; featured_placement=&#8221;below&#8221; text_color=&#8221;dark&#8221; text_background=&#8221;off&#8221; title_font=&#8221;Titillium Web||||||||&#8221; title_font_size=&#8221;47&#8243; title_font_size_tablet=&#8221;40&#8243; title_font_size_phone=&#8221;35&#8243; title_font_size_last_edited=&#8221;on|desktop&#8221; title_text_color=&#8221;rgba(0,0,0,0.8)&#8221; title_text_align=&#8221;left&#8221; text_shadow_horizontal_length=&#8221;0.08em&#8221; text_shadow_vertical_length=&#8221;0.08em&#8221; text_shadow_blur_strength=&#8221;0.08em&#8221; title_text_shadow_horizontal_length=&#8221;0.08em&#8221; title_text_shadow_vertical_length=&#8221;0.08em&#8221; custom_margin=&#8221;|||10%&#8221; \/][\/et_pb_column][\/et_pb_row][et_pb_row][et_pb_column type=&#8221;4_4&#8243;][et_pb_text _builder_version=&#8221;3.0.106&#8243; background_layout=&#8221;light&#8221; text_font=&#8221;Titillium Web|300|||||||&#8221; text_font_size=&#8221;20&#8243; text_font_size_last_edited=&#8221;on|phone&#8221; text_text_color=&#8221;rgba(0,0,0,0.8)&#8221; text_line_height=&#8221;1.6em&#8221; max_width=&#8221;800px&#8221; custom_margin=&#8221;|||10%&#8221; text_line_height_last_edited=&#8221;off|phone&#8221; max_width_last_edited=&#8221;off|phone&#8221; custom_margin_last_edited=&#8221;off|desktop&#8221;]\r\n\r\n<strong>1) Explain Asp.net<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>It is data-access technology, primarily disconnected and designed to provide efficient, scalable data\u00a0 access.\r\nThe disconnected data is represented within a DataSet object.\r\nA data provider is a set of classes that provide access to databases.\r\n\r\nThe main components of data provider are:\r\n1. Connection\r\n2. Command\r\n3. DataReader\r\n4. DataAdapter\r\n\r\nVisual Studio .NET includes two data providers:\r\n1. SQL Data Provider\r\n2. OleDb Data Provider\r\n\r\nTwo additional data providers are included in Visual Studio .NET 2003:\r\n1. ODBC Data Provider\r\n2. Oracle Data Provider\r\n\r\n<hr \/>\r\n\r\n<strong>2) What is CLR?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>Common Language Runtime (CLR) is a run-time environment that manages the execution of .NET code and provides services like memory management, debugging, security, etc.\r\n\r\n<hr \/>\r\n\r\n<strong>3) In Visual Studio .NET, how do I create a new ASP.NET application for an existing ASP.NET project?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0First create an IIS application using the IIS MMC. Then in Visual Studio .NET, use the &#8220;New Project In Existing Folder&#8221; project template (at the end of the template list). It will first ask you for the project name (use the same one you created for the IIS application). Click OK button. Then enter in physical folder location.\r\n\r\n<hr \/>\r\n\r\n<strong>4) What is the Difference between HTML controls and ASP.net Controls?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>HTML controls are run on client side, where as ASP.net controls runs on server side and for execute on client side, they generate HTML controls.\r\n\r\n<hr \/>\r\n\r\n<strong>5) Can a .NET web application consume Java web service?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0Yes.Actually Webservices are independent to language. it depends on WSDL and SOAP. so any one can develope the Webservices anddisclose the wsdl and users can cosume the webservices.wsdl and soap both are xml based.. and all languages having xml parsing capability and access to http protocol will be able to work with Webservices\r\n\r\n<hr \/>\r\n\r\n<strong>6) What\u2019s the difference between Codebehind=&#8221;MyCode.aspx.cs&#8221; andSrc=&#8221;MyCode.aspx.cs&#8221;?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0CodeBehind is relevant to Visual Studio.NET only.\r\n\r\n<hr \/>\r\n\r\n<strong>7) What\u2019s a bubbled event?\r\nAns:\u00a0<\/strong>When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their eventhandlers, allowing the main DataGrid event handler to take care of its constituents.\r\n\r\n<hr \/>\r\n\r\n<strong>8) Suppose you want a certain ASP.NET function executed on MouseOver overa certain button. Where do you add an event handler?\r\nAns:<\/strong>\u00a0It\u2019s the Attributesproperty, the Add function inside that property.\r\n\r\nSo btnSubmit.Attributes.Add(&#8220;onMouseOver&#8221;,&#8221;someClientCode();&#8221;)\r\n\r\n<hr \/>\r\n\r\n<strong>9) What data type does the RangeValidator control support?\r\nAns:<\/strong>\u00a0Integer,String and Date.\r\n\r\n<hr \/>\r\n\r\n<strong>10) Explain the differences between Server-side and Client-side code?\r\nAns:<\/strong>\u00a0Server-side code runs on the server. Client-side code runs in the clients\u2019 browser.\r\n\r\n<hr \/>\r\n\r\n<strong>11) What type of code (server or client) is found in a Code-Behind class?\r\nAns:\u00a0<\/strong>Server-side code.\r\n\r\n<hr \/>\r\n\r\n<strong>12) Should validation (did the user enter a real date) occur server-side or client-side? Why?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0Client-side. This reduces an additional request to the server to validate the users input.\r\n\r\n<hr \/>\r\n\r\n<strong>13) What does the &#8220;EnableViewState&#8221; property do? Why would I want it on or off?\r\nAns:\u00a0<\/strong>It enables the viewstate on the page. It allows the page to save the users input on a form.\r\n\r\n<hr \/>\r\n\r\n<strong>14) What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?\r\nAns:\u00a0<\/strong>Server.Transfer is used to post a form to another page. Response.Redirect is used to redirect the user to another page or site.\r\n\r\n<hr \/>\r\n\r\n<strong>15) Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?\r\nAns:<\/strong>\r\n\r\nA DataSet can represent an entire relational database in memory, complete with tables, relations, and views.\r\nA DataSet is designed to work without any continuing connection to the original data source.\r\nData in a DataSet is bulk-loaded, rather than being loaded on demand.\r\nThere&#8217;s no concept of cursor types in a DataSet.\r\nDataSets have no current record pointer You can use For Each loops to move through the data.\r\nYou can store many edits in a DataSet, and write them to the original data source in a single operation.\r\nThough the DataSet is universal, other objects in ADO.NET come in different versions fordifferent data sources.\r\n\r\n<hr \/>\r\n\r\n<strong>16) Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?\r\nAns:<\/strong>\u00a0This is where you can set the specific variables for the Application and Session objects.\r\n\r\n<hr \/>\r\n\r\n<strong>17) If I\u2019m developing an application that must accommodate multiple security levels though secure login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users?\r\nAns:\u00a0<\/strong>Maintain the login state security through a database.\r\n\r\n<hr \/>\r\n\r\n<strong>18) Can you explain what inheritance is and an example of when you might use it?\r\nAns:<\/strong>\u00a0When you want to inherit (use the functionality of) another class. Base Class Employee. A Manager class could be derived from the Employee base class.\r\n\r\n<hr \/>\r\n\r\n<strong>19) Whats an assembly?\r\nAns:<\/strong>\u00a0Assemblies are the building blocks of the .NET framework. Overview of assemblies from MSDN\r\n\r\n<hr \/>\r\n\r\n<strong>20) Describe the difference between inline and code behind.\r\nAns:<\/strong>\u00a0Inline code written along side the html in a page. Code-behind is code written in a separate file and referenced by the .aspx page.\r\n\r\n<hr \/>\r\n\r\n<strong>21) Explain what a diffgram is, and a good use for one?\r\nAns:<\/strong>\u00a0The DiffGram is one of the two XML formats that you can use to render DataSet object contents to XML. For reading database data to an XML file to be sent to a Web Service.\r\n\r\n<hr \/>\r\n\r\n<strong>22) Whats MSIL, and why should my developers need an appreciation of it if at all?\r\nAns:<\/strong>\u00a0MSIL is the Microsoft Intermediate Language. All .NET compatible languages will get converted to MSIL.\r\n\r\n<hr \/>\r\n\r\n<strong>23) Which method do you invoke on the DataAdapter control to load your generated dataset with data?\r\nAns:\u00a0<\/strong>The .Fill() method\r\n\r\n<hr \/>\r\n\r\n<strong>24) Can you edit data in the Repeater control?\r\nAns:<\/strong>\u00a0No, it just reads the information from its data source\r\n\r\n<hr \/>\r\n\r\n<strong>25) Which template must you provide, in order to display data in a Repeater control?<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>ItemTemplate\r\n\r\n<hr \/>\r\n\r\n<strong>26) How can you provide an alternating color scheme in a Repeater control?\r\nAns:\u00a0<\/strong>Use the AlternatingItemTemplate\r\n\r\n<hr \/>\r\n\r\n<strong>27) What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?\r\nAns:<\/strong>\u00a0You must set the DataSource property and call the DataBind method.\r\n\r\n<hr \/>\r\n\r\n<strong>28) What base class do all Web Forms inherit from?\r\nAns<\/strong>: The Page class.\r\n\r\n<hr \/>\r\n\r\n<strong>29) Name two properties common in every validation control?\r\nAns:\u00a0<\/strong>ControlToValidate property and Text property.\r\n\r\n<hr \/>\r\n\r\n<strong>30) What tags do you need to add within the asp:datagrid tags to bind columns manually?\r\nAns:\u00a0<\/strong>Set AutoGenerateColumns Property to false on the datagrid tag\r\n\r\n<hr \/>\r\n\r\n<strong>31) What tag do you use to add a hyperlink column to the DataGrid?\r\nAns:<\/strong>\u00a0Anchor tag is used to add a hyperlink column to the datagrid\r\n\r\n<hr \/>\r\n\r\n<strong>32) What is the transport protocol you use to call a Web service?\r\nAns:\u00a0<\/strong>SOAP is the preferred protocol.\r\n\r\n<hr \/>\r\n\r\n<strong>33) True or False: A Web service can only be written in .NET?\r\nAns:\u00a0<\/strong>False\r\n\r\n<hr \/>\r\n\r\n<strong>34) What does WSDL stand for?\r\nAns:<\/strong>\u00a0Web Services Description Language\r\n\r\n<hr \/>\r\n\r\n<strong>35) Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?\r\nAns:<\/strong>\u00a0DataTextField property\r\n\r\n<hr \/>\r\n\r\n<strong>36) Which control would you use if you needed to make sure the values in two different controls matched?\u00a0<\/strong>\r\n\r\n<strong>\u00a0Ans:<\/strong>\u00a0CompareValidator Control\r\n\r\n<hr \/>\r\n\r\n<strong>37) To test a Web service you must create a windows application or Web pplication to consume this service?\r\nAns:\u00a0<\/strong>False, the webservice comes with a test page and it provides HTTP-GET method to test.\r\n\r\n<hr \/>\r\n\r\n<strong>38) How many classes can a single .NET DLL contain?\r\nAns:<\/strong>\u00a0It can contain many classes.\r\n\r\n<hr \/>\r\n\r\n<strong>39) Describe the role of inetinfo.exe, aspnet_isapi.dll and aspnet_wp.exe in the page loading process.\r\nAns:<\/strong>\u00a0inetinfo.exe is the Microsoft IIS server running, handling ASP.NET requests. When an ASP.NET request is received (usually a file with .aspx extension),the ISAPI filter aspnet_isapi.dll takes care of it by passing the request to the actual worker process aspnet_wp.exe.\r\n\r\n<hr \/>\r\n\r\n<strong>40)\u00a0 What\u2019s the difference between Response.Write() and Response.Output.Write()?\r\nAns:<\/strong>\u00a0The latter one allows you to write formattedoutput.\r\n\r\n<hr \/>\r\n\r\n<strong>41) What methods are fired during the page load?\r\nAns:<\/strong>\u00a0Init() &#8211; when the page is instantiated, Load() &#8211; when the page is loaded into server memory,PreRender() &#8211; the brief moment before the page is displayed to the user asHTML, Unload() &#8211; when page finishes loading.\r\n\r\n<hr \/>\r\n\r\n<strong>42) Where does the Web page belong in the .NET Framework class hierarchy?\r\nAns:<\/strong>\u00a0System.Web.UI.Page\r\n\r\n<hr \/>\r\n\r\n<strong>43)\u00a0Where do you store the information about the user\u2019s locale?\r\nAns:<\/strong>\u00a0System.Web.UI.Page.Culture\r\n\r\n<hr \/>\r\n\r\n<strong>44)\u00a0 What\u2019s the difference between Codebehind=&#8221;MyCode.aspx.cs&#8221; and Src=&#8221;MyCode.aspx.cs&#8221;?\r\nAns:\u00a0<\/strong>CodeBehind is relevant to Visual Studio.NET only.\r\n\r\n<hr \/>\r\n\r\n<strong>45) What\u2019s a bubbled event?\r\nAns:<\/strong>\u00a0When you have a complex control, like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their eventhandlers, allowing the main DataGrid event handler to take care of its constituents.\r\n\r\n<hr \/>\r\n\r\n<strong>46) Suppose you want a certain ASP.NET function executed on MouseOver over a certain button. Where do you add an event handler?\r\nAns:<\/strong>\u00a0It\u2019s the Attributes property, The Add function inside that property.\r\n\r\nSo btnSubmit.Attributes.Add(&#8220;onMouseOver&#8221;,&#8221;someClientCode();&#8221;)\r\n\r\n<hr \/>\r\n\r\n<strong>47) What data type does the RangeValidator control support?\r\nAns:<\/strong>\u00a0Integer, String and Date.\r\n\r\n<hr \/>\r\n\r\n<strong>48) Explain the differences between Server-side and Client-side code?\r\nAns:<\/strong>\u00a0Server-side code runs on the server. Client-side code runs in the clients\u2019 browser.\r\n\r\n<hr \/>\r\n\r\n<strong>49)\u00a0What type of code (server or client) is found in a Code-Behind class?\r\nAns:<\/strong>\u00a0Server-side code.\r\n\r\n<hr \/>\r\n\r\n<strong>50) Should validation (did the user enter a real date) occur server-side or client-side? Why?\r\nAns:<\/strong>\u00a0Client-side. This reduces an additional request to the server to validate the users input.\r\n\r\n<hr \/>\r\n\r\n<strong>51) What does the &#8220;EnableViewState&#8221; property do? Why would I want it on or off?\r\nAns:<\/strong>\u00a0It enables the viewstate on the page. It allows the page to save the users input on a form.\r\n\r\n<hr \/>\r\n\r\n<strong>52)\u00a0 What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?\r\nAns:\u00a0<\/strong>Server.Transfer is used to post a form to another page. Response.Redirect is used to redirect the user to another page or site.\r\n\r\n<hr \/>\r\n\r\n<strong>53) Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?\r\nAns:<\/strong>\r\n\r\nA DataSet can represent an entire relational database in memory, complete with tables, relations, and views.\r\n\r\nA DataSet is designed to work without any continuing connection to the original data source.\r\n\r\nData in a DataSet is bulk-loaded, rather than being loaded on demand.\r\n\r\nThere&#8217;s no concept of cursor types in a DataSet.\r\n\r\nDataSets have no current record pointer You can use For Each loops to move through the data.\r\n\r\nYou can store many edits in a DataSet, and write them to the original data source in a single operation.\r\n\r\nThough the DataSet is universal, other objects in ADO.NET come in different versions for different data sources.\r\n\r\n<hr \/>\r\n\r\n<strong>54) Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?\r\nAns:<\/strong>\u00a0This is where you can set the specific variables for the Application and Session objects.\r\n\r\n<hr \/>\r\n\r\n<strong>55)\u00a0If I\u2019m developing an application that must accommodate multiple security levels though secure login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing) what would be the best approach to maintain login-in state for the users?\r\nAns:<\/strong>\u00a0Maintain the login state security through a database.\r\n\r\n<hr \/>\r\n\r\n<strong>56) Can you explain what inheritance is and an example of when you might use it?\r\nAns:<\/strong>\u00a0When you want to inherit (use the functionality of) another class. Base Class Employee\r\nA Manager class could be derived from the Employee base class.\r\n\r\n<hr \/>\r\n\r\n<strong>57)\u00a0 Whats an assembly?\r\nAns:<\/strong>\u00a0Assemblies are the building blocks of the .NET framework. Overview of assemblies from MSDN\r\n\r\n<hr \/>\r\n\r\n<strong>58) Describe the difference between inline and code behind.\r\nAns:<\/strong>\u00a0Inline code written along side the html in a page.\r\nCode-behind is code written in a separate file and referenced by the .aspx page.\r\n\r\n<hr \/>\r\n\r\n<strong>59) Explain what a diffgram is, and a good use for one?\r\nAns:<\/strong>The DiffGram is one of the two XML formats that you can use to render DataSet object contents to XML.\r\nFor reading database data to an XML file to be sent to a Web Service.\r\n\r\n<hr \/>\r\n\r\n<strong>60)\u00a0Whats MSIL, and why should my developers need an appreciation of it if at all?\r\nAns:<\/strong>\u00a0MSIL is the Microsoft Intermediate Language. All .NET compatible languages will get converted to MSIL.\r\n\r\n<hr \/>\r\n\r\n<strong>61) Which method do you invoke on the DataAdapter control to load your generated dataset with data?\r\nAns:<\/strong>\u00a0The .Fill() method\r\n\r\n<hr \/>\r\n\r\n<strong>62) Can you edit data in the Repeater control?\r\nAns:\u00a0<\/strong>No, it just reads the information from its data source\r\n\r\n<hr \/>\r\n\r\n<strong>63) Which template must you provide, in order to display data in a Repeater control?\r\nAns:\u00a0<\/strong>ItemTemplate\r\n\r\n<hr \/>\r\n\r\n<strong>64) How can you provide an alternating color scheme in a Repeater control?\r\nAns:\u00a0<\/strong>Use the AlternatingItemTemplate\r\n\r\n<hr \/>\r\n\r\n<strong>65) What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?\r\nAns:\u00a0<\/strong>You must set the DataSource property and call the DataBind method.\r\n\r\n<hr \/>\r\n\r\n<strong>66) What base class do all Web Forms inherit from?\r\nAns:\u00a0<\/strong>The Page class.\r\n\r\n<hr \/>\r\n\r\n<strong>\u00a067) Name two properties common in every validation control?\r\nAns:\u00a0<\/strong>ControlToValidate property and Text property.\r\n\r\n<hr \/>\r\n\r\n<strong>68) What tags do you need to add within the asp:datagrid tags to bind columns manually?\r\nAns:\u00a0<\/strong>Set AutoGenerateColumns Property to false on the datagrid tag\r\n\r\n<hr \/>\r\n\r\n<strong>69)\u00a0What is the transport protocol you use to call a Web service?\r\nAns:<\/strong>\u00a0SOAP is the preferred protocol.\r\n\r\n<hr \/>\r\n\r\n<strong>70) A Web service can only be written in .NET?\r\nAns:\u00a0<\/strong>False\r\n\r\n<hr \/>\r\n\r\n<strong>71)\u00a0Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?\r\nAns:\u00a0<\/strong>DataTextField property\r\n\r\n<hr \/>\r\n\r\n<strong>72) Which control would you use if you needed to make sure the values in two different controls matched?\r\nAns:\u00a0<\/strong>CompareValidator Control\r\n\r\n<hr \/>\r\n\r\n<strong>73) To test a Web service you must create a windows application or Web application to consume this service?\r\nAns:<\/strong>\u00a0False, the webservice comes with a test page and it provides HTTP-GET method to test.\r\n\r\n<hr \/>\r\n\r\n<strong>74) How many classes can a single .NET DLL contain?\r\nAns:<\/strong>\u00a0It can contain many classes.\r\n\r\n<hr \/>\r\n\r\n<strong>75) Briefly explain how code behind works and contrast that using the inline style.\r\nAns:<\/strong>\r\n\r\nMany of the web developers that are currently moving to ASP.NET were previously ASP developers, which made them used to developing their script code inline with the HTML.\r\nThis coding style of using inline code is still available within the ASP.NET framework, but a new coding style designed for large team development has also been introduced with ASP.NET this has been dubbed code-behind.\r\nThis coding style places all the code that is to be executed by the server into separate files for each .aspx page.\r\n\r\nThis allows web designers who specialize in the HTML development of a site, and application developers who specialize in the programming logic of the site to work together in a way that the page designer does not disturb the code in the page. This also allows a company who is interested in protecting it\u2019s investment or who are developing web applications for resale to distribute just the .aspx files and the compiled code-behind files as a .dll file for the site.\r\n\r\nThere are three ways of working with .aspx pages.\r\n1. Inline code that is compiled on the web server as it is needed.\r\n2. Code-behind files that are compiled into a .dll file and then removed from production.\r\n3. Code-behind files that are compiled on the web server as they are needed.\r\nWith these options in mind it becomes very important to consider how a developer will work with .aspx pages in ASP.NET.\r\n\r\n<hr \/>\r\n\r\n<strong>76)\u00a0\u00a0What is a DataReader?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0A DataReader is a read-only stream of data returned from the database as the query executes. It only contains one row of data in memory at a time and is restricted to navigating forward only in the results one record at a time. The DataReader does support access to multiple result sets, but only one at a time and in the order retrieved. Just as in the original version of ADO, the data is no longer available through the DataReader once the connection to the data source is closed, which means a DataReader requires a connection to the database throughout its usage. Output parameters or return values are only available through the DataReader once the connection is closed.\r\n<div><form>\r\n\r\n<hr \/>\r\n\r\n<strong>77) Briefly explain how the server control validation controls work.\r\nAns:\u00a0<\/strong>User Input Validation\r\nASP.NET provides a set of Web server controls called validation controls that provide sophisticated validation on both the client side and the server side depending on the validation settings and the browser&#8217;s capabilities.\r\n\r\nASP.NET ensures that validations are performed on the server side even if they were already performed on the client side. This ensures that validations are not bypassed if a malicious user circumvents client-side validation. If the client-side validation fails, the server-side validation is never performed.\r\n\r\nSome validator controls are:\r\n<ol>\r\n \t<li>Requiredfieldvalidator<\/li>\r\n \t<li>RangeValidator<\/li>\r\n \t<li>CompareValidator<\/li>\r\n \t<li>RegularExpressionValidator<\/li>\r\n \t<li>CustomValidator<\/li>\r\n \t<li>ValidationSummary<\/li>\r\n<\/ol>\r\nyou may want to mention about Page.Validate() Method and Page.IsValid Property.\r\n\r\n<hr \/>\r\n\r\n<strong>78)\u00a0Briefly explain what user controls are and what server controls are and the differences between the two.\r\nAns:<\/strong>\u00a0A user control could simply be an extension of the functionality of an existing server control(s) (such as an image control that can be rotated or a calendar control that stores the date in a text box). Or, it could consist of several elements that work and interact together to get a job done (such as several controls grouped together that gather information about a user&#8217;s previous work experience).\r\n\r\nAn ASP.NET control (sometimes called a server control) is a server-side component that is shipped with .NET Framework. A server control is a compiled DLL file and cannot be edited. It can, however, be manipulated through its public properties at design-time or runtime. It is possible to build a custom server control (sometimes called a custom control or composite control).\r\n<div>\r\n\r\nIn contrast, a user control will consist of previously built server controls (called constituent controls when used within a user control). It has an interface that can be completely edited and changed. It can be manipulated at design-time and runtime via properties that you are responsible for creating. While there will be a multitude of controls for every possible function built by third-party vendors for ASP.NET, they will exist in the form of compiled server controls, as mentioned above. Custom server controls may be the .NET answer to ActiveX Web controls.\r\n\r\n<hr \/>\r\n\r\n<strong>79) Briefly explain how server form post-back works (perhaps ask about view state as well).\r\nAns:\u00a0<\/strong>One of the most important features of the ASP.NET environment is the ability to declare controls that run on the server, and post back to the same page. Remember the days of classic ASP? We would create a form which would accept the user&#8217;s input, and then we would most probably have to create another page that would accept all those inputs, either through HTTP GET or POST, and perform some kind of validation, display and action. Sometimes, even a third page was necessary to perform our actions.\r\n\r\nThis wasted a lot of time and complicated things when you had to make a change. But of course, this is not necessary any more with ASP.NET. There is no need to create second pages that accept the inputs of the first, process them and so on. Form fields and other controls can be declared to run on the server, and the server simply posts the page back to itself and performs all the validation, display and actions.\r\n\r\nOur life as web developers has become a million times better. But how exactly is this done?\r\n\r\nWhen a control is declared to run on the server, a VIEWSTATE is created which remembers the ID of that control, and the method to call when an action is performed.submit event calls the javascript function _doPostBack (that&#8217;s 2 underscore symbols in front of it). You do not write this function, instead it is generated by the ASP.NET engine and automatically included in our page. It submits the form to the same page, and accepts 2 arguments:\r\n\r\neventTarget: the control doing the submission\r\neventArgument: any additional information for the event\r\n\r\nAt least one control needs to be set to Visible, for the server to generate the_doPostBack function in our page. Even if we have numerous web controls declared to run on the server, but they are all set to Visible=false, then the javascript function will not be included and we will not be able to perform any actions.\r\n\r\n<hr \/>\r\n\r\n<strong>80) Can the action attribute of a server-side tag be set to a value and if not how can you possibly pass data from a form page to a subsequent page. (Extra credit: Have you heard of comdna.\r\nAns:<\/strong>\u00a0.NET pages are set to postback to themselves by default and this cannot be changed. You must process your form data in the same page if you want to use .NET controls. It&#8217;s the way it works.\r\n\r\nWill not work. Your form action will be over-written to the current page no matter what you try. Unless of course you remove the runat=&#8221;server&#8221; which then means you are using forms under Classic ASP again and .NET features like validation controls will be ignored.\r\n\r\nIf you truly want to move to another page when you submit your form you can. However; you must process the form data from the page you are on first. Then redirect to the next page using Response.Redirect or Server.Transfer. If you care to pass the form values to the next page then you must do it in the query string.\r\n\r\n<hr \/>\r\n\r\n<strong>81)\u00a0 Briefly describe the role of global.asax.\r\nAns:\u00a0<\/strong>The Global.asax file, also known as the ASP.NET application file, is an optional file that contains code for responding to application-level events raised by ASP.NET or by HttpModules. The Global.asax file resides in the root directory of an ASP.NET-based application. At run time, Global.asax is parsed and compiled into a dynamically generated .\r\n\r\nNET Framework class derived from the HttpApplication base class. The Global.asax file itself is configured so that any direct URL request for it is automatically rejected; external users cannot download or view the code written within it. global.asax is responsible for handling higher-level application events such as Application_Start, Application_End, Session_Start, Session_End\r\n\r\n<hr \/>\r\n\r\n<strong>82) What is the correct language to code ASP.NET pages with?\r\nAns:<\/strong>\u00a0(The only correct answer would be C#. \ud83d\ude42 Maybe this should be the first question.\r\n\r\n<hr \/>\r\n\r\n<strong>83)\u00a0 What is the root namespace for all types?\r\nAns:\u00a0<\/strong>System.\r\n\r\n<hr \/>\r\n\r\n<strong>84) What is CLR ? Differentiate between CLR &amp; CTS.\r\nAns:\u00a0<\/strong>Common Language Runtime. The CLR is a set of standard resources responsible for execution of code developed using .NET language. .Net compiler generates intermediate language (IL) which is then compiled using JIT to m\/c code. It provides access to common functionalities to all languages via Base Class Libraries. CLR is replacement to win32 APICross-language integration, especially cross-language inheritance.\r\n\r\nAutomatic memory management (garbage collection), which manages object lifetime so that reference counting is unnecessary. Self-describing objects, which make using Interface Definition Language (IDL) unnecessary. The ability to compile once and run on any CPU and operating system that supports the runtime Common Language Specification.\r\n\r\nThis is a subset of the CTS which all .NET languages are expected to support. The idea is that any program which uses CLS-compliant types can interoperate with any .NET program written in any language. In theory this allows very tight interop between different .NET languages &#8211; for example allowing a C# class to inherit from a VB class.\r\n\r\n<hr \/>\r\n\r\n<strong>85) To which namespaces do Trace and Debug belong?\r\nAns:\u00a0<\/strong>Systems.Diagnostics\r\n\r\n<hr \/>\r\n\r\n<strong>86) To which namespaces does ColumnMapping belong?\r\nAns:\u00a0<\/strong>[System.Data namespace] [DataColumn class] ColumnMapping\r\n\r\n<hr \/>\r\n\r\n<strong>87)\u00a0DIfferentiate between Friend and Protected Friend.\r\nAns:<\/strong>\u00a0The five access types are Public, Protected, Friend, Protected Friend, and Private.\r\nEntities declared with the Public modifier have Public access. There are no restrictions on the use of Public entities.\r\nEntities declared with the Protected modifier have Protected access. Protected access can only be specified on members of classes (both regular type members and nested classes) or on Overridable members of standard modules and structures (which must, by definition, be inherited from System.Object or System.ValueType). A Protected member is accessible to a derived class, provided that either the member is not an instance member, or the access takes place through an instance of the derived class. Protected access is not a superset of Friend access.\r\nEntities declared with the Friend modifier have Friend access. An entity with Friend access is accessible only within the program that contains the entity declaration.\r\nEntities declared with the Protected Friend modifiers have the union of Protected and Friend access.\r\nEntities declared with the Private modifier have Private access. A Private entity is accessible only within its declaration context, including any nested entities.\r\n\r\n<hr \/>\r\n\r\n<strong>88) What is an abstract class?\r\nAns:<\/strong>\u00a0Abstract class is a class that has no direct instances, but whose descendants may have direct instances. There are case i which it is useful to define classes for which the programmer never intends to instantiate any objects; because such classes normally are used as bae-classes in inheritance hierarchies, we call such classes abstract classes These classes cannot be used to instantiate objects; because abstract classes are incomplete. Derived classes called concrete classesmust define the missing pieces.\r\n\r\n<strong>Note :\u00a0<\/strong>Virtual method has an implementation &amp; provide the derived class with the option of overriding it. Abstract method does not provide an implementation &amp; forces the derived class to override the method.\r\n\r\n<hr \/>\r\n\r\n<strong>89)\u00a0What is the difference between abstract class and an interface? What is shadowing ? Differentiate between Overriding and Overloading.\r\nAns:<\/strong>\u00a0Interfaces, like classes, define a set of properties, methods, and events. But unlike classes, interfaces do not provide implementation. An interface represents a contract, and a class that implements an interface must implement every aspect of that interface exactly as it is defined.\r\n\r\nIt is important to note here that an interface is very different from a base class. An interface is implemented, not extended.\r\n1. A class can implement multiple interfaces.\r\n2. An interface cannot contain data declarations but you can declare properties.\r\n3. All method declarations in an interface are public.\r\n4. There can be no implementation in an interface.\r\n5. The class implementing the interface must provide implementation code.\r\n6. An interface can be derived from another interface\r\n\r\nAn abstract class is a class that cannot be instantiated, but must be inherited from. An abstract class may be fully implemented, but is more usually partially implemented or not implemented at all, thereby encapsulating common functionality for inherited classes.\r\n\r\nWhen you have a class that contains methods that have no implementation (i.e. abstract methods), the class is said to be abstract as well. An abstract method is simply a shell or place-marker for a method that will be defined later in a derived class. The intention of abstract methods is to force every derivation of the class to implement those methods. If a derived class does not implement an abstract method, then that class must also be declared as abstract.\r\n\r\nShadowing is used when 2 programmers come up with same method in the same class one of the methods gets shadowed by scope or inheritance.\r\n\r\nOverriding &#8211; you override a virtual class.\r\nOverloading &#8211; you overload a method with different number of parameters or different type of parameters.\r\n\r\n<hr \/>\r\n\r\n<strong>90)\u00a0 Differentiate between Dataset and Recordset.\r\nAns:<\/strong>\u00a0Similar to the DataSet, a Recordset could be disconnected from its data store and therefore act as an in-memory cache of data. Of course, it could also be used in a connected model depending on the cursor options that were set. Although the Recordset object stored multiple versions of each column for each of its rows, it was not by nature able to represent multiple tables without the use of the Data Shape Provider. The Recordset was not XML-based and could not be serialized to XML easily or flexibly. Finally, a Recordset was not independent of a data store because it tracked a Connection object and through its methods could send queries to the data source to populate, update, and refresh its data. To that end, the Recordset contained functionality found in the ADO.NET DataSet, data reader, and data adapter objects.\r\n\r\n<hr \/>\r\n\r\n<strong>91) Why is Datareader considered useful?\r\nAns:<\/strong>\u00a0A DataReader is a read-only stream of data returned from the database as the query executes. It only contains one row of data in memory at a time and is restricted to navigating forward only in the results one record at a time. The DataReader does support access to multiple result sets, but only one at a time and in the order retrieved. Just as in the original version of ADO, the data is no longer available through the DataReader once the connection to the data source is closed, which means a DataReader requires a connection to the database throughout its usage. Output parameters or return values are only available through the DataReader once the connection is closed.\r\n\r\n<hr \/>\r\n\r\n<strong>92) What is DLL hell?\r\nAns:<\/strong>\u00a0Most of you have probably experienced DLL Hell, though you may not have heard of it described as such. If not, you&#8217;ve probably heard horror stories from friends or colleagues. The story goes something like this: An end-user or customer calls. Your program is behaving strangely, or no longer loads. Did another program install an older DLL, VBX or ActiveX file on their system? Or maybe a newer, but incompatible version? Is it a conflict due to an incompatible DLL already loaded in memory? Has the PATH environment setting changed? Is the file properly registered in the registry? Is a required file missing? You can literally spend hours trying to figure out what is wrong with a customer\u2019s machine, and why their applications will no longer run.\r\n\r\nEvery application was self-contained. A program would consist of a single executable (EXE) file. Complex applications might consist of several executables that were chained to each other. One thing, however, was certain &#8211; the executables that accompanied a particular application could be used only by that application. For most programs, you could distribute all of the files used by that program without being concerned that other products might interfere with yours.\r\n\r\nIn the past few years the size of application files has grown dramatically. The Windows operating environment took advantage of a capability called dynamic linking to allow code modules to be shared by applications. The most important demonstration of the use of this capability is Windows itself &#8211; the code modules that contain the functions that make Windows work (the Windows API), are shared by all Windows applications. A code module that can be shared in this way is called a dynamic link library and normally has the extension .DLL.\r\n\r\n<hr \/>\r\n\r\n<strong>93) What is versioning in .NET?\r\nAns:\u00a0<\/strong>Each assembly has a four-part version number as part of its identity. Including the version as part of the identity is essential to distinguish different versions of an assembly for the purposes of side-by-side.\r\n\r\nThis compatibility version number is physically represented as a 4-part number with the following format:\r\n\r\nMajorVersion.MinorVersion.BuildNumber.Revision.\r\nThe parts of the version number are major, minor, build and revision. There are no semantics applied to the parts of the version number. That is, the common language runtime does not infer compatibility or any other characteristic of an assembly based on how the version number is assigned (version 1.0.0.0 of some assembly and version 2.1.0.2 are completely different identities as far as the class loader is concerned).\r\n\r\nAs a developer you are free to change any portion of this number as you see fit. Even though there are no semantics applied to the format of the version number, individual organizations will likely find it useful to establish conventions around how the version number is changed.\r\n\r\nThis helps maintain consistency throughout an organization and makes it easier to determine things like which build a particular assembly came from. One typical convention is as follows:\r\n\r\nMajor or minor. Changes to the major or minor portion of the version number indicate an incompatible change. Under this convention then, version 2.0.0.0 would be considered incompatible with version 1.0.0.0. Examples of an incompatible change would be a change to the types of some method parameters or the removal of a type or method altogether.\r\n\r\nBuild. The Build number is typically used to distinguish between daily builds or smaller compatible releases.\r\n\r\nRevision. Changes to the revision number are typically reserved for an incremental build needed to fix a particular bug. You&#8217;ll sometimes hear this referred to as the &#8220;emergency bug fix&#8221; number in that the revision is what is often changed when a fix to a specific bug is shipped to a customer.\r\n\r\n<hr \/>\r\n\r\n<strong>94) What are the ASP.NET list controls and differentiate between them?\r\nAns:<\/strong>\u00a0In real-world web applications most of the time data is retrieved from the database source and displayed in tabular or list format. In theory we got to be spending most of our time solving application logic but in practice we spend most of the time in managing the state of the data between web pages and displaying the data. It looks like Microsoft has been listening to these problems ;asp.net provides new set of list controls like Repeater, DataList and DataGrid which will help the developers save lot of time in this area. All these controls are built with a specific purpose in mind. It\u2019s good to know the purpose of the controls so as to reap the maximum benefit from these controls.\r\n\r\nThese controls have the data binding property where you can retrieve data from the database and bind to the control and define how you want the data to look like and the rest of the work is done with great ease. Let us start looking closely and find what each one of these controls has to offer.\r\n\r\nRepeater control is one of the simplest among the controls. It basically iterates through the bound-data and displays it in a single list. All we got to do is just bind the data to the Repeater control and tell the control how we want the data to look like using controls Template. This is useful for;example to display list of employees, products, articles where there is no sorting, editing and paging of data is needed.\r\n\r\nDataList is one step a head of the repeater control, it can do all that repeater can do and has additional flexibility to control the layout of the list. For example this has features where you can mention the direction of the list like horizontal,vertical and also select, edit, update and cancel items by using there respective events. This control is very useful when you want to display list of products and also have some additional features like adding then to shopping cart or any other editable capability.\r\n\r\nDataGrid control is the most powerful and fascinating among the three controls.It displays data in a tabular from . By default, the DataGrid displays data in read-only mode, but the DataGrid is also capable of automatically displaying the data in editable controls at run-time. The DataGrid control can also create the Select, Edit, Update, and Cancel buttons. Additionally paging, sorting are inbuilt feature. This control can be used whenever we require displaying data in a grid format and requires a whole range of functionality like sorting and paging.\r\n\r\n<hr \/>\r\n\r\n<strong>95) Difference between Web User Control and Web Custom Control.\u00a0<\/strong>\r\n\r\n<strong>Ans:\u00a0<\/strong>If none of the existing ASP.NET server controls meet the specific requirements of your applications, you can create either a Web user control or a Web custom control that encapsulates the functionality you need. The main difference between the two controls lies in ease of creation vs. ease of use at design time.\r\n\r\nWeb user controls are easy to make, but they can be less convenient to use in advanced scenarios. You develop Web user controls almost exactly the same way that you develop Web Forms pages. Like Web Forms, user controls can be created in the visual designer, they can be written with code separated from the HTML, and they can handle execution events. However, because Web user controls are compiled dynamically at run time they cannot be added to the Toolbox, and they are represented by a simple placeholder glyph when added to a page.\r\n\r\nThis makes Web user controls harder to use if you are accustomed to full Visual Studio .NET design-time support, including the Properties window and Design view previews. Also, the only way to share the user control between applications is to put a separate copy in each application, which takes more maintenance if you make changes to the control.\r\n\r\nWeb custom controls are compiled code, which makes them easier to use but more difficult to create; Web custom controls must be authored in code. Once you have created the control, however, you can add it to the Toolbox and display it in a visual designer with full Properties window support and all the other design-time features of ASP.NET server controls. In addition, you can install a single copy of the Web custom control in the global assembly cache and share it between applications, which makes maintenance easier.\r\n\r\n<hr \/>\r\n\r\n<strong>96) What is an indexed property?\r\nAns:<\/strong>\u00a0So, the notion of properties is to define a way to access data that helps code readability while preserving encapsulation. Indexed Properties is a similar notion, however the \u201cfriendly\u201d field-like access of regular Properties is replaced with the familiar array-style indexing. Take the ToDo class example below:\r\n\r\nusing System;\r\nnamespace ExampleToDo {\r\npublic class ToDo {\r\nprivate string[] my_tasks;\r\npublic ToDo() {\r\nmy_tasks = new string[10];\r\n}\r\npublic string this[int index] {\r\nget\r\n{\r\nreturn my_task[index];\r\n}\r\nset\r\n{\r\nreturn my_task[index] = value;\r\n}\r\n}\r\n}\r\n}\r\n\r\nToDo is a simple class that basically wraps an array of type string. However, notice, the Indexed Property (or indexer) defines access to the array. Thus, you\u2019re providing array-like access to \u201cthis\u201d object, the class ToDo. The indexer returns a string and is implemented to index on values of type int. The beauty of indexers is that we could have defined the type we are indexing on to be something else, a string or perhaps a class we have written.\r\n\r\nwill be glad if any one can explain indexer property. I dont think I understood this clearly.\r\n\r\n<hr \/>\r\n\r\n<strong>97) Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process.\r\nAns:\u00a0<\/strong>\u00a0inetinfo.exe is theMicrosoft IIS server running, handling ASP.NET requests among other things.When an ASP.NET request is received (usually a file with .aspx extension),the ISAPI filter aspnet_isapi.dll takes care of it by passing the request tothe actual worker process aspnet_wp.exe.\r\n\r\n<hr \/>\r\n\r\n<strong>98) What\u2019s the difference between Response.Write() andResponse.Output.Write()?\r\nAns:<\/strong>\u00a0The latter one allows you to write formattedoutput\r\n\r\n<hr \/>\r\n\r\n<strong>99) What methods are fired during the page load?\r\nAns:<\/strong>\u00a0Init() &#8211; when the pageis instantiated, Load() &#8211; when the page is loaded into server memory,PreRender() &#8211; the brief moment before the page is displayed to the user asHTML, Unload() &#8211; when page finishes loading.\r\n\r\n<hr \/>\r\n\r\n<strong>100) Where does the Web page belong in the .NET Framework class hierarchy?\r\nAns:\u00a0<\/strong>System.Web.UI.Page\r\n\r\n<hr \/>\r\n\r\n<strong>101) Where do you store the information about the user\u2019s locale?\r\nAns:\u00a0<\/strong>System.Web.UI.Page.Culture\r\n\r\n<hr \/>\r\n\r\n<strong>102) how to click or select a row in gridview using c# code?<\/strong>\r\n\r\n<strong>Ans:<\/strong>\u00a0We should use the Currency CurrencyManager\r\n\r\ncmGrid = (CurrencyManager)this.BindingContext[gridview.DataSource, gridview.DataMember];cmGrid.Position = iIndex;\r\n\r\n<\/div>\r\n<\/form><\/div>\r\n[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section bb_built=&#8221;1&#8243; prev_background_color=&#8221;#000000&#8243;][et_pb_row][et_pb_column type=&#8221;4_4&#8243;][et_pb_team_member _builder_version=&#8221;3.0.106&#8243; name=&#8221;Naveen E&#8221; position=&#8221;Author&#8221; facebook_url=&#8221;&#8221; twitter_url=&#8221;&#8221; google_url=&#8221;&#8221; linkedin_url=&#8221;&#8221; image_url=&#8221;https:\/\/asha24.net\/blog\/\/wp-content\/uploads\/2018\/03\/1234.gif&#8221; background_layout=&#8221;light&#8221; header_font=&#8221;Titillium Web|700|||||||&#8221; body_font=&#8221;Titillium Web||||||||&#8221; body_font_size=&#8221;16&#8243; body_font_size_last_edited=&#8221;on|phone&#8221;]\r\n\r\nHola peeps! Meet an adventure maniac, seeking life in every moment, interacting and writing at Asha24.\r\n\r\n[\/et_pb_team_member][\/et_pb_column][\/et_pb_row][\/et_pb_section]\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":4,"featured_media":48209,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[57],"tags":[58],"class_list":["post-48208","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-interview-questions","tag-interview-questions"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>ASP.NET Interview Questions and Answers - Asha24 Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/asha24.net\/blog\/asp-net-interview-questions-and-answers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ASP.NET Interview Questions and Answers - Asha24 Blog\" \/>\n<meta property=\"og:url\" content=\"https:\/\/asha24.net\/blog\/asp-net-interview-questions-and-answers\/\" \/>\n<meta property=\"og:site_name\" content=\"Asha24 Blog\" \/>\n<meta property=\"article:published_time\" content=\"2018-02-02T03:29:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-03T08:35:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/aspnet-interview-questions-and-answers-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"688\" \/>\n\t<meta property=\"og:image:height\" content=\"459\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mahesh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"29 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/asha24.net\/blog\/#website\",\"url\":\"https:\/\/asha24.net\/blog\/\",\"name\":\"Asha24 Blog\",\"description\":\"Dedication Towards Learning\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/asha24.net\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/asha24.net\/blog\/asp-net-interview-questions-and-answers\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/aspnet-interview-questions-and-answers-1.jpg\",\"contentUrl\":\"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/aspnet-interview-questions-and-answers-1.jpg\",\"width\":688,\"height\":459},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/asha24.net\/blog\/asp-net-interview-questions-and-answers\/#webpage\",\"url\":\"https:\/\/asha24.net\/blog\/asp-net-interview-questions-and-answers\/\",\"name\":\"ASP.NET Interview Questions and Answers - Asha24 Blog\",\"isPartOf\":{\"@id\":\"https:\/\/asha24.net\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/asha24.net\/blog\/asp-net-interview-questions-and-answers\/#primaryimage\"},\"datePublished\":\"2018-02-02T03:29:50+00:00\",\"dateModified\":\"2023-02-03T08:35:13+00:00\",\"author\":{\"@id\":\"https:\/\/asha24.net\/blog\/#\/schema\/person\/f6167b78bbaddfc399ae1154cd5b6759\"},\"breadcrumb\":{\"@id\":\"https:\/\/asha24.net\/blog\/asp-net-interview-questions-and-answers\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/asha24.net\/blog\/asp-net-interview-questions-and-answers\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/asha24.net\/blog\/asp-net-interview-questions-and-answers\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/asha24.net\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ASP.NET Interview Questions and Answers\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/asha24.net\/blog\/#\/schema\/person\/f6167b78bbaddfc399ae1154cd5b6759\",\"name\":\"Mahesh\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/asha24.net\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/085c03e75ffb51af2509c1cfad9c7d78b30236d43a008db2e46f96e2f40c67fc?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/085c03e75ffb51af2509c1cfad9c7d78b30236d43a008db2e46f96e2f40c67fc?s=96&d=wavatar&r=g\",\"caption\":\"Mahesh\"},\"url\":\"https:\/\/asha24.net\/blog\/author\/mahesh\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ASP.NET Interview Questions and Answers - Asha24 Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/asha24.net\/blog\/asp-net-interview-questions-and-answers\/","og_locale":"en_US","og_type":"article","og_title":"ASP.NET Interview Questions and Answers - Asha24 Blog","og_url":"https:\/\/asha24.net\/blog\/asp-net-interview-questions-and-answers\/","og_site_name":"Asha24 Blog","article_published_time":"2018-02-02T03:29:50+00:00","article_modified_time":"2023-02-03T08:35:13+00:00","og_image":[{"width":688,"height":459,"url":"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/aspnet-interview-questions-and-answers-1.jpg","path":"\/home\/reviews981\/public_html\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/aspnet-interview-questions-and-answers-1.jpg","size":"full","id":48209,"alt":"","pixels":315792,"type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mahesh","Est. reading time":"29 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/asha24.net\/blog\/#website","url":"https:\/\/asha24.net\/blog\/","name":"Asha24 Blog","description":"Dedication Towards Learning","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/asha24.net\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/asha24.net\/blog\/asp-net-interview-questions-and-answers\/#primaryimage","inLanguage":"en-US","url":"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/aspnet-interview-questions-and-answers-1.jpg","contentUrl":"https:\/\/asha24.net\/blog\/wp-content\/uploads\/2018\/03\/aspnet-interview-questions-and-answers-1.jpg","width":688,"height":459},{"@type":"WebPage","@id":"https:\/\/asha24.net\/blog\/asp-net-interview-questions-and-answers\/#webpage","url":"https:\/\/asha24.net\/blog\/asp-net-interview-questions-and-answers\/","name":"ASP.NET Interview Questions and Answers - Asha24 Blog","isPartOf":{"@id":"https:\/\/asha24.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/asha24.net\/blog\/asp-net-interview-questions-and-answers\/#primaryimage"},"datePublished":"2018-02-02T03:29:50+00:00","dateModified":"2023-02-03T08:35:13+00:00","author":{"@id":"https:\/\/asha24.net\/blog\/#\/schema\/person\/f6167b78bbaddfc399ae1154cd5b6759"},"breadcrumb":{"@id":"https:\/\/asha24.net\/blog\/asp-net-interview-questions-and-answers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/asha24.net\/blog\/asp-net-interview-questions-and-answers\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/asha24.net\/blog\/asp-net-interview-questions-and-answers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/asha24.net\/blog\/"},{"@type":"ListItem","position":2,"name":"ASP.NET Interview Questions and Answers"}]},{"@type":"Person","@id":"https:\/\/asha24.net\/blog\/#\/schema\/person\/f6167b78bbaddfc399ae1154cd5b6759","name":"Mahesh","image":{"@type":"ImageObject","@id":"https:\/\/asha24.net\/blog\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/085c03e75ffb51af2509c1cfad9c7d78b30236d43a008db2e46f96e2f40c67fc?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/085c03e75ffb51af2509c1cfad9c7d78b30236d43a008db2e46f96e2f40c67fc?s=96&d=wavatar&r=g","caption":"Mahesh"},"url":"https:\/\/asha24.net\/blog\/author\/mahesh\/"}]}},"_links":{"self":[{"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/posts\/48208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/comments?post=48208"}],"version-history":[{"count":4,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/posts\/48208\/revisions"}],"predecessor-version":[{"id":52117,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/posts\/48208\/revisions\/52117"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/media\/48209"}],"wp:attachment":[{"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/media?parent=48208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/categories?post=48208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/asha24.net\/blog\/wp-json\/wp\/v2\/tags?post=48208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}