Create New User Using IIS/ASP

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.

View Replies


ADVERTISEMENT

How To Create A URL And When User Clicks It To Open A Excel Workbook

I want to place a Excel workbook on the web server and create a URL
link to it and when the user clicks on it to the URL/vbscript behind
it must launch Excel on the client and open the URL linked Excel
workbook automatically.

Can you please share the code HTMl & VB script snippet that can do
this.

View Replies View Related

Create Database And Create Table On One Form

Here's what my code looks like...

View Replies View Related

ADSI - Trying To Enable A User - The User Add Works Very Well

I have written an ASP.NET 2.0 application that uses Active Directory or ADAM
to manage account users - the site has a page that allows people to create an
account (much like any site). The page populates the AD with all the
information and the user account but I am unable to enable the account.
Microsoft has information on how to do that here -->
http://msdn.microsoft.com/library/d...ting_a_user.asp
(the sample is for Visual Basic) - and I am unable to complete the bottom
portion of the script. Can some one point me in the right direction - or can
you tell me how I can add a snippet of VBscript code to an ASP.NET page.

I am using the Active DS Type library - not sure why there are multiple ones
(System.DirectoryServices) but it is rather confusing - I seem to accomplish
one thing with one and another with the other (they did have trouble
co-existing however). Anyway my script works very well but I am not able to
access the properties required to enable the account.

Here is a simple version (no error checking) of the code.....

View Replies View Related

Mail User Info To User

how to go about setting up an asp script or flash action script to take the input from a user of his/her username and password then send an email to the user with the information. I am able to do all of this but the problem is that the users pc is the one sending the email. I want the server to send the email instead.

View Replies View Related

Create A PDF From ASP

Is there anyway to generate a PDF using ASP Scripting(VB Script).

View Replies View Related

Create Pdf

Does anybody knows a way (free of cost, code or dll) to generate pdf?

View Replies View Related

Create Url

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

but that doesn't work.

View Replies View Related

Create PDF

Is there a (simple) way to create a PDF file from ASP?

View Replies View Related

Cannot Create A Asp

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.

View Replies View Related

Create A TGP In ASP

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?

View Replies View Related

Create Object & DAO

how to create dao.tabledef object in asp:

I need to convert the following code into asp:
Dim tdf As DAO.TableDef
Dim db As DAO.Database
Dim fld As DAO.Field

Set db = OpenDatabase("C:Mydb.mdb")
Set tdf = db.TableDefs("Table1")
Set fld = tdf.CreateField("Field2", dbText, 10)
tdf.Fields.Append fld

View Replies View Related

Create Hostheader With ASP

Is there a way to create a host header in IIS with an ASP?

View Replies View Related

How Can I Create A Guestbook?

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.

View Replies View Related

Create ASP File On The Fly

I'd like to create ASP file on ther server side. Can I use
fso.createtextfile("c:folder est.asp")
Do I need to create a folder too?

View Replies View Related

Trying To Create A Menu With ASP

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:

View Replies View Related

Create Xml File With Asp

is it possible to create a xml file and save so that i can upload with asp?

View Replies View Related

Create Flowchart

i want to create flowchart/flowdiagram like msword.And the user type inside the rectangular what they want to do..

View Replies View Related

Create Txt File

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)...

Is this possible ???

View Replies View Related

OWC Component Cannot Be Create Using ASP

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.

View Replies View Related

Create An Use Threads

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.

View Replies View Related

Create New Folder

how can i create a new folder by using ASP??

View Replies View Related

Cannot Create ASP File

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?

View Replies View Related

Using ASP To Create DOC File ...

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:

View Replies View Related

Create A Jobsite

How to create a jobsite.Please help me.Is any information regarding how to proceed to create a jobsite

View Replies View Related

Create A Dynamic URL

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'm not sure how to approach this?

View Replies View Related

Create Table

I know I can Create Tables In a database with the CREATE TABLE sql statment, but I don't exactly know the syntax of the statment.

I want to add a table with a sertin feild that has a default value, is that possible?

The syntax I know is:

sql = "CREATE TABLE tablename(feildname FEILDTYPE,feildname FEILDTYPE...)"

Are there any other parameters that I can add to the statment?

View Replies View Related

How To Create Login?

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.

View Replies View Related

Create A Combo Box In ASP 3.0

I want to take a text box that is in a grid and make it a combo box: Here is what the first part of the HTML looks like now:

<input type="text" name="txt_SERVICE_SN"
onkeypress="filterNonNumeric()" size="5" maxlength="3"
style="text-align:right"
onchange="fieldEdited(this.parentNode.parentNode)">

I tried switching the "text" to be "combobox" and that doesn't work.

I saw some other code for other combo boxes (not in the grid) and saw something like this:

<select id="test2"></select>

This will make a combo box. But I don't know why. I can't see anything in there that uniquely identifies this as a combo box.

View Replies View Related

Create New Variable

is it possible to create a new variable from an array element eg:

myArray=array("a","b","c")

var myArray(2) = "hello" 'create a variable called 'b'

response.write(b) displays 'hello'

View Replies View Related

Create A Link

How would you go about creating a link on a desktop through an asp page.
You know the old trick click here to bookmark this page?. I need to take that a step further, i need a link that when clicked it creates a link on the desktop to that page.

View Replies View Related

Create Image

how to create image with asp ?

View Replies View Related

Create Ql File

I was wondering if it is possible to create an sql file using asp to back up a tables contents at all?basically I want to make a copy of each table we have on the server into an SQL file so we can move it elsewhere, the server techs want to charge us for the backup copy so I want to get around paying if possible.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved