Question : insert current filename as variable into href statement

I have two language buttons on each page - rather than having to code each page, I would like to insert the current filename into the href statement:
<a href="/en/{filename}"><img src.....>
<a href="/es/{filename}"><img src....>
The file names are the same in each subdirectory.

That way I could add the two (eventually 3) buttons to the header include file and it would automatically generate the links to switch between the pages.

Windows server with pages as .asp, know nothing about programming in .net or .aspx

Thanks,
Andrew

Answer : insert current filename as variable into href statement

Hi,

yes, there is an Office spreadsheet ActiveX control which can be embedded into a form. It's a kind of "light" Excel and can be programmed. Another possibility would be to embed an Excel object with the unbound object control - or even better, let it done in a real Excel instead of complicate embed methods.

But the best method of course would be to directly enter the data into the table, you could for example use a datasheet view which is similar to a spreadsheet. You could create a temporary table where no restrictions are on the fields so the user can move between all cells and enter data and then in the end you can simply walk through the records and columns and check all the data to write it to the real table. Would be very much easier than exchanging the data with Excel.

Cheers,

Christian
Random Solutions  
 
programming4us programming4us