<a href="https://www.mytectra.com/interview-question/human-resourse-hr-interview-questions/">Human Resource (HR) Interview Questions</a> <a href="https://www.mytectra.com/interview-question/selenium-interview-questions-and-answers/">Selenium Interview Questions and Answers</a> <a href="https://www.mytectra.com/interview-question/javascript-interview-questions/">Javascript Interview Questions</a>
ASP.NET Interview Questions and Answers For Experienced
- Get link
- X
- Other Apps
Q1. What is ASP.NET?
ASP.NET was evolved in direct acknowledgment to the problems that developers had with standard ASP. Since ASP is in such wide use, Microsoft guaranteed that ASP scripts execute without modification on a machine with the .NET Framework (the ASP engine, ASP.DLL, is not modified when installing the .NET Framework). Thus, IIS can house both ASP and ASP.NET scripts on the same machine.
Q2. What is XHTML? Are ASP.NET Pages compliant with XHTML?
In plain words, XHTML is a stricter and cleaner version of HTML. XHTML stands for EXtensible Hypertext Markup Language and is a W3C Recommendation.
Yes, ASP.NET 2.0 Pages are XHTML compliant. However the facility has been given to the user to add the applicable document type declaration.
Q3. Does ViewState affect performance? What is the ideal size of a ViewState? How can you compress a viewstate?
Viewstate stores the state of controls in HTML hidden fields. At times, this information can grow in capacity. This does affect the comprehensive responsiveness of the page, thereby affecting performance. The optimal size of a viewstate should be not more than 25-30% of the page size.
ViewState can be compressed to almost 50% of its size. .NET also provides the GZipStream orDeflateStream to compress viewstate
Q4. How can you detect if a viewstate has been tampered?
By setting the EnableViewStateMac to true in the @Page directive. This attribute checks the encoded and encrypted viewstate for tampering.
Q5. Can the App_Code folder contain source code files in different programming languages?
No. All source code files stored in the root App_Code folder must be in the same programming language. However, you can create two subfolders inside the App_Code and then add both C# and VB.NET in the respective subfolders. You also have to add configuration settings in the web.config for this to work.
Q6. Can I deploy the application without deploying the source code on the server?
Yes. You can complicate your code by using a new precompilation process called ‘precompilation for deployment’. You can use the aspnet_compiler.exe to precompile a site. This process builds each page in your web application into a single application DLL and some placeholder files. These files can then be deployed to the server.
You can also conclude the same task using Visual Studio 2005 by using the Build->Publish menu.
Q7. Can I use different programming languages in the same application?
Yes. Each page can be written with a different programming language in the same application. You can create a few pages in C# and a few in VB.NET.
- Get link
- X
- Other Apps
Popular posts from this blog
What is the Best way to learn Python in 2017?
W hat is the best way to learn Python? This is the question many people ask me when they meet us to discuss on Python courses offered by myTectra . Python is a general-purpose interpreted, interactive, object-oriented and high-level programming language. Currently Python is the most popular Language in IT. Python adopted as a language of choice for almost all the domain in IT including Web Development, Cloud Computing (AWS, OpenStack, VMware, Google Cloud, etc.. ), Infrastructure Automation , Software Testing, Mobile Testing, Big Data and Hadoop, Data Science, etc. It’s no secret that Python is one of the most commonly used programming languages.For the past five years, Python has held the number one position as the“most popularcoding language.” Python is a favorite among many developers for its strong emphasis on readability and efficiency,especially when compared to other languages like Java, PHP, or C++. If you’re like many people who fir...
6 Reasons to learn AngularJS
Angular 2 was released in late 2016 and brought Angular into the modern web with its desktop and mobile applications. If you build Web applications, chances are you’ve heard of Angular, the popular JavaScript framework for building full-featured, client-side, browser-based applications. The recent release of Angular 2 (September 2016) brought Angular into the modern Web and expanded its reach into mobile and desktop applications. So what’s all of the Angular 2 excitement about? How is it different from every other JavaScript framework out there? Is it worth learning? What’s there to love? Here are six reasons to love Angular 2. 1. Enhanced developer productivity with Angular 2 The Web has changed significantly during these past five years. With ECMAScript (ES) 2015, we have modules, classes and arrow functions. Angular 2 leverages these features to make its coding patterns more consistent and easier to learn. Add to that Typescript, a language t...
<a href="https://www.mytectra.com/interview-question/human-resourse-hr-interview-questions/">Human Resource (HR) Interview Questions</a> <a href="https://www.mytectra.com/interview-question/selenium-interview-questions-and-answers/">Selenium Interview Questions and Answers</a> <a href="https://www.mytectra.com/interview-question/javascript-interview-questions/">Javascript Interview Questions</a>
Comments
Post a Comment