TIPS, TRICKS AND FAQ
Tips, tricks and frequently asked questions for TMS ASP.NET components
On this page we will collect tips and tricks and frequently asked questions for the TMS components. If you have a tip, trick or question do not hesitate to contact us: .General tips
Does the license provide royalty free use of components ?
Yes, all components come with a license for royalty free use of the components when used in binary compiled applicationsSingle developer license vs site license
A site license allows an unlimited number of developers within the company holding the license to use the components for commercial application development and to obtain free updates for a full version cycle and priority email support. A single developer license allows ONE developer within a company to use the components for commercial application development, to obtain free updates and priority email support. A single developer license is NOT transferable to another developer within the company or to a developer from another company.Email address changes for registered users
Send an email with:- current registration email
- current registration code
- new registration email
to and the database will be updated.
For single developer licenses, we can NOT change the email to another user email address.
Peer to peer support in newsgroups
This is available for registered users. Information to access the newsgroups can be found after login on the website.Component related tips
MainMenu, SideMenu
- How to programmatically add a menu
This code snippet adds a root menu to the MainMenu with a submenu with one menu item:
C#MenuItem mi, mis; mi = new MenuItem(); mi.Caption = "Root item"; mis = new MenuItem(); mis.Caption = "Sub Item"; mi.SubMenu.Add(mis); MainMenu1.Menus.Add(mi);
VB.NETDim mi As TMSWebControls.MenuItem Dim mis As TMSWebControls.MenuItem mi = New TMSWebControls.MenuItem mi.Caption = "Root Item" mis = New TMSWebControls.MenuItem mis.Caption = "Sub Item" mi.SubMenu.Add(mis) MainMenu1.Menus.Add(mi)
- How to navigate to another page from client-script
In the client-script of the menu item put :
window.location.href = "http://www.tmssoftware.com/" return;
HtmlEdit
- How to programmatically add a HTML Editor
This code snippet adds 5 lines to a HTML Editor:
int i; for (i = 0; i < 5; i++) { ListItem li; int j = i + 1; li = new ListItem("Line "+j.ToString(),""); HtmlEdit1.Lines.Add(li); }
- How to programmatically get the text of a HTML Editor
This code snippet gets the text from the HTML Editor as a single string:
string txt = string.Empty; foreach(ListItem it in HtmlEdit1.Lines) { txt += it.Text; }
- Project settings to set for use of a HTML Editor without request validation
In ASP.NET 1.1 request validation will cause an error when text with HTML tags is sent back to the server. To solve this, add in the file Web.Config of your project following line:
<pages validateRequest="false" />
AdvWebGrid
- How to add combobox items to a combobox column in AdvWebGrid programmatically
This code snippet adds the value "New item" to the combobox in the 2nd column of the AdvWebGrid:
ListItem lt = new ListItem("New item"); Column col = (Column) AdvWebGrid1.Columns[1]; col.ComboItems.Add(lt);
- How to programmatically insert a new column with centered alignment in the grid
The code creates a new column, sets its alignment property and adds it to the grid:
TMSWebControls.Column col; col = new TMSWebControls.Column(); col.Alignment = Column.Aligning.Center; AdvWebGrid1.Columns.Add(col);
OutlookBar
- How to change OutlookBar items programmatically
This code snippet shows how to change a panel's caption and item's caption programmatically:
OutlookPanel op; OutlookItem oi; op = (OutlookPanel)Outlookbar1.Panels[0]; op.Caption = "Panel Caption"; oi = (OutlookItem)op.Items[0]; oi.Caption = "Item Caption";
More code snippets and tips will be added in the near future here...
Copyright © 1995 - 2008 TMS Software


ONLINE ORDERS
Subscribe to RSS Feed