Skip to main content

Posts

Individual css for every li node

Dear All If you are looking for define individual node for every css here is a code  for first node li:first-child { background: #ff0000; } for last node li:last-child { background: #ff0000; } for nay number of node (change the 2 with the number of node you want to apply the style) li:nth-child(2) { background: #ff0000; } Regards Rashid Imran Bilgrami

How to convert and crack windows server 2012 from Evaluation to Full

Dear All This is a way how you Convert Evalution to Full Step1: Open CMD and run following command DISM /online /Get-CurrentEdition <edition ID> is like ServerStandard with out Eval Step 2: DISM /online /Set-Edition:<edition ID> /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula WINDOWS SERVER 2012 Serial Key Windows Server 2012 DataCenter: 48HP8-DN98B-MYWDG-T2DCC-8W83P Datacenter: Y4TGP-NPTV9-HTC2H-7MGQ3-DV4TW Standard: XC9B7-NBPP2-83J2H-RHMBY-92BT4 Standard R2: DBGBW-NPF86-BJVTX-K3WKJ-MTB6V Server Essentials: K2XGM-NMBT3-2R6Q8-WF2FK-P36R2 For Standard R2 here is a command For R2 its like that DISM /online /Set-Edition:ServerStandard /ProductKey:DBGBW-NPF86-BJVTX-K3WKJ-MTB6V /AcceptEula Regards

Enable Multiple Remote Desktop Session in windows 2012

Dear All, Here is the way you can enable Multiple Remote Desktop Sesison Enable Multiple RDP Sessions Log into the server using Remote Desktop. Open the start screen (press the Windows key) and type gpedit.msc and open it Go to Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connections. Set Restrict Remote Desktop Services user to a single Remote Desktop Services session to Disabled. Double click Limit number of connections and set the RD Maximum Connections allowed to 999999.

Adminlte Tabs reset on DNN post back

Dear All, I worked with Admin Lte tabs and i found when the form has submitted than the respective fist tab will be selected always. As a result the user focus will be out. here is a solution for it Add the following code in ascx control file <script type="text/javascript">     $(function () {         var tabName = $("[id*=TabName]").val() != "" ? $("[id*=TabName]").val() : "tab_1";         $('#Tabs a[href="#' + tabName + '"]').tab('show');         $("#Tabs a").click(function () {             $("[id*=TabName]").val($(this).attr("href").replace("#", ""));         });     }); </script> <asp:HiddenField ID="TabName" runat="server" /> Following code will be added on the code behind TabName.Value = Request.Form[TabName.UniqueID]; I hope it resolve your issue as well Regards Rashid Imran Bilgrami ...

Force Visual Studio to always run as an Administrator in Windows 8

Dear All It's a small issues for developer but a headache for every time during development once vs stop and ask for restart with different user credential here is a solution for it  Please follow the below step to make your VS run with administrator In Windows 8, you have to right-click devenv.exe and select "Troubleshoot compatibility". select "Troubleshoot program" check "The program requires additional permissions" click "Next", click "Test the program..." wait for the program to launch click "Next" select "Yes, save these settings for this program" click "Close" I hope it resolve your problem  Regards Rashid Imran Bilgrami 

SQL DB Stuck during Take Offline

Dear All, If your database Take offline process has stuck then don't worry just follow the below steps and you will make your database offline: Steps 1) Run the following command EXEC sp_who2 2) List down the SPID # run again your database column (DBNAME) 3) kill the process... 4) Once you kill all the processes then run the following command ALTER DATABASE [myDB] SET OFFLINE WITH ROLLBACK IMMEDIATE After that your datbase goes offline, now  you will make a copy for it There is another process if you have many process runing to gather you can use below query DECLARE @DatabaseName nvarchar(50) SET @DatabaseName = N'Write your database name' DECLARE @SQL varchar(max) SET @SQL = '' SELECT @SQL = @SQL + 'Kill ' + Convert(varchar, SPId) + ';' FROM MASTER..SysProcesses WHERE DBId = DB_ID(@DatabaseName) AND SPId <> @@SPId EXEC(@SQL) ALTER DATABASE [Write your database name] SET OFFLINE WITH ROLLBACK IMMEDIATE GO Regard...

Encrypt Web.config in DNN or ASP.net web application

Granting Read Access to an RSA Encryption Key Step 1: Go to the appropriate framework directory for the ASP.NET files:cd C:\Windows\Microsoft.NET\Framework64\v4.0.30319 Step 2: From here we can grant read access to an RSA encryption key by running this command:.\aspnet_regiis.exe -pa "NetFrameworkConfigurationKey" "IIS APPPOOL\MySite" How to Identify the APP  Pool "IIS APPPOOL\MySite" is the identity that my App Pool runs under. If you don't know what yours is, create an .aspx file in your website with the following content: <%@ Page Language="C#" %>  <% Response.Write(System.Security.Principal.WindowsIdentity.GetCurrent().Name); %> Encrypting Sections of the Web.config File At this point, we are ready to run the command that will actually encrypt the web.config.  MAKE SURE THAT YOU HAVE A BACKUP OF ALL THE DATA STORED IN THE SECTION YOU ARE ABOUT THE ENCRYPT. .\aspnet_regiis.exe -pe "connectionStr...