I've captured some data from a form and stored it in an SQL server table. The form is passed to an action script which builds the sql statement and writes the data to the db.
I want to write a URL (http://www.mysite.com/sites/home.asp)
and store the userID at the end of the URL (http://www.mysite.com/sites/home.asp?userID=22) so when I call the URL from a web page it goes to that users page.
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:
Response.Write "<ROOT>" For Each Field In rstCampaign.Fields If UCase(Field.name) <> "KEY" Then Response.Write "<FIELDINFO><FIELD>" & UCase (Field.name) & "</FIELD></FIELDINFO>" End If Next Response.Write "</ROOT>"
I would like to create a page of hyperlinks that are constructed from the contents of a database field. When the user clicks the link they are taken to a page that will display all fields from that particular record.
I already have the page structures in place. There are two pages, one with the links and the other to display the record. Code:
I have a little code to add multiple items to a shopping cart based page. This code works perfect, but it adds all of the info to the same input fields every time it loops. I need it to change the input names each time it loops. Here is the code:
As the subject of this topic suggestions I am trying to find a way to use ASP, SQL Server, Com+ and Crystal Reports 8.5 to Create Dynamic PDF Reports Over The Web, but the only article I found that decribes this process is located on ASPToday.com which is no longer an active website. When I try and suscribe to the site I just get a message saying to email, and when I email I don't recieve a response. 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 use a website in asp for which I have to type a username and password everytime I want to login. On the form are two fields for typing the username and password and one button LOGIN. I want to create an standard url for the website which includes my username and password so I don't have to type it in everytime.
I looked at the page source but I can't find the right string. I thought maybe http://.........aspx?username=me&password=it
I have 2 developper machine running visual studio 2003 and Windows 2000. On the first machine (Machine A) I may create a new asp project without problem. On the second (Machine B) I cannot create a new project.Visual Studo create the project but not the initial files and freezes.
But I may create a new project from Machine A using the web server of machine B.I have checked the access rights of both servers, the access rights on directory wwwroot and inetpub.Everything seems the same.
Has anyone seen or know if anyone has done this? I think that ASP would be a great tool to do this with but I am curious if anyone has tried it and found it to be too hard or too burdensome to follow through with?
I'm running IIS5 on a Win2K server, and I want to have an ASP page that creates new users. I have some simple code to test this, but am getting a "500" error when I run it. The ASP looks like:
<%
strDomain ="Foo.com" strUser ="Foo1"
' Create new user with password Set oDomain = GetObject("WinNT://" & strDomain) Set oUser = oDomain.Create ("User", strUser) oUser.SetPassword = "password" oUser.SetInfo %>
Just for this testing, I've added IUSR_machinename to the Administrators group, but am still getting the 500 error.
I want to create a web page for my friends.(I have a subdomain and my server supports ASP scripts) It will contain a small basic guestbook.It must write the entries to a text file on the server.And i must be able to view the guestbook.
I am trying to create a menu with multiple tiers. I want to use the one menu as an include file throughout the site. Depending on what page you are on, I want the 2nd and third tiers to show up.
The rest just show the tier 1 links. I'm pretty sure this can be done in CSS, but the problem is that with a very big menu, I'd rather not have to load up the entire menu when it all won't be showing.
There for I figured I could create it in ASP. I could set some sort of parameter in the page so the menu include file would know what page I'm on, and then would only show and load the 2nd and 3rd tiers of that section. Is this possible? Code:
How can I simply save some data into a flat file (.txt) ? I've some data available and if the user clicks on a button it will save that data into the flat file... The user also need to define the directory (as in VB the common dialog box)...
I have created an asp page that pulls data from SQL server and displays on webpage in the form of Table and Chart.
I use OWC to generate Chart. It work find on my computer with Ms office 2000 installed, but when I upload my the page to my webserver, it doesn't work with the following error message:
006~ASP 0177~Server.CreateObject Failed~Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.
Does anyone know how to solve this problem?
P.S. On the production server, Office Web Component had already been installed. WSCript.CreateObject("OWC.Chart") works fine in my colleage's vbscript file.
tell me with some examples to how to use our own threads in asp pages. I tried to do it in usual way how we are suppose to use it in console and windows application. but the same thing will fail in asp pages. it give "nullreference" exception from unknown module.
I have Windows 2000 and recently included Internet Information Services. I then created a simple ASP file and clicked on it. The Open With dialog appears asking me to select a program. I copied an existing ASP file, test.ASP from another computer where it runs successfully. When I copied it to my computer it changed to test.ASP auto file. The other computer runs Windows XP. I am not sure is this is the issue. I verified the IIS is up and running on my computer. Is there anything that can be done to correct this?
I am using ASP code to create a Word document on the server and all is working except for one thing: I need to be able to insert page breaks. My existing style formatting for page breaks does not seem to insert a page break into the Word DOC. Suggestions? Code:
I would like to create a login into my very simple web site. I was hoping if somebody could give me some links for good websites or if somebody has a good example that i can work on. I also want to be able to allow users to join.