<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
7 Reasons you should learn Python now
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++. Sure, it’s old, but it’s 1980s old, not Cobol or Fortran old. Besides, if something works, why change it, especially when there are a so many ways to improve it. Actually, depending on how you view it, longevity is a good thing in itself—a sign of stability and reliability. If you’re like many people who first started out with Java, C, or Perl, the learning curve for Python is practically nonexistent. But the fact that it’s easy to learn is also the reason why some people don’t see Python as a necessary programming skill. I’ll be honest with you, my love of Python didn’t really develop until a few years ago. It took a long career of painful lessons to appreciate everything this language and platform have to offer. My goal with this short post is to save you the same pain, and convince you why...
Top 25 Data Science Interview Questions and Answers
1) How would you create a taxonomy to identify key customer trends in unstructured data? The best way to approach this question is to mention that it is good to check with the business owner and understand their objectives before categorizing the data. Having done this, it is always good to follow an iterative approach by pulling new data samples and improving the model accordingly by validating it for accuracy by soliciting feedback from the stakeholders of the business. This helps ensure that your model is producing actionable results and improving over the time. 2) Python or R – Which one would you prefer for text analytics? The best possible answer for this would be Python because it has Pandas library that provides easy to use data structures and high performance data analysis tools. 3) Which technique is used to predict categorical responses? Classification technique is used widely in mining for classifying data sets. 4) What is logistic regression? Or St...
Android Training in Bangalore
Java Concepts Oops Concepts Inheritance In Detail Exception Handling Packages & Interfaces Jvm & .Jar File Extension Multi Threading (Thread Class & Rentable Interface) Sql Dml and Ddl Queries In Brief Introduction To Android What Is Android? Setting Up Development Environment Dalvik Virtual Machine & .Apk File Extension Fundamentals: A. Basic Building Blocks - Activities,Services,Broadcast Receivers & Content Providers B. Ui Components - Views & Notifications C. Components For Communication -Intents & Intent Filters Android Api Levels (Versions & Version Names) >>read more >>
Comments
Post a Comment