I have webpages that contain links to word documents and pdf files. For each link I want to display the file size and an icon showing what the file type is.
I’m thinking the best way to do this would be with CSS? Can anybody give me an example of how to do this?
Thanks!
When you create the link html you will need to specify the css class based on the file type you are linking to eg:
In your css:
In your code behind you can add the following to get the file size, assuming the file is on disk. You would then need to convert this to something more readable and add it to the “title” attribute in the example links above.
Or something along those lines. Above is not tested.