To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here

HOME News MS SQL Oracle DB2 Access MySQL PHP Scripts Books Links DBA Talk


Go Back   Database Journal Forums > Miscellaneous > Database Programming

Database Programming Discussion on all database programming topics, including ASP-db, ASP.NET, ASP and PHP.

Reply Post New Thread
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-05-2009, 08:52 PM
Frank Frank is offline
Super Moderator
 
Join Date: Oct 2002
Posts: 929
NameMap Header tags

When ASP-db is switched to ASP-db.net, Css is used and the namemap tags effect is lost as styles are usually done in Css. However, modifying the styles are not easy to keep track and we have re-activated the dbNameMap tags to allow user to place tags there. One very obvious usage is to fix the grid and form widths to eliminate the 'bouncing' effect of the display upon paging. That is, when the cell widths are different in different pages, the table will change in width to accommodate that. Download the March DLL to experience the new fix. The following code illustrate how to use the name map to make the dual horiz grid display stable ->


Dim x As New Tornado.z
x.dbQP = "U=8| D=NWIND| S=1| Q=ORDERS| M=ty=both!indexfld=0|gdf=0,1|fmhf=0,1| th=tit=Northwind"
x.dbFormMagicCell = "fi=2|Mac=#2#|Tag=width='300'"
x.dbFormNameMap = "fi=2|Tag=width='123'"
x.dbNameMap = "fi=0|Tag=width='99',fi=1|Tag=width='98'"
x.ASPdbNET()

Another better way to control long text fields is to use the TEXTAREA in the macro. Example -

mag &= "fi=Title|Mac=<TEXTAREA COLS=40 ROWS=4>#Title#</TEXTAREA>"

Fk

Last edited by Frank; 03-07-2009 at 10:34 AM.
Reply With Quote
Reply Post New Thread

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:57 PM.


DatabaseJournal Recent Articles


 » Top 10 SQL Server 2008 Database Administra...

 » A First Look at SQL Server 2008 R2 Master ...

 » Redmond exploits MySQL uncertainty

 » Oracle Launches Oracle Global Trade Manage...

 » SQL Server 2008 RTM Support Ends April 13,...

Search Database Journal:
 







Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.