The "Remember Me" feature of the DotNetNuke Login is implemented by placing an encrypted authentication cookie on the user's machine.
The expiration of this cookie is controlled through the timeout value in the Forms Autentication node the web.config.
< forms name=".DOTNETNUKE" protection="All" timeout="60" cookieless="UseCookies" />
The default setting is 60 minutes, so it can't remember anyone for very long (I call it goldfish mode).
To extend the time your users are remembered make the timeout value larger.
Friday, January 30, 2009
Tuesday, January 13, 2009
display:inline-block for Firefox, Internet Explorer and Opera
For correct displaying of the elements with display:inline-block property in Firefox Internet Explorer, Opera you have to write this in style sheet:
display:-moz-inline-stack;/*Firefox need this to simulate display:inline-block*/
display:inline-block; /*IE does not apply this to Block Element, and Firefox does not render this, too*/
_overflow:hidden;/*fix IE6 to expanded content*/
zoom:1;/*trigger hasLayout*/
*display:inline;/*once hasLayout is true, set display:inline to block element will make display:inline behave like display:inline-block*
Tuesday, January 6, 2009
How to reduce the size of the database in Microsoft SQL Server
On hosting server often exists database quota for MS SQL Server. Even if your database contains small amount of data, but there is goes intensive adding/modifacation of the data, in some point the size of the data could exceed quota and your account may be suspended.
This happens because of growth of the transaction log.
To clear transaction log you can execute the following command:
This happens because of growth of the transaction log.
To clear transaction log you can execute the following command:
Ярлыки:
BACKUP LOG,
database,
Server,
size,
SQL,
transaction log,
TRUNCATE_ONLY
Wednesday, December 24, 2008
How to change string "You are here" in Dotnetnuke web site to other language
How to change string "You are here" in Dotnetnuke's web site to other language?
If you want to translate it, you need access to you DNN installation via file system. Look for the Skin folder (/Portals/_defauls/Skins/MinimalExtrophy) and inside there is a folder /App_localResources with a single file "index.ascx.resx" you need to copy to index.ascx.sv-SV.resx and edit using a text editor. you will find "you are here" near the end of the file and may overwrite it with your localization.
This works to DNN version 4.9 and above. How it works you may see here
If you want to translate it, you need access to you DNN installation via file system. Look for the Skin folder (/Portals/_defauls/Skins/MinimalExtrophy) and inside there is a folder /App_localResources with a single file "index.ascx.resx" you need to copy to index.ascx.sv-SV.resx and edit using a text editor. you will find "you are here" near the end of the file and may overwrite it with your localization.
This works to DNN version 4.9 and above. How it works you may see here
Wednesday, October 29, 2008
Нow to dynamically change query for ListView linked to LinqDataSource?
In order to dynamically change query for ListView linked to LinqDataSource you have to handle OnSelecting event for LinqDataSource. .
For example:
How does it works you can see here: 11-A
For example:
protected void dsMates_Selecting(object sender, LinqDataSourceSelectEventArgs e)
{
if (Request.Params["classMateId"] != null)
{
int mateId;
if (int.TryParse(Request.Params["classMateId"], out mateId))
{
using (DataClassesPrivateMsgDataContext db = new DataClassesPrivateMsgDataContext())
{
e.Result = db.Classmates.Where(mate => mate.Id == mateId).FirstOrDefault();
}
}
}
}
How does it works you can see here: 11-A
Ярлыки:
.NET framework 3.5,
ASP.NET,
C#,
code,
LinqDataSource,
ListView,
OnSelecting,
Query
Wednesday, October 22, 2008
Code formatter for C#, JavaScript, HTML, ASP.NET for your blog
When posting posts to my blog often need to insert some code saples into the text. It's good to show well formatted code for readers.
If found good free online tool for my purposes:
www.manoli.net/csharpformat/format.aspx
This tool allows you to format your C#, VB, HTML, XML, T-SQL or MSH (code name Monad) code for publishing on a web site or in a blog.
All welcome!
If found good free online tool for my purposes:
www.manoli.net/csharpformat/format.aspx
This tool allows you to format your C#, VB, HTML, XML, T-SQL or MSH (code name Monad) code for publishing on a web site or in a blog.
All welcome!
Ярлыки:
blog,
blogging,
C#,
code,
formatter,
HTML,
javaScript,
programming
Friday, October 17, 2008
Animated gif files for AJAX loader
When you develop AJAX-based website you probably want beautiful animated gif image(s) to show to the user an AJAX activity (when user have to wait while AJAX is getting some data from server). So I found very useful website "ajaxload.info" where you can generate different "AJAX-loading" animated gif images. There is many templates. You can change colors, size, opacity for gif's.
If you using "Opera" than you can install wiget named "Animated loading image generator!" and generate gif's not quit your favourite website "калькулятор автокредита"
If you using "Opera" than you can install wiget named "Animated loading image generator!" and generate gif's not quit your favourite website "калькулятор автокредита"
Wednesday, October 8, 2008
Dotnetnuke site constantly to recreate the domain application: "The AppDomain shut down because of the hosting environment."
I've made a site using CMS DotNetNuke. On my developing machine it worked very good. After placing It into the hosting I've noticed that pages, especially the first opened very slowly. I looked into site's Event Viewer and see that the application domain recreated several times a minute. There are consistent records:
Application Shutting Down. Shutdown Details: The AppDomain shut down because of the hosting environment.
Application Started.
Operation of Re-creation of domain application is not fast, and it leads to lower the productivity of the website (slowly loading of pages).
Application Shutting Down. Shutdown Details: The AppDomain shut down because of the hosting environment.
Application Started.
Operation of Re-creation of domain application is not fast, and it leads to lower the productivity of the website (slowly loading of pages).
Ярлыки:
AppDomain,
application,
ASP.NET,
CMS,
DNN,
dotnetnuke,
error,
hosting,
issue,
recreation,
session,
web
Subscribe to:
Posts (Atom)