I'm using dynamic css sheets.What I'm currently doing is reading a normal css sheet as a text file, then using regular expression to change all the size values and outputting the resized css.Would it be faster to put a resizing function in the asp page that outputs the css, rather than using regexp to change a stylesheet? something like this
Code:
<%
Function resize(n)
resize=Int(clng(n)*(size/12))
End Function
%>
h1{height:<%=resize(20)%>px;width:<%=resize(200)%>px;}
#firstDiv{height:<%=resize(120)%>px;width:<%=resize(200)%>px;}
..............
..............
....strategy to do this. It works wonderfully except I cannot figure out how to do two things:
1) specify a name for the worksheet that's exported (it names the worksheet "blah.asp?q=123" when the user wants to see "Monthy Quotas"
2) generate multiple worksheets. The exported spreadsheet should have about 6 tabs on the bottom that all contain different information in the same report.
asp is known for it's large amounts of useful functions, how does everyone remember them. I am thinking of typing up all of them and then print it off for easy look up. is that bad?
I did some searching here & Google but I'm probably blind because nothing matched exactly what I'm trying to do. I'm creating an excel file through ASP, oh yes, I'm doing it! No probs there but how would I add data to several sheets? This is the idea (simplified) how I'm doing it:
So what should I do if I'd like to create a sheet called "foobar" and write that stuff to it and then another sheet called "zenithrocks" and write some other stuff to it.
I'm facing a challange where I have some XML data in either a flat file or an SQL database. I also have an XSD file representing the structure of what used to be one- many Excel sheets.
My task is to generate an Excel like sheet in as ASP.NET webpage where users can edit the XML data stored in an SQL database.
I'm using Visual Studio 2003 and C# to build this ASP.NET application.
I know it's a long shot, but if anyone has experience in building similar applications I would love to hear how you have approached it.
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 code that creates a calendar for each month and then it displays events from that month that are stored in a db. I need to loop through my recordset and display all the events, but I can't quite figure out how to do it. I am thinking I need to do an array. But I am not really sure.... any ideas. Here is where you can view the calendar. Code:
Ok, I have a Javascript ASP and in it I have a dynamic repeating table with certain attributes to people. If one of these attributes is old or invalid, i want to change the color of the text (and maybe make it flash, blink, change size, something) so that it's easy to read.
I want to create textboxes dynamically but with dynamic names also.
i am retrieveing a load of values from a table in SQL into a DataReader. Then i want to create textboxes from those variables. I want to dim various textboxes with different names depending on what I retrieve from SQL. I tried the following:
dim dtrcondet.item("contact_detail_description") as new textbox()
I am trying to create a site that has dynamic page generated based on if a value is present.
PROBLEM I want to be able to show a certain dynamic page if a certain value equals to true. The page should be able to generate values from a db e.g. <%=aspscript%>
And if the value equals to false, then the page should not appear at all. I tried using SSI (Server side inlcudes) but cant append variable names to it or use them with if then statements
I would like to have some text appear in a different color if it matches a result in a database. I am not sure how the syntax would work, this is what I have come up with so far. Not sure how to insert it.
If <%=(Picks.Fields.Item("Pick1").Value)%> = <%=(Results.Fields.Item("Pick1").Value)%> then class="style1"
Is this possible? and if it is does it have to be entered for each occurance of the dynamic text or can it be added to css?
i want o make the images on my website depending on who is logged in. I have all of the Images names stored into my database, which i have uploaded there using the Pure ASP upload 2.09 add on for dreamweaver, and that all works fine and my image is stored in the correct folder and the name of that image is stored into the database as imagename.gif which is exactly what i want, but i dont know how i need to declare that value from the database into my style sheet. Code:
I need to create a bunch of sites with slightly dynamic CSS. Basically, all the image paths in the CSS need to be dynamic, depending on the values of certain ASP variables. I can think of 3 ways to do this: 1. Write a script to create a semi-dynamic CSS file, which will be run whenever we need to make changes to the ASP variables controlling the image paths. 2. Have an ASP script generate the CSS on the fly:
3. Put all static CSS in a normal CSS file, and have a special dynamic style sheet for only those rules that require variability. We could either use method 2 above to generate a second style sheet, or place dynamic rules directly in the actual asp pages.
how to dynamically build an XML document with IIS6 and 404 error custom handler? At the moment if I dinamically create an XML page with Response.Write(xml code here) I cannot remove header "404 errorpagepath" that IIS adds automatically. How to remove that header from Response object?
i think my code is correct.but it still can't work when i run in the nokia mobile browser,i had run my wap gateway and internet service server(ISS) also.
can anyone help me to solve this problem? The attaches file is the wml,asp and database for this program.
i want to have a dynamic navigation that will look at a database and then fill the navigation side. I want to have a category, then a sub- category also. Can this be done?
it's a dynamic form which should show which option is selected. I've made zillions of these before, and this should work no problem, but there's a bug that I just can't see somewhere... Can anyone see what in god's name I'm missing? Code:
I have been searching for tutorials everywhere on how I could make a menu that is multi levels but that can be updated dynamically through asp...so basically when I add a link in the database it will update the menu...now I know how to pretty much pull links from the database for a basic menu...but lets say there is a link called about us and under about us there is more options to choose from.
How would i code this so the menu would know which ones were parents and which ones where childs? And does anyone know of a good tutorial, or of an example. and basically I want this because I would like to create a content manager...but I don't understand how the menu would work when pulling data from a database.
Is there any way to dynamically generate an include file based on a variable passed to the asp page via a url ?- so for example:
Person x clicks on a url - that ur directs them to template.asp (template.asp has no code in it other than page title etc and <!--#include file="<%variable%>" --> )
Once in template.asp the page loads the include file that is relevant to the companies website that the link was clicked from.
In that include file will be the correct form and stylesheet setting for that company.
What we are trying to do is achieve a global template file which multiple customers can direct peo[ple through and all the data is therefore stored in one central repository.
The file displayed when they reach template.asp will depend on the url they clicked. Basically how can i get the url to pass the variable which the include file will then load??
I am having to make sites accessible where images are dynamically generated.
'Display the graphical hit count
Response.Write("<img src=""counter_images/") Response.Write(Mid(lngVisitorNumber, intWriteDigitLoopCount, 1) & ".gif""") Response.Write("alt=""" & Mid(lngVisitorNumber, intWriteDigitLoopCount, 1) & """>") How do I include the width and height attributes in this code?
I currently have a form with 5 rows of textboxes (one textbox on each row). I would like when user keyed in something in the last textbox (textbox at 5th row), it will automatically create another row of texbox below it. Can someone please advise me on how I can do that?
For some of my pages I currently have part of the URL as being 'ourservices.asp?ID=1' (its got nothing to do with sessions) and I am currently changing part of it so its more SE-friendly - i.e. 'ourservices.asp?services=website-marketing'. However following Googles guidlines regarding dynamic URL's,. it says that some search engines don't crawl pages which have a '?' in them for fear of them being a session URL (which mine isn't). My question is- is there any alternative that I can use to replace the '?' with another character for my dynamic URL. Or, is this the only way I can have this dynamic URL?
i want to create a dynamic list or array in asp as we have arraylist in asp.net. what i want is that i want to hold the values selected by the user in a list and in advance i dont know that how much values the user will select. i also tried to use array with redim but that did not work as we can create array with only constant integer parameter.
I've been writing a website for dynamic access, meaning any customer can login to their website (I run a website business) and edit pages. However I'm having a delima of how I should write this part, I'm storing everything in a Access database and accessing it using SQL. The user can create a link, and then select the page it links to using a dropdown list to create links on the navigation menu. Now they need to create the page, and I'm wondering how I should store this. Should I store ALL the code (including the ASP?) into a Memo field inside access, or should I create a 'first half' asp page and a 'second half' asp page and then have my system store all the content and stuff into the access field? So basically the page would be assembled somehow: ASP Part 1 - Starting Code Content grabbed from Access Field ASP Part 2 - Closing Code and then just store the Content inside the field? If so, should I create 2 include files and then tell my system to make a new page, include part1, store the content, then include part2?
I have a variable called section. I'm trying to include the value of "section" in a server.execute so I can dynamically include a particular file based on that value.
im trying to create a dynamic sql query based on form user input in ASP. The sql query is then used to filter through a table i have in access. So far i have managed to work with the below code which uses the input from the form and puts it into SQL format.
My form has a field 'PositionTitle1', PositionTitle2' and 'PositionTitle3' all pointing to the one field in my access database. My problem lies in adding functionality for the 'OR' to be used instead of 'AND' in this situation, so that i can place a value in 'PositionTitle1' and 'PositionTitle2' and both will come up in the filtered query.
Any suggestions on how i might be able to alter the below to accomodate for this?
I'm trying to making a form which can filter the search results. Some of the infomration is in text boxes and other search options are in dropdowns. this is my current query: Code: SELECT DefendantCase.VBKey, DefendantCase.PointValue, DefendantCase.CaseNumber, DefendantCase.LastName, DefendantCase.FirstName, DefendantCase.MiddleName, StatusDescription.[Description] AS Status, ProsAttyDescription.[Description] AS ADA FROM DefendantCase LEFT JOIN StatusDescription ON StatusDescription.StatusID=DefendantCase.StatusID LEFT JOIN ProsAttyDescription ON DefendantCase.ProsAtty=ProsAttyDescription.ProsAtt yID WHERE LastName LIKE '" & lastname & "%' AND FirstName LIKE '" & firstname & "%' AND DefendantCase.StatusID IN("& statusid &") ORDER BY DefendantCase.LastName, DefendantCase.FirstName