Skip to main content

Posts

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...

How to get DNN user profile pic in your custom Module

How to get your user profile pic in DNN module here is the code  protected void Page_Load(object sender, EventArgs e)         {                       PortalModuleBase myportalInfo = new PortalModuleBase();             Literal1.Text = myportalInfo.UserInfo.Profile.PhotoURL;                   } I hope it helps you and save your time Regards Rashid Imran Bilgrami http://www.bestvisualization.com

DNN:Text return Nothing or Skin Token is not working with DNN:Text

Dear All,  Today i found a  problem when i render the DNN skin object with DNN:Text then it will return nothing, i register the object <%@ Register TagPrefix="dnn" TagName="TEXT" Src="~/Admin/Skins/Text.ascx" %> then i place the DNN text object with token <dnn:TEXT runat="server" id="TEXT1" Text="[Tab:TabName]" CssClass="NormalBold" ReplaceTokens="True" /> but there is no luck then i found when the ascx.cs file and checked out the code in detail and i found the variable that use in the cs file is ShowText instead of Text.  Here if you did not get the return value from dnn:Text in dnn 7.3 version then use the following skin object  <dnn:Text runat="server" id="CheckingOne2" ShowText="[User:FullName]" ReplaceTokens="True"/> Note in above like there is ShowText instead of Text  I hope it save your time because it already eat my ...

Javascript not working with support partially or partial post back in DNN

Dear All, Today i found a solution finally to rebind the Javascript issue with support partially run with DNN Here is the key <script type="text/javascript">     function BindControlEvents() {         //jQuery is wrapped in BindEvents function so it can be re-bound after each callback.         //Your code would replace the following line:             $('#<%= TextProtocolDrugInstructions.ClientID %>').limit('100', '#charsLeft_Instructions');               }     //Initial bind     $(document).ready(function () {         BindControlEvents();     });     //Re-bind for callbacks (This is a key)     var prm = Sys.WebForms.PageRequestManager.getInstance();     prm.add_endRequest(function() {         BindControlEvents();     }); </scrip...

DNN 7 Localization Video or Tutorial. How to enable DNN localization in DNN7

Dear All,  Here is the video for the DNN 6+ Localization Regards Rashid Imran Bilgrami http://www.bestvisualization.com

Automatically change input mode in to Arabic

Dear All, Today i found a good solution if you have a form and you want to automatically change the input mode in to arabic then here is a sample code: Copy the following script <script type="text/javascript"> //<![CDATA[ function TextLanguageAr(e, input) { var unicode = e.which;         switch (unicode) {             case 192: input.value += 'ذ';   return false; break;                case 81: input.value += 'ض';   return false; break;                case 87: input.value += 'ص';   return false; break;                   case 69: input.value += 'Ø«';   return false; break;                   case 82: input.value += 'Ù‚';   return false; break;                   case 84: if (Shift_Key...