is there a function in ASP that can force a database result to automatically wrap at say.. 25 characters in length? Reason for this is because I have a database and people could go in and put a message like
"MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM"
and when it is displayed on the site it will make the layout all messed up.
I'd like to know how can I wrap text.ie,I've a long text but I only want to publish the first two lines of text and then 3 dots "..." so the rest can be read only clicking on one of those 2 lines.How can I do that?
Is there a way to force the below testxxxxx text to wrap or stay within the 200px width of it's cell? Sometimes I have long url's that make a html email table stretch because of long length. I thought maybe there was a tag like NOWRAP that may prevent this behavior.
I'm generating HTML formatted emails in my asp program using CDONT. Depending on hoow ling the link is it will sometimes wrap and ruin the link. The is Detail email properties listing : Code:
What ASP code can I use, for an ASP-generated spreadsheet, to force a cell to wrap if the content is longer than the width I have specified for that cell?
I send HTML formatted emails with links and images in them generated by my asp driven website. Occasionally the image will not appear and the link will not work. By looking at the email at the receive end, (right click/properties/details/message source, this is what I sent: .....
My main page shows a table to which a user can add data to by clicking on a button, this in turn loads up a pop up window where the data to be entered is typed. Once the data is submitted the popup window is closed via Close button, but the table on the main IE page only shows the updated information if the refresh button is clicked.
All i want to know is, is there a way of forcing refresh of the main page when the close button in the popup window is clicked. Code used for the close button:
I need to find a way to force all the asp code on a web page to load regardless if the user hits the reload or stop button on the browser. I am seeing where more and more users are doing this and it is causing me some problems on some pages. I would guess there is a way to do this I am just searching for the wrong thing?
how would i for a browser to download a file (specifically mpgs) i can get it to go for small 4mb files, but the larger ones if they do go, take bout 15 mins to even begin the download.
I'm trying to create mp3 downloader and force download instead open in explorer. it's ok if the song is at my server but what if songs are at another server. I try to split full path to file path and file name but doesn't work. Script don't work if is song at my server and path to song start with http://www...
Every time my page loads in IE6 the navigation reloads. How do I stop this happening? It works fine in FireFox.
I do have <% response.expires = -1 %> at the top of my page. Would this affect the navigation graphics as well?Can I force a user's browser to cache the nav?
Is there a way to force a file to be saved instead of using the "default action". In my situation, I've got a series of MP3 files that are being used by my chorus as a learning tool for learning the current music quickly. I have instructions on the site telling them to save the files to their hard drives and to play them from there.
However, people are just clicking on the links and their default MP3 players are trying to play the files. Now, I have compressed the files pretty hard because some were griping about the filesizes, so if they are played right off the link, the quality is a bit choppy. If they save it to their hard drive and play it there, it sounds fine.
Just curious: is there a bit of ASP code you can place in the top of a document that will force all root relative image and file paths in the HTML of this doc to expand to include the full URL?
I doubt it, but before I did it manually, I thought I'd ask. We use a template of sorts, but need one document to use the full URL, and it would better to just have it that way in the one document and not the entire template.
I'm trying to force a file download using ASP but not getting very far... I want the browser to send .pdf files to the user rather than trying to open them within IE (or wotever browser). Does anyone know what code I should use for this?
Is there a way I can force a Save As dialog? I have a page with a bunch of files listed for download. Unfortunately, these files attempt to open directly in the browser. I need a way to force a Save As.
I need to make it so that I can download a .WMV video file. because giving users the direct link doesn't work and I think its alot better than asking them to right click and save item as..
The below code forces a prompt to the user to open or save the .pdf file file to their local machine. It seems to work great except I have one user who can not open any .pdfs using this prompting method. He gets an error that says "File could not be found". However, if we choose the 'save' option instead, we can save the file to his local machine. He can open .pdf files from normal links to .pdf files. It's just this prompting method that is causing a problem. So, I'm perplexed.
I did some digging and found that there is also an FSO (File System Object) method (which may or may not solve my problem), but I'm not sure how to impliment the FSO or if that will even help me with this.
How do i force a user to download from a hyperlink as adobe pdf file, it loads up in a new window and I need them to download it, or at least give them the choice to download it.
We have a web application that prompts the user to accept an ActiveX control (in this case, a report creation control) and then continues. If the first time the user gets this prompt, they accidentally decline to accept, they have no way to force it to load later. Any suggestions on how we can force this prompts again?
I have a server that hosts a few intranet sites. The one that all my coworkers have their Home Page set for causes their browser to authenticate, which is all good.
The one i'm working on now requires Anonymous Access in order to work, but the authentication from the first one is carrying over to the other. Can I use WWW-Authenticate to force anonymous access isntead of using it to force NTLM, Basic, etc?
I have a page that does a postback using ASP.NET and VB.NET. Basically, there is a form item that changes the settings on the page and it is near the bottom of the page. If you change it, the page has to refresh to display the changes to the page, but when it does, the refresh causes the page to be displayed at the TOP of the page.
Is there a way to force the page to either A: scroll to the bottom or B: (even better) scroll to a certain focus point on the page by giving the name of a control or something?
I have 2 .ascx files and one .htm file. One of the .ascx files is basically just a table with four rows. One of the rows has table for the other .ascx file, which is the menu, and the .htm file, which is the body content. Code:
I am creating an asp application which is essentially a file management app. I am trying to get my head around a technically issue wonder if someone can offer some help.
I want to be able to force the download of the files are attached to a particular record. The code which i use to force the download is:
I'm writing a math quiz. Every time the page loads, random problems are generated. The student enters the answers in text fields. They submit the form and the answers are checked.
if they were to press the back button, the same page will be there, and the student can fix the wrong answers. Is there an elegant way to force the page to refresh when the student presses the back button?
How do I force the page to refresh when the user hits the back button on the browser? I have an 'add' record form and I have inserted code so that it will not duplicate if the user submits the form several times.
however I just discovered that if the user goes forward then back and submits again it will create a new record. I want it to display the 'page expired' message.
has anyone got a way to force a word doc to open in a browser (it's for an intranet site before anyone asks), I can force the download, but I don't know a way to force the browser to open it.
Now the it works fine in ie5.5 sp2 but no ie5.5 sp1 it prompts the user twice the open dialog box.
i found on microsoft site that it bug in ie 5.5 sp1 and it says to upgrade to sp2.
but my users are not willing to ugrade there ie. can you please help me out how can work this in ie5.5 sp1 or anyu other way to force a file download...