Subdomain Creation
Is it possible for an ASP script to create a subdomain or does the hosting server the only privilege in creating one?
View RepliesIs it possible for an ASP script to create a subdomain or does the hosting server the only privilege in creating one?
View RepliesI am currently maintaining a website(ASP) in which I want to add a sub domain functionality to it that means. currently I am using like
http://www.mysite.com/someDomain
but I want it to be like
http://someDomain.mysite.com
I can do it manually by logging in to Control Panel, but i want it to be done automatically as soon as User Registers.
I have a form that asks the website visitor for the name of the subdomain. I m storing that form variable value in a file. What I m looking for is how to create a subdomain of this name using ASP script?
Example: Suppose the website visitor enters "abc" in the form variable. After the form is submited and validated, I want to create a subdomain as "abc.mysite.com" using ASP Script.
I am developing a site for my employer in ASP, and we host our own servers. The company sells direct to people in the US, and we have authorized resellers sell to international customers. This site applies a customized header and footer (as include files) based on information collected in a cookie.
The point of these customized headers and footers is so that our authorized resellers can have their company info on our product pages. So as long as a visitor starts at a customized "launching page" for a particular reseller, the cookie will have that reseller's headers and footers on every page of our site. This all works fine.
My problem is the url in the browser address bar. It will still say "www.mycompany.com/whateverpage.asp", regardless of what headers and footers are applied. We want all references to "mycompany" erased when customers are looking at our authorized resellers' pages. My employer wants it to have a different url in the address bar that relates to the reseller.
What if we went the subdomain route, registered a more generic domain, and made subdomains off that domain for the resellers? Like, www.widgets.com with subdomains like www.acme.widgets.com? I know this is possible, but how then would I apply these new subdomain urls in the browser windows for pages that are on the www.mycompany.com site?
I have a complete website running in a directory on my webserver. Now i want to webforward an subdomein to this directory. When i directly open the site on my webserver it runs perfect
but the problem is that the sessions i save for the login are empty when i reach them through the subdomain. The problem only exists in ie, in forefox it works perfect.
I am looking for way to connect to database that is in another subdomain
of same hosting machine. The location of file DB here:
http://name1.syte.com
I am here:
http://name2.syte.com
The database is MS Access, I don't know if I can to connect somehow without
odbc access using regular syntax like:
connection="Provider=Microsoft.Jet.OLEDB.4.0; Data Source ....
I manage a site with a normal address like: www.mysite.com
I'm using a cookie to store nicks of my users, with a code like this:
----
Response.Cookies("mycookie").Expires = #January 1, 2030#
Response.Cookies("mycookie").Path = ""
Response.Cookies("mycookie").Secure = FALSE
Response.Cookies("mycookie")("nick") = nick
----
and I'm deleting it, if a user wants so, with:
----
Response.Cookies("mycookie").Expires = #January 1, 2003#
Response.Cookies("mycookie").Path = ""
Response.Cookies("mycookie").Secure = FALSE
Response.Cookies("mycookie")("nick") = ""
Response.Cookies("mycookie") = ""
----
(I know, there's too much stuff in the delete procedure!)
Now I'm going to open some new sections of my site, with subdomain
adresses, like search.mysite.com, shop.mysite.com... and I need that
cookie authentication for the main (www) address is working also in
these subdomains.
I red on the Internet that with the DOMAIN property, I can set my
cookie to make it work for every subdomain, with something like:
----
Response.cookies("mycookie").domain = ".mysite.com"
----
.... and it works!
My problem is when I try to DELETE it: after I set a cookie with
..domain property, it seems to become "read only": any my attempt to
delete (or modify) it seems to be ignored.
Results are the same when I try to write it from the subdomain that
created it (www), or when I try from the "chief" address (mysite.com,
without any subdomain).
Where's my mistake?
im new to the rss "movement" and would like to implement it on
one of my companies internal sites. we have a site that allows users to
leave messages for other users based on email address. so for example i can
visit the site and type in my email address and if any messages are waiting
they will be displayed. the page uses a GET to fetch the messages based on
email address so the URL looks like this:
http://mysite.com?emailaddress=my@address.com
since the address is passed in the URL i imagine ill need an rss feed that
does the same kind of thing... can anyone point me in the right direction or
get me started with an example? im ot even sure if this is something that
can be done simply with some ASP object, or if ill have to actually write
out some XML at some point.
I would like to know how to create PDF file using ASP. Can someone help me for the same
View Replies View RelatedThe problem is that I cannot create an object at the Application level
using GLOBAL.ASA.
However, the aftfam object works perfectly well when created on an ASP page
using Server.createobject. It outputs "true556" which is expected.
The problems does not seem to be syntax since the reference to the
AUtils object seems to work just fine.
Is there some magic difference in my VB code that differs depending on how
I create the object?
I'm creating a folder...no problem there:
dim fso
set fso = Server.CreateObject("Scripting.FileSystemObject")
fso.CreateFolder Server.mapPath("pictureskickoff")
but...how do I check if there allready is a folder there with the same name before creating one?
Looking for code that can help me to create excel sheet in client side (java script)
View Replies View Relatedif it is possible to have a web page that can be created into a pdf via a click of a button, similar to the save as pdf option. Is this possible?
View Replies View RelatedI've been developing a dynamic content management system that you can hook up to any database (with minimal changes) and manage any of it's data. Ultimately, I'm looking to compile the scripts then sell them compiled so nobody can take the source code. Anyway, I'm not sure how to go about making a component out of these scripts and if anybody is willing to do this for me, I can either compensate you with money or a free copy of the software. A link to a working version of it can be found at http://adminscreens.libdev.com/?cDB=dsnPredig. Use the demo login (demo/demo).
If nobody knows how to actually compile the scripts, I guess the next best thing would be to point me in a direction of a company or whatever that can get it done for me. I've tried using ASP2DLL and various other articles with little luck. All of the VB code is in a single include file.
I have an application I am working on that uses "compiled" asp pages. Once the asp pages are done, they are moved into a VB6 dll to be Response.Written from there. This work great, and results in keeping our code safe at client sites. Currently this works great here and at most client sites. I have one client who is having intermittent problems with this setup Code:
View Replies View Relatedi want to create a page that will accept any rs of data and create a standard excell page. So i can have a bunch of report pages that any number of columns and and number of rows and submit that rs to my xls creation page? I hope i'm explaining this right.
my first question is how do i pass over an entire rs to my xls page? second how do i create a xls creation page that is open ended on the formatting side of it.
Anyone know of a good tool to enable regular (non developers) to build simple forms which when built provide functionality to save the data from the form to a database and email user(s) with the results.
I'm looking for something flexible enough to allow users to build these forms without knowing anything about the underlying database being used.
I am trying to generate ASP code on the fly as I want to be able to control the code from the database and am running a problem.
When I try this (simplified example of what I have but it conveys the problem):
<%
replacetext = "response.write ""blah"""
response.write "<%" & replacetext & "%>"
%>
I get an empty page with <%response.write "blah"%> in the source instead
of what I want: a page that has 'blah' on it.
Is there any trick behind this?
i'm getting a bit cought up with the ASP for a poll creation page i am trying to do.
i am trying to get it so that it will display a varying number of boxes depending on how many options there will be - have it so that it displays the first 2 (the minimum options) and then the other input form elements will be added as needed i'm also having a bit of trouble trying to get the numbers to update with the onchange but that part doesnt feel like its the most challenging - heres what i have so far: Code:
Can ASP VB create dynamic images of text? (ie. an image of a line of text)
If so does anyone have any examples I could take a look at please.
I need to find a way to pull the file creation time from a file. I have a webcam FTP a file every 5 min. That pic does not have the time and date. I would like to find out how to pull the creation time from the file.
View Replies View RelatedI have 3 fields on a form, date, month, year. I need to add all these values into one full date field but reversed (20051031) - notice UK format.I've just got off the phone to a programmer friend who does not use ASP. He described possible using something like this:
substr(dbsearchdate,1,4 = Request.Form("txtsearchYear"))
substr(dbsearchdate,5,2 = Request.Form("txtsearchMonth"))
substr(dbsearchdate,7,2 = Request.Form("txtsearchDate"))
However this doesn't work.
I would like to know what the comands/syntax is for creating a table with fields in an Access database using ASP? I've done this a few years ago with visual basic, but haven't been able to find anything for ASP on the internet.
View Replies View RelatedI am trying to build a dynamic form based on user input.
Here is the story i want a user to select how many times he/she wants to add a product and then depending on the number selected draw x number of input boxes for product name,price etc.
Then pass this to another page, store in an array and add all this to a database!
how to create tables when the user submits the tablename in a form i know the create command.
but how to execute it in asp when the tablename is stored in a string using the string while creating tables is not happening for me.
also can i use the same way of using the string to add or drop column( drop column only after specifying all values in the column to be null ).
I am developing a automated website creation process for our members. They are being walked through a series of pages that gather input and make template selections etc... The problem I have is when the scripts execute I get permission denied on the section of code that connects to IIS and creates the new site.
The only way around this so far is to set IIS directory security (on the folder that has the scripts) to log in automatically with a domain admin account. I of course do not want that to be the case. Here is the line of code that bombs out.
set objservice = getobject("IIS://venus/w3svc")
The script pages are located on the same server. I have tried using a local admin account (not good either) with no luck.
By the time this line is run the directory has been created the appropriate files copied over and database has been filled with appropriate info. This seems to be my last issue to overcome.
Can anyone point me in the right direction for dealing with a dynamically created table of shopping cart items? Each row (or Item) has a column where the user can change the quantity. Is there an easy way to grab and use these changed values when they hit the form submit button?
Or, do I need to bite the bullet and write code that filters through the form fields named "quantity1," "quantity2," "quantity3," etc... And then determine which one goes with which cart item?
Already have an asp page showing results from an access database table (supplies)
Need to know way select items from this list w/o the need of retyping to another form.
Also would like to be able to insert order_date automatically to another access table (orders).
Is anyone having problems with formatting text using the ASPPDF component? I am having problems when it fills in the pdf form from data entered through a form. For some reason it doesn't allow me to format the text or resize it...
View Replies View RelatedI am trying to create a form where a user has to enter information such as username, password, last name, etc...
My current code is to look at the recordset to find any existing username, and if not found, it will add the new username.
At what part of the page do I validate the password so I can determine if the user enter the password correctly the second time (to determine the password was entered twice correctly)?
Here are my pseudo codes: ....
I have recently been trying to setup a webserver running phpBB and an automatic forum creation script so that visitors to my site could signup for their own free forum hosted on my website.However, I HATE PHP! It just isn't working for me, despite the fact I need to configure PHP, Install several various files, change many many .ini files httpd config files etc.. oh yeah I forgot I needed to run it on Apache on Server 2003.
Anyway, basically I am looking for a way I can remotely host this on Server 2003 with IIS and ANY ASP forum software out there. I am not an experienced ASP programmer so would prefer a ready made script.I am desperate to get this working - I have barely left my computer for three days trying to play around with stupid PHP and now I determined. find / make an ASP Forum Creation Script.
I have the following code (part of a larger asp page) to create the user input form for creating user accounts in AD.
What would be nice is to have the radio control (in red) to be created as the result of interrogating AD to retrieve a list of containers (we have a container per office location) so that only relevant controls are available, and if a new office is opened or they shut one down, the form can stay the same. Is there a way to do this? Code:
if there exists a query to erase/drop tables from an access table (on a asp script) older than X creation date.
View Replies View Related