Skip to main content

Posts

Interview Questions of SPFx SharePoint

What is SPFx? The SharePoint Framework (SPFx) is a web part model that provides full support for client-side SharePoint development, it is easy to integrate with SharePoint data, and extend Microsoft Teams. With the SharePoint Framework, you can use modern web technologies and tools in your preferred development environment to build productive experiences and apps that are responsive and mobile-ready. Scenario Based asking Scenario 1: Scenario: Your team is developing a SharePoint Framework (SPFx) web part that needs to retrieve data from an external API and display it on a SharePoint site. The API requires authentication using OAuth 2.0. The web part should also allow users to refresh the data manually. Question 1: How would you approach implementing this functionality in an SPFx web

Non-Generic Collection and Generic Collection in.NET

What is Collection in.NET Microsoft .NET provides lots of collection data types that can store a set of records or values. there are two types of collections introduced by Microsoft in C#.NET, those are generic collections and non-generic collections. Generic collections are type-safe at compile time. so that it provides much better performance as compared to the non-generic collection. It supports a type parameter when they are constructed and do not require to do boxing-unboxing or type-conversation from the Object type when you add or remove items from the collection. Non-generic collections store items as Objects require casting, and most are not supported for Windows Store app development. However, you may see non-generic collections in older codes. by most developers, it is recommended to use the generic collection, because it is faster and safer also, there is less chance of exception and compile-time error with it. to use a non-generic collection in your code need to use the na

Types of Exceptions in .NET

The exception is the process that occurred during the run time in the software application, it happens when the developer does not manage the code in the right way or something is not handled properly. an exception is certain types and breaks the application. In this blog, I will show a few types of exceptions, which we face in everyday development, in this blog my focus in.Net C#, as per the language the name may be vary based on the syntax but the type of exception should have the same for all languages Exceptions Overview Exceptions have the following properties: to use include exception need to import  System.Exception . always use  try  block around the statements. Once the exception occurs, try  block, the flow of control jumps to the associated exception handler. In C#, the  catch  keyword is used to define an exception handler. If an exception handler is not defined for an exception in the program, it stops executing with an error message. if you do not write any catch handler

Step-by-step guide to setup SPFx Environment in SharePoint Online

Introduction SharePoint is a framework, which is the same as other web framework and used to implement Web Applications, but the major changes are the only organization are using it for internal purposes or we can say uses for Intranet perspective for internal staffs to share the documents, collaboration and other activity if you are a beginner and learn SharePoint online and its latest framework SPFx then you are in the right place. in this blog, we will learn how we can set up. Steps to set up, the SharePoint Framework is easy as cooking Pen Cake, need to run few commands on Nodejs command prompt and you are ready to build the Web part NodeJS Node.js is an open-source, cross-platform, back-end JavaScript runtime environment that runs on the V8 engine and executes JavaScript code outside a web browser, for the environment setup we can install the node js version of  10.16.1  by clicking on this link  Node JS  once the setup is installed, now, go to the start menu and click node js com