Skip to main content

Posts

Windows 10: PowerShell to Assign Drive Letters

If a drive is missing on your device, it could be a letter assignment issue. Follow the steps below to using PowerShell to quickly assign a new letter. Step 1 Search for Windows PowerShell in the start menu, right-click the result, and select Run as administrator. Step 2 Run the following command to get the disk information Get-Disk Step 3 Run the following command to get the partition information Get-Partition -DiskNumber 1 Step 4 Run the following command to assign the drive letter Get-Partition -DiskNumber 1 -PartitionNumber 2 | Set-Partition -NewDriveLetter Z In the above command, replace the following; 1 with the Drive Number you want to assign letters 2 with the Partition Number you want to assign letter Z with the Drive Letter you want to assign Once you’ve completed the steps, the hard drive will now appear in File Explorer.

SharePoint Online: PowerShell to Change Page Layout

Single part app pages provide the capability to host SharePoint Framework web parts or Teams applications in SharePoint Online with a locked layout.  Pros: Single Part App Pages cannot be edited by end-users using a browser It will take the entire width & Header banner area Cons: Currently supports hosting only a single web part or Microsoft Teams application Developers can change page layout programmatically from normal page layout to a Single Page App Page To deploy the Single Web Part App Page in your tenant follow the next steps: Install PowerShell Gallery Open PowerShell as Administrator & run the following command Update Page Template Change the "About-Us.aspx" to the name of the page you want to update Before After Happy Coding...

Dynamically create Bar Chart using Chart.js in Asp.net

This article explains about Bar Chart. We are going to create a simple Bar Chart using char.js library in jQuery. Bar Chart can be used to show data or compare multiple data sets. Chart.js : A Simple chart library for developers developed by Nick Downie . It uses HTML5 canvas element and supports all the browsers.  Code Snippet Code Behind Finally, we are done with coding. You can bind a real dataset from the code behind and see the output Happy Coding :)