Here you will find some thoughts, some tips and some notes that help me to remember or that I think would be nice to share.
terça-feira, 31 de maio de 2016
iMIS - C# - Creating an user credential
Here is a piece of code to create an user credential and update the Asp_membership table.
objContact.CreateUserSecurity("username01", "123456");
objContact.UserSecurity.ExpiresOn = DateTime.Parse("01/01/2050");
objContact.UserSecurity.Save();
objContact.Save();
//Don't forge to update the aspnet_membership table. - Otherwise the forget password doesn't work.
MembershipUser objMembership = Membership.GetUser(sEmail);
objMembership.Email = sEmail;
Membership.UpdateUser(objMembership);
iMIS Template - Advice
I will put here all the stuff that I think is important to remember when you create a new iMIS Template and App_Theme.
Importing fonts on iMIS.
Create a CSS file just for fonts that will be loaded as the first css.
10 - Fonts.css
@import url(https://fonts.googleapis.com/css?family=Lato);
20 - Lodon_Responsive.css
If you don't do that, if you add the font in the master page, it won't load when you open a popup such as Register Someone.
sexta-feira, 13 de maio de 2016
iMIS - Error to Edit a Content Page
I was getting the error
Exception information:
Exception type: ArgumentOutOfRangeException
Exception message:
Parameter name: contentItemKey Actual value was 00000000-0000-0000-0000-000000000000. at Asi.Business.ContentManagement.ContentItemCollection.get_Item(Guid contentItemKey) at AsiCommon_Controls_ContentManagement_WebPartLayout.WebPartManager_WebPartMoved(Object sender, WebPartEventArgs e) at AsiCommon_Controls_ContentManagement_WebPartLayout.Page_Load(Object sender, EventArgs e)
This was because the Layout.
If you go to Rise >> Manage Layout
Check others layout and see if those are the same style that you have in your page.
In my case I had tables(td and tr) instead of divs. I put div and it works.
Assinar:
Postagens (Atom)