Skip to main content

Font Size: A A A Theme: C  C  Off 

Categories

Our Blogs

Archive

  • Displaying JavaScript Alert Messages

    At times it may be necessary to show the user a message from various sections of code for reasons such as invalid data has been entered.

    This is easily accomplished by using the folliowing code:

    C#:
    BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(this, "BUTTON_CLICK_MESSAGE", "Enter your exception message here.");
    VB.NET:
    BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(Me, "BUTTON_CLICK_MESSAGE", "Enter your exception message here.")

    Or, if you want more control over the JavaScript alert, you can use the following code:
    C#:
    String ErrorScript = "alert('Enter your exception message here.');";
    ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "", ErrorScript, true);
    VB.NET:
    Dim ErrorScript As String = "alert('Enter your exception message here.');"
    ScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "", ErrorScript, True)

    Regards,
    Dean

    ...

    Full story

    Comments (0)

  • Finding a control on a page

    Quite often, you will need to be able to get at a field value on a page but you may be in a different class, and naturally you will not be able to "see" the control that you require, as the control is registered in a different section.

     

    By using Page.FindControlRecursively, the ability to get at these controls is handled very nicely.

     

    So, for example, if there was a text box on a page with an ID of ClientTextBox, and you happen to be in a different section, not being able to get there directly, you can do ...

    Full story

    Comments (0)

  • Disable Smooth Panel Update In Iron Speed 7

    In some situations smooth panel update in ISD can cause you problems. For example we have some code that uses Page.Response to return a document to a user which fails to work correctly with smooth panel update. The code runs but nothing actually happens as far as the user is concerned. Fortunately this can be easily disabled on a per page basis through Iron Speed. Simply navigate to the page you want to change in the designer. Make sure you are at the top level of the page so MyPage.apsx not in one of the nested panels. Then select UpdatePanel ...

    Full story

    Comments (0)

  • Expand/Collapse Row in Iron Speed 7

    When you have a table in table Iron Speed will show the first row expanded by default. In general I prefer having all rows collapsed. This can be configured in Iron Speeds application generation options. You will need to go to New Page Options > Table > Basic > Show Table > Table and change the setting for "Initial row display style". You will need to do this for all the table types you want to change. This will apply to all new pages. You can also change individual tables to use a different setting if required. This can be ...

    Full story

    Comments (0)

  • Using Iron Speed's CreateWhereClause

    Quite often you may want to customise which items should be shown in Iron Speed's drop-down lists to only show a sub-set of records instead of the entire list. For example, in list containing account codes for a financial application, you may only want to show codes of a certain type, such as 'Income'.

    The most obvious way to customise the list is by overriding the PopulateAccountCodeIDFilter(), assuming the account code field is called AccountCodeID. This method can cause a number of issues, such as; copying an unnecessary amount of code from Section 2 into Section 1 which will mean ...

    Full story

    Comments (0)

  • Change a page's Title and Master Page in Iron Speed v7

    Updating a page to use a different master page is simple to do but can bit a little tricky to find the first time you try. In version 7 we have new properties pages to configure pages and their contents. This is where you need to change the master page. The first step is to find the page you want to update select it and make sure you are at the top level on that page in design view e.g EditPage.aspx not a nested panel. Open the properties tab on the right hand side next to the tool box. Once ...

    Full story

    Comments (0)

  • Ajax Control Tool Kit and Iron Speed

    After having created your pages using Iron Speed, users can enter anything into a free text field, which may be something completely intentional.

    For example, there could be a field on the page titled "Description", presumably additional information relating to a particular record. You may wish that this description field should only ever allow numbers to be entered into the textbox.

    It is worth noting that Iron Speed adds validation on the controls it builds, so dates cannot be entered incorrectly, decimal fields are only ever decimal figures etc.

     

    Iron Speed bundles the AjaxControlToolkit.dll into every project, so that you ...

    Full story

    Comments (0)

  • Store user settings in a cookie with Iron Speed

    Have you ever wanted to let users store there own custom page settings with an Iron Speed application? A simple way to do this is to use Cookies. With a Cookie you can store users preferences for things such as the number of rows shown in a table. I have written an article on this which shows you how to do this for a show table page. It was written using Iron Speed v7 but should be easy enough to modify for use with earlier versions. You can find it on the Iron Speed forums here or you can download ...

    Full story

    Comments (0)

  • Multi-Select ASP List Box

    I have recently created an article for the Iron Speed community detailing how to use ASP list boxes to easily create multiple relationships between data from two sets of tables, for example linking employees with their role or department, or suppliers with the companies they supply.

    This solution involves replacing the default dropdown list from an Iron Speed Designer add record page with an ASP multi-select list box then adding some custom code to populate this list box and later save the new records to the database.

    You can read the Iron Speed Forum post at http://sjc.ironspeed.com/post?id=4781486 or download the ...

    Full story

    Comments (0)

  • 100% Table Width in Iron Speed

    In earlier versions of Iron Speed tables would by default take the full screen width if they needed it. In 6.2 applications you will notice that they wont always fill the screen. So you might find fields being pushed to multiple lines even when there is white space on the right of the screen. There is a simple fix for this. You just need to go to the master page (or pages) that you are using and right click --> Styles --> Table and add a new attribute width 100%. Rebuild and run the application and your tables should now ...

    Full story

    Comments (0)

  • Getting values from database columns using Ironspeed

    Constructing a where clause in Iron Speed is a straight forward and painless process.

    In Visual Studio, when overriding any of the base methods, it is essential to be able to compare the value of a column that needs to have some sort of test to determine whether or not the current record is saved successfully i.e: Validate() is a prime example.

    One aspect that frequently catches me out is not using .UniqueName, so for example:

     

    CarTable.HasAirCon should infact be CarTable.HasAirCon.UniqueName.

     

    Using SQL Server's Profiler you can see format of the execution of the query that Iron Speed ...

    Full story

    Comments (0)

  • Iron Speed GetRecord() Function

    Iron Speeds GetRecord() function has multiple overrides. The most common are GetRecord("PK as a String", True/False) true/false determines if you can edit it and the other is GetRecord("Some whereclause") which allows you to get a record with a where clause if you don't know the PK, this record will not be editable. When using a where clause to get your record you need to be careful to ensure that the where clause only returns a single record. What I suggest you do is use Iron Speeds GetRecordCount() function first with the same where clause. This will then let you see ...

    Full story

    Comments (0)

  • SQL Joins

    Using SQL joins can be a quick and easy way to get data from a range of tables at once. There are several different types of joins that can be used depending on your needs. Inner, Left outer, right outer and cross joins. I wont go into details about how they all work in this post. What I will talk about is the need to be careful when using them. If your not careful you can easily bring back more or less data than you intended. On large datasets this problem might not be immediately apparent. The main thing to ...

    Full story

    Comments (0)

  • Investment Management Application Goes Live!

    For the last three months I've been designing and developing an investment management application following the specification of one of our main clients. After intensive testing from myself, our company and the client, the application was put into production last week, alongside the client's financial and property management applications which we also support, and the first client's portfolio has just been successfully rebalanced!

    The proccess of rebalancing a client's portfolio to bring their current asset allocation inline with their target asset allocation has been broken down into 19 sub-steps, beginning with one of the para-planners or administators selecting the client's ...

    Full story

    Comments (0)

  • Iron Speed Login Pages

    One of the most basic after thoughts having created your web application should be: How can I implement a login system?

     

    Again, Iron Speed has the perfect solution for this.

    To take advantage of this, create a database with three tables: User, RoleType and UserRoleType.

    From the names of these tables, it can be assumed that the User table will hold details about users such as UserName, Password etc.

    RoleType will be used to store the various types of roles that will be needed (Admin, RestrictedUser etc).

    UserRoleType will be a table to associate a user with a roletype....

    Full story

    Comments (0)

  • Iron Speed Data Validation

    Data validation with Iron Speed is very easy and flexible. Iron Speed will add basic validation for you based on the database field name and type. If you have a field called email in the database Iron Speed will automatically add email address validation to the field. You can also specify what validation Iron Speed should use through the designer. To do this simply go down to the database level and select and table and field. Then click on properites and you will see a validation drop down list. In there is a list of validation types based on what ...

    Full story

    Comments (0)

  • Updating an Iron Speed application after DB changes

    Making database schema changes to a database that is in use can be tricky. To minimize the time and trouble this causes you should take a careful methodical approach to any changes. Even a small change can have some unexpected side effects.You should always plan what you are going to do and consider what else will be effected. Some things to watch out for are are views, triggers that might be using fields that you are changing.

     

    In terms of Iron Speed applications you should consider how many pages are built on the tables/views you are changing. In older ...

    Full story

    Comments (0)

  • Iron Speed Designer v7.0 Released!

    Hi,

    The next major version of Iron Speed Designer, v7.0, has just been released. This is a major update which brings a lot of new features to ISD, including a menu configuration wizard, application deployment wizard, SharePoint application generation wizard, property sheets, and a new formula option!

    You can check out the full list of new features at http://www.ironspeed.com/products/WhatsNewInV70.aspx or read the release notes at http://www.ironspeed.com/products/ReleaseNotes.V700.aspx.

    Enjoy!

    Dean

    Full story

    Comments (0)

  • Iron Speed Copy & Paste

    Copy and Paste functionality that has been introduced in Iron Speed is rather useful. I thought I would write a quick post covering some of the Do's and Don'ts. The best part of this new feature is you no longer need to repeat layouts on the Add/Edit/Show pages. You can now simply layout your add page exactly how you want and then simply copy and paste the fields to the Edit/Show. Remember when copying to the show page to convert the fields to literals. This can be a little time consuming but on large pages its much easier than recreating ...

    Full story

    Comments (0)

  • Iron Speed GetRecord()

    Hi,

     

    If you ever find yourself in a position where you need to get the ID for a particular row when a button is clicked (show or edit?) then you need a way of getting at this record, and Iron Speed provides functionality especially for this.

     

    First, override the button click method in the TableControlRow, and add the following:

     

         public override void (TableName)RowEditButton_Click(object sender, ImageClickEventArgs args)

    {

            String ID = this.UniqueID.ToString();

            (TableName)Record record = (TableName).GetRecord(ID, false);

    }

     

    That should do the trick!

     

    Ricci

    Full story

    Comments (0)

  1. 1
  2. 2
  3. 3
  4. Next page