-
Drop Downlist Box
Hi,
i have drop down list box which basically hold 2 values.(concatenated in my xml schema)
wat i want is to specify the length of the concatenated values.
eg:
Description and Name is concatenated.
Description varies for different names so in my list box if the desc is too big then the name is not visible.
if it is small then both desc and name is displayed.
Is there any way to specify the length of the description to some fixed value. so that i can view both the values.
Example:
wat i want is to have fixed length for description and then the name should be displayed.
Description Name
aaaaaaaaaaaaaaaaaaaa bbbbbb
i.e description should always be of this length watever be the data length.The data might exceed this size but still it should display only this much of length.
Pls help.
thanks,
edna.
-
You can use a couple different functions to do this.
Here is an example limiting text to only 13 characters.
Code:
dim dr as OledbDataReader
dim var as string
if Len(dr("Posted_By")) > 13 then
var = Left(dr("Posted_By"), 13)
else
var = dr("Posted_By")
end if
response.write(var)