Add User Control to Grid

Create the User Control in Visual Studio.  In my example it was a simple DropDownList that had AutoPostBack set to True and redirected to another page on postback with a value from the grid. Register the control on the HTML page just after the Begin Panel Head. <%@ register tagprefix=”uc1″ tagname=”MyUserControl” src=”/dnn/Portals/9/my_user_control.ascx” %> Add the
Read More »

Artisteer Menu Format

Craig, Not sure if you already got this, but be careful of the menu builder. Below if how I got it done after contacting support. Underlying tone was I needed to read the directions better because this was in the directions and a departure from previous CCS technique…. You need to make an includable page
Read More »

Retrieve Value of Recordset Field

Per Yes Software support… To retrieve the value of a recordset field, or a field that is part of the datasource query but not assigned to a control in your grid or record. Grid BeforeShowRow:DirectCast(sender, InMotion.Web.Controls.Grid).DataItem("event_id").ToString() Record BeforeShow:DirectCast(sender,InMotion.Web.Controls.Record).DataItem("event_id").ToString() Grid, Record AfterExecuteSelect:DirectCast(e.OperationResult,System.Data.DataView).Table.Rows(0)("event_id").ToString()

Force Page Break after Footer

<!-- BEGIN Section SessionBreak_Footer -->        <tr style="PAGE-BREAK-AFTER: always" class="SubTotal">          <td>&nbsp;</td>          <td colspan="4">Sub Total&nbsp;{Count_ClientLastFirst1}</td>          <td style="TEXT-ALIGN: right" valign="baseline">{Sum_BillAmount1} </td>        </tr> <!-- END Section SessionBreak_Footer -->

Using CKEditor

Well, sometimes things are sooooooooooo simple. We just incorporated the latest CK Editor into one of our ASP.net C# Inmotion Projects. Here is how to do it: (1) Upload the latest CK Editor Version to the root of your webserver (2) Create a Record and make sure the field you want to use for the
Read More »

Redirecting to an SSL page

To have your codecharge site redirect to an SSL page for all pages, place the following code in the Application_BeginRequest method in Global.asax:   If Not Request.IsSecureConnection Then   Response.Redirect(Request.Url.AbsoluteUri.Replace("http://", "https://"))  End If

Using the AjaxControlToolkit in a .Net InMotion App

Rename InMotion.Web.Features.dll to InMotion.Web.Features.Orig.dll.  This file is located in Program Files/CodeChargeStudio4/Components/CodeTemplates/VBInMotion/Library (or C#InMotion if you are using C#). Download and unzip this file and put it in same directory as the file you renamed.  In this .dll I changed the MTScriptManager to inherit from ToolkitScriptManager instead of ScriptManager.  Download and copy the AjaxControlToolkit .dlls (I’m using the 3.5 version) to the bin
Read More »

Accessing Controls from Javascript

Below is some sample javascript code hiding/showing controls from Javascript when using the InMotion framework.  if (getMTControl("Batch.BatchCodeEditLink")) getMTControl("Batch.BatchCodeEditLink").style.display = 'none'; if (getMTControl("Batch.BatchCodeLabel")) getMTControl("Batch.BatchCodeLabel").style.display = 'none'; if (getMTControl("Batch.BatchCode")) getMTControl("Batch.BatchCode").style.display = 'block';