Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 11th, 2006, 03:56 AM
Friend of Wrox
 
Join Date: Sep 2003
Location: Mentiri, Muara, Brunei.
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default Dynamic Event

Hello,

  I am retrieving data from database and displaying as a report.
This is employee details. It has one field called status whose values may be(VA - Vaccation, RS - Resigned, FC - Finished Contract, RC - Re-new Contract). In the report I want to show only the shortcuts. When the mouse focus over that it should show full description for that shortcut. How can I do this?

can anybody give an idea?

thanx in advance

 
Old August 11th, 2006, 05:58 AM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Is the whole string in one field? I would use two myself. One for the accroynym and one for the longer name. Anyhow, if they are in one here is one way to do it:

Note: this code is dependent on:
> the string always having a two letter accronym
> the first letter of the full name being the fifth character (the count starts from 0 not 1). All of your examples are like this therefore this will work for you:
<%
  dim str
  str = "VA - Vaccation"
%>
<a href="SomeLinkPath" title="<%= mid(str,5) %>"><%= left(str,2) %></a>

Wind is your friend
Matt




Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Event On PictureBox In C# akumarp2p C# 7 January 14th, 2009 07:55 AM
Dynamic control onclick event mii2029 ASP.NET 3.5 Basics 7 August 27th, 2008 11:19 AM
handling event for a dynamic object deepak_8282 General .NET 2 May 14th, 2007 12:42 PM
Raise Event From Dynamic Controls netwizard_01 ASP.NET 1.0 and 1.1 Basics 1 August 3rd, 2006 06:50 AM
Creation of dynamic LinkButton and Adding Event sonaldewle General .NET 2 April 14th, 2006 06:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.