To reset the admin password of a Umbraco website. 1. In Sql server, run the following script on the database: USE INSERT-YOUR-DATABASE-NAME-HERE GO UPDATE umbracoUser set userdisabled=0, userLogin='admin', userPassword='default' where id=0 2. In your web config file, find the "UsersMemnershipProvider" section, change the setting: passwordFormat="Hashed" to passwordFormat="Clear" You should now be able to login using the Username: Admin and the Password: default ("the two sweetest words in the english language").
This is a Simple Contact From done in C# .Net and also can be used in Umbraco. Paste the code in to Visual Web Developer for a better view. The important bits are coment in the second file. One of the Commented out lines highlights how to get the mailto address from an Umbraco field. The code Below includes the myContactForm.ascx.cs codebehind file and the myContactForm.ascx file. 1) The myContactForm.ascx file: <%@ Control Language="C#" AutoEventWireup="true" CodeFile="ContactFormforPublications.ascx.cs" Inherits="usercontrols_ContactFormPublications" %> <div class="contact-form" id="contactForm" runat="server"> <h3>Request a Publication</h3> <div class='int'> <form runat="server"> <asp:Panel DefaultButton="contactFormSubmit" runat="server"> ...
Umbraco - C# - How to Redirect a Umbraco Page to an external web site. Two create a redirect from a Umbraco page to an exteral site you need to: (this is very simple) Step 1) Add the page to Umbraco that you want to rediect. (You may want to Hide this page from navigation) Step 2) Create a new Web Form in C# Visual Studio (this web form will be placed in the route of the site) Step 3) Update the Web Config to include the new file mentioned in step 2 (or you will get a Server error in appliaction) Step 4) Add a Url redirect to the UrlRewriting.config, from the Umbraco page (created in step 1), to the web form (created in step 2). Step 2: Here is the C# Code (my-redirect-example.aspx) form for step 2: (it is basically a blank form) <%@ Page Language="C#" AutoEventWireup="true" CodeFile="my-redirect-example.aspx.cs" Inherits="my_redirect_example" %> <!DOCTYPE html PUBLIC "-//W3C//DTD X...
Comments
Post a Comment