I need to figure out how to make ASP add in the appropriate style sheet. Basically I want it to look, see what page it is on and say, 'Ok ... if this is the home page, use this style sheet ... if it is not, use this other style sheet.'
I am having trouble with css style sheet with asp code, everything was working till I put extra of css code in there, and I got error message state expected end statement,
A general question.....is it bad practise to construct a form which 'switches' from HTML to ASP a lot throughout its length? Should the form be written with "response.write"s and keep it all ASP code in one section in the middle of the form, so the server just switches once, or does the multiple switching of server engines not cause any problem ?...whats ur thoughts here ?..
I wish to have a web site that has most of the pages as normal HTTP pages but has some areas that use HTTPS. I want to have it that if a user selects a link to a HTTPS page that they go there an there Session Information is kept. I also wish to have the pages switch automatically to HTTPS if a visitor types the URL without the HTTPS. So my questions are: 1) How to redirect to a Secure Page without losing Session Info? 2) How to test if page is accessed by HTTPS, and if not switch to HTTPS quickly?
I think something like this code is what I want but how do I do it.
<% if not "HTTPS" then response.redirect(https://mysite.com/securepage.asp) end if %>
I want to use asp to assign a css class to <td> tag. I was thinking an If statement, but i've not come across trying to assign a class to a table cell before! I want the cell background to be highlighted red determined by a database table with - yes or null. (null remains white, yes - red) At the moment it simple like this: Code:
I'm trying to write a style sheet switcher for myself in asp. The code sits on every page. I've so far managed to cobble the following: This block sits in the head: Code:
I am storing content in a database, and when a text field is updated I am adding a line "Updated by <username> at <date and time>" inside the text field.
Now what I would like to do is to apply a dynamic style to that line by using a span.
<span style="<%=UpdateStyle%>">Updated by <username> at <date and time></span> where UpdateStyle would be an ASP variable like "font-weight:bold;color:red" etc, so how that line is displayed is amendable at any time from within an include file.
Well obviously using <%=UpdateStyle%> didn't work ... I also tried defining it as a javascript variable and calling it using document.write, but that didn't work either.
I am currently undertaking a project where I have to make the page layout and colour scheme customisable to the user. I have therefore created the different style sheets for both colour schemes and layouts. Each user within the backend database has a field for layout and colour scheme. I need the system, when a user loggs in, to check the field value of both of these, and apply the relevant CSS sheet to every page within the site thereafter.
I have already tryed using cookies, but becasue it is for a school, many users will use multiple machines so that wouldnt work.
I would like to know if and how it would be possible to create an entry-screen that allows the user to enter data in a database, using a spreadsheet/table-like entry screen. The screen would start of having headers for each column/field and an empty row underneath. When each column in the row is filled in, the user must have an option to add another row.
I'm look for the code/explanation that helps me set up the entry screen, and the ASP code to add the entered data in the database.
I can imagine that each entered row is added to the table when a new row is added, or a button is pressed and then the screen refreshes with the newly entered information and a new row...
Further to a question I posted a few weeks back - i'm devloping a site for our company where visitors can vist product sections, and pick catalogues they want - currently they can only go to one section, pick catalogues, order them, then move onto another section - problem is this. The powers that be want a more 'shopping basket' style - where customers can browse all the sections and pick as they go - and order them all together. In a 'shopping basket' styleee - so does anyone know of any good shopping basket style tutorials?
I am trying to make my result set print out the results in the same style as a calendar or photo album. I am actually making a photo album, and I can only print the results in list format. I would like to have 3 or 4 results per table row. Then once I have 3 or 4 results across a new row in the table will start. Code:
Anybody have any experience of a decent explorer style tree view system which is database driven?At the minute I'm using ASP Tree View (www.CompuSolve-Technology.co.uk) but it's not really the best.It has to work with a database (MS SQL Server).
It there a standardized process of working with text files that follow the typical INI file pattern with sections within it designated with square brackets? I am looking at needing to read in some of these into the DB and then editing in the DB and writing the files back out again. As an example they would have sections like this:
I have this file called "inc_BreadCrumbs.asp" basically this is a Navigation include file as breadcrumbs style, and I inserted this to every page in my site. It works fine but one thing I cant configure is that:
It displays the file names as for example: search.asp or results.asp etc... But i want it to display as SEARCH or RESULTS etc... How to implement this? Can it display only page title name or something else how can you change it? Code:
may i know how to get got how many EXCEL sheet?i insert sheet1's data to MSSQL SERVER, but i wan to check whether sheet2 have any data onot. If have,then insert to db,else check next sheet.
It will grab any style attribute within HTML that uses double quotes, and put it in the re.Matches collection.Now, I want to include single quotes into this regular expression. Here's what I have so far:
I'm using this code in ASP that reads an excel sheet going across. But at time I want to read the excel sheet by going up or down. Is there a way to do this using this code or another? Code:
anybody can help me simulate excel sheet interface in asp and when i make changes to the excel sheet can i save it back to the database using the excel asp changes.
got stalled at at point that i can no longer get my thoughts together.the point, is in classic asp, stream an excel file from a firebird database.temporarly save it if necessary,stream it to the browser,delete the temp file
on googling, i found some examples but all assuming that the file is locally present. on the other hand, i beleive that is possible to stream the binary file and the save it locally to then present it to the browser, but i can't figure out how.
I am wanting to display a sheet from an excel file. I dont need to change/update it, just a simple display. Somthing like the 'Print Preview' you get in excel (that would be perfect).
i cant display the top row of the excel file. also if i try and access a cell that is empty i get an error. I need to display all cells from A1 - G60 if they have data in them or not.
I've got an application which manipulates data in a spreadsheet using ADODB.RecordSets. This works great and I am able to update the spreadsheet with no problems. However, it doesn't "recalc" the sheet even though the sheet is set for automatic calculation. Is there a way to get the sheet to "recalc"?
I've seen statement like obj.Caculate, but I get an error if I try to use statements like Server.CreateObject("Excel.Application"), so "calculate" doesn't work. Can I send it some keystrokes or get another procedure to kick off calculation?
I've read all about file uploads but i can skip that part. I'll be physically placing the excel sheet on the server for now. Each spread sheet will have the same number of columns and will match up. I need to transfer that to a matching table in my database.
i want to take the spread sheet and make it a comma separated list in notepad. i wanna take that and loop through it inserting each record as I go or something to that affect that won't take as long.
Using regular VB ASP (not .net) and calling an Access database using ODBC, I've generated a recordset based a query... (no big whoop, obviously)
Now I want to be able to open a new XL spreadsheet (client side - we're assuming user has XL) and export that table to it. I've seen some posts about DoCmd.TransferSpreadsheet, and CreateObject("excel.application")... I've never actually used them before, so I don't know where to start.
I'd like to have a link on the page with the table to "export to XL"... and then have it open XL (client side) with that table in a spreadsheet.
I have a master table employee , which contains the details of employees .
i have to upload the the data to this table from thye excel sheet by using asp.
that is -- what i have to do is , I have to provide a interface to browse the the excel sheet by user , afetr browsing the sheet user will submit the page and i have to read all the rows of excel sheet and update the table . if id exists in the table , then update the data otherwise append the data . Code: