|
Have you stopped and restarted IIS?
The connection string is most likely been cached.
Cheers,
Andy
|
|
|
|
|
how do I check if by javascript code if the
activeX on the clients browser is enabled.
thank you
|
|
|
|
|
Hello,
My company have an website, but for security policy(auditing issue), anyone want to see the content of the website include words and images, must have an account. For this issue, I want to use normal asp authentication, but it can't protect the images if someone know the url of this image, he can load this image directly. So I use Windows 2000 Server account to do this, but it let my work overload, too many user, too many group, too many account revoke wait to reset, etc, and unfortunately, this server crash last week, I reinstall the OS and environment in 2 hours, and rebuild all the account 6 hours, call all user to tell them that they have a new passowrd 1 day. I want have a new solution ....
I have 2 idea about this, but still not have no idea how to do.
One is build a share account, only this account can access the protect directory, and all the user's ID and password and other information put in the database(MS SQL or MySQL or others), and when user logon, find users ID and password, if match, when user load the protect page or image, use the share account to logon automatically by ASP at server side, user never know the share account name and password, or only know the ID. About this, I don't how to logon server at background ???
Another idea is an stupid idea, just use some user management component, or use Microsoft ADSI to manage the user accounts.
Experts, please help me, or you have other solution, please tell me ....
Thanks,
Regards
Vistac Wu
|
|
|
|
|
Move your images directory out of the inetpub...
|
|
|
|
|
hi folks
i am looking for a asp code which sends a table from the database as a mail automatically daily at certain time say for ex.7 pm daily.
is there any one who can help this out please respond back asap
thanking you in advance
bsr
|
|
|
|
|
I'm not sure ASP would be the best way of doing this. You would probably be better writing a app which can be scheduled to run by the at NT schedule command.
What kind of database is the table in? SQL,Oracle,Access?
What mail server are you intended to use to send the mail?
Michael
|
|
|
|
|
i am using the database MSACCESS and the smtp mail server
so do i need to write a executable application which runs as a service ???
|
|
|
|
|
Actually it is possible to use an ASP page to do this. (maybe not the best solution, but just for fun here is how to do it)
The e-mail portion is simple, using either CDONTS or one of the many e-mail components out there (eg ASPMail). Then you would just be building the body of the message from the database table via the usual ADO tapdance.
The tricky bit is getting it to run regularly, as ASP is not "executable" as such, it must be interpreted through a web server. This allows for no regular scheduling, as ASP exits memory upon completion. I did use a couple of ASP scripts to do some automated tasks just for the fun of it once though. (ok ok, I'm a geek )
The way you get it to execute regularly is by using task scheduler to execute a command line of "iexplore [insert page url here]" without the quotes. You will need to make sure that iexplore.exe is in your path or specify the path to it when you call it.
I would just use the server's task scheduler to do it. Or if it is a hosted site on a remote machine, you can use the task scheduler on your own machine, just remember that your machine will have to be running to call the page.
Jason Jystad
VP in charge of Goofy Quotations
Cito Technologies
www.citotech.net
>------------------------------------------------<
"Luckily," he went on, "you have come to exactly the right place with your interesting problem, for there is no such word as 'impossible' in my dictionary. In fact," he added, brandishing the abused book, "everything between 'herring' and 'marmalade' seems to be missing."
-- Dirk Gently (Douglas Adams)
>------------------------------------------------<
|
|
|
|
|
First Question is does anyone know of a function to find the size of a window(in pixels)?
Second, How can use a javascript variable to determine the size of an object, such as a picture or an ActiveX control?
What I am trying to do is detect when the IE window is resized, then I want to resize an ActiveX control to the size of the window.
Any help will be GREATLY appreciated.
Thanks,
Aaron Gillmann
|
|
|
|
|
Just set the width and height properties of the object tag for you active x control to be 100% then when the window resizes the object will be the same size as the window.
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
|
I have a need from an ASP page, to post XML data on another site collected from my ASP based form. Can I use XMLhttp object from ASP to accomplish this? Is there a short sample available somewhere?
|
|
|
|
|
Yes, here is an example of the code needed. Note the use of the ServerXMLHTTP rather than the XMLHTTP usually used (see ) although using IIS5.0 you can use XMLHTTP but put your application as High (Isolated).
Example
Set oIFX = Server.CreateObject("MSXML2.ServerXMLHTTP")
Set oXML = Server.CreateObject("Microsoft.XMLDOM")
' Build up XML document from your data (form)
xmlRequest = "<query>" &vbCr
xmlRequest = xmlRequest & "<product>XYZ"
xmlRequest = xmlRequest & "<client>XYZ Web Client"
xmlRequest = xmlRequest & "<version>1.0"
xmlRequest = xmlRequest & "<savexml>FALSE"
xmlRequest = xmlRequest & "<command>PLT"
xmlRequest = xmlRequest & "<plt>" & strValue & ""
xmlRequest = xmlRequest & ""
' Load in the XML created
oXML.loadXML(xmlRequest)
' Where we sending this??
Call oIFX.open("POST", "http://.../xyz_query.asp", false)
' And the data we want to send...
Call oIFX.send(oXML)
Hope this helps,
Andy
|
|
|
|
|
I have a text area where I will enter some text I want to retrieve the text in same format that I am entering. Can anyone help me?
Thanks in Advance
Bhagya
|
|
|
|
|
What do you mean with the same format?
If you mean that linebreaks are not shown on another asp page, just replace \r\n with <br>
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
|
Wouldn't the quick solution be to check which kind of element you get, and if it's a TD get the firstChild.
Like:
cElement=window.event.srcElement;
if (cElement.tagName=="TD" && cElement.firstChild)
{
cElement=cElement.firstChild;
}
- Mort
|
|
|
|
|
Forgive me if I am repeating myself, I've asked something similar before.
Original question: Setting a session variable on one page has no effect on another page.
I found a clue in that the SessionID changes between each pages. It would make sense then that session variables from one would not be available to the other. The question now is how do I keep the session between pages. Bearing in mind that I don't have complete control over the web server this site is being hosted on. The server is a W2K Server running IIS 5.0
|
|
|
|
|
Duh, I found the problem (I think). On my test browser I had cookies disabled. Once I accepted cookies the variable was available to all pages.
There is another question this raises though. In my gloabal.asa I created an instance of ADODB.Connection and set a Session variable to hold this.
<br />
var Conn = null;<br />
vat ID = 0;<br />
<br />
function Session_OnStart()<br />
{<br />
C = Server.CreateObject("ADODB.Connection");<br />
C.Open(...)<br />
Session("Conn") = C;<br />
Session("ID") = 0;<br />
}<br />
With cookies disabled I could not persist the ID variable between pages, yet the Conn object was usable between pages.
Can anyone explain this?
|
|
|
|
|
has anyone got an app that will translate javascript into c or vb. a guide will do.
|
|
|
|
|
I vaguely remember seeing something one day about changing the toolbar controls on IE with Java script or VB script from an HTML page. I know that will mean locking oneself into IE. If anyone knows how I would be interesting in hearing from you.
Happy programming!!
|
|
|
|
|
Not a full answer this but the changes are done using CSS and not JavaScript or VBScript.
Have a look at this article on CNET Builder about how to do it.
Happy scripting
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
"We would accomplish many more things if we did not think of them as impossible."
- Chretien Malesherbes
|
|
|
|
|
There is a way to do it with JavaScript too.
See the article at http://www.dynamicdrive.com/dynamicindex11/scrolleffect.htm
Amusing effect.
Have fun!
Jason Jystad
Cito Technologies
www.citotech.net
>------------------------------------------------<
"Luckily," he went on, "you have come to exactly the right place with your interesting problem, for there is no such word as 'impossible' in my dictionary. In fact," he added, brandishing the abused book, "everything between 'herring' and 'marmalade' seems to be missing."
-- Dirk Gently (Douglas Adams)
>------------------------------------------------<
|
|
|
|
|
Hi all,
i am experiencing a tricky problem with Internet Explorer.
To call the function execCommand("FormatBlock" [, bUserInterface] [, vValue]) I need to know the possible vValues, which are different in each language edition!!! According to MSDN these can be retrieved by:
"Call IOleCommandTarget::Exec with the IDM_GETBLOCKFMTS Command ID to obtain the current list of available block formatting commands that can be passed with the FormatBlock Command ID." (http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/constants/FormatBlock.asp)
I know JavaScript but this is absolutely beyond my (current) spheres... Please help me, I am willing to learn.
Thanks a lot!
Regards,
Dominik
|
|
|
|
|
Currently we have an online back-end Admin Suite for our site. It allows non-HTML coders to edit content on the site with ease. The control we are using is the built in HTML editor control that comes with Internet Explorer. It is pretty easy but we are finding it has some limitations i.e. Netscape support is lacking and the code it produces is not the best.
I was wondering if anyone had an alternative control or any alternative ideas?
thanks
regards,
Paul Watson
Cape Town, South Africa
e: paulmwatson@email.com
w: vergen.org
|
|
|
|
|
the code it produces is not the best
If you want finer control over the HTML, create it yourself, using the contenteditable attribute in IE 5.5 and above. Eg: <div contenteditable="true">Some editable text</div>
You can then use stuff like innerHTML do write your own HTML.
If you are using IE 5.5 or higher, you can edit this text.
What's Netscape?
"A surprise to be sure, but a welcome one."
- Senator Palpatine
|
|
|
|