Monday, November 14, 2011
How to get current Windows Logon user if authentication mode in web.config is set to Forms in MVC?
Request.ServerVariables["LOGON_USER"]
References:
IIS 7.0 Two-Level Authentication with Forms Authentication and Windows Authentication
http://mvolo.com/blogs/serverside/archive/2008/02/11/IIS-7.0-Two_2D00_Level-Authentication-with-Forms-Authentication-and-Windows-Authentication.aspx
Mixing Forms and Windows Security in ASP.NET
http://msdn.microsoft.com/en-us/library/ms972958.aspx
Friday, November 11, 2011
How to use jQuery in Orchard CMS modules?
On the top of cshtml file put following code:
@{
Script.Require("jQuery");
}
@using(Script.Foot()) {
<script type ="text/javascript">
//<![CDATA[
$(document).ready(function () {
alert('page loaded');
});
//]]>
</script>
}
How to get selected value of dropdown by Javascript
var selectedvalue = document.getElementById('yourSelectBoxId').value
How to write a Widget for Orchard CMS? Coding, Packaging and installing
1. Coding:
http://orchardproject.net/docs/Writing-a-content-part.ashx
http://orchardproject.net/docs/Writing-a-widget.ashx
2. Packaging:
http://www.orchardproject.net/docs/Packaging-and-sharing-a-module.ashx
3. Installing:
http://www.orchardproject.net/docs/Installing-and-upgrading-modules.ashx
Thursday, November 10, 2011
Subscribe to:
Posts (Atom)