|
mpapeo wrote:
strSQL = "SELECT Table1.studentid, Table1.password FROM Table1 WHERE studentid= &studentid& "AND" password = &password& "
sure, obviously quotes are on wrong places. IIRC symbol & is in VB used for string concatenation merging. It should be like:
strSQL = "SELECT Table1.studentid, Table1.password FROM Table1 WHERE studentid=" &studentid& "AND password = "+&password&
However, this code is still far from being perfect. Read Colin's article about SQL Injection[^]
best regards,
David 'DNH' Nohejl
Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
|
I want to put my DLLs in the application program directory but when I do that the IIS does not find them. The only place that I can place them is in \WINDOWS\SYSTEM32. I tried updating the PATH environment variable under the administrators account but that didn't do the trick, probably because IIS uses a different userid.
Any ideas on how to update this?
Thank you,
Glenn
|
|
|
|
|
Hi,
I'm writing a program in C# using .NET 2003 on IIS 6.0 and Windows/2003, that is calling some legacy code written in a .DLL. What I am seeing happen is the output files it's creating is in C:\WINDOWS\system32\inetsrv.
I do not want the files in this directory but in the application directory. I tried modifying the legacy code to specify a path but it choices to ignore it. How do I change the default directory for this application only.
Thank you,
Glenn
|
|
|
|
|
hello,
is it possibile to make a peer to peer application on pocket pc? if yes, is there any useful links or code?
Thanks in Advance
Mahmoud Manasrah
|
|
|
|
|
well i just want to show an animated gif while page is ulpoaading a file , i hav use the "visibility" of Style for a layer but the gif doesnt animate after clicking submit , any one hav any idea wats goin wrong!!! i m using PHP as server side n using 'file' field for upload.
|
|
|
|
|
if you just put the gif on a page, does it animate -- i.e. is the gif itself the problem?
have you got an onclick event on your submit button?
--
Raoul Snyman
Saturn Laboratories
e-mail: raoul.snyman@saturnlaboratories.co.za
web: http://www.saturnlaboratories.co.za/
blog: http://blog.saturnlaboratories.co.za/
linux user: #333298
|
|
|
|
|
there is no problem with gif itself, its workin fine if used on an open page, yes i hav onclick event on submit button , in the handler i set the visibility of gif to visible, but its not working , plz help
Knowledge is Power
|
|
|
|
|
I'm new to JS, but I saw the sample code for the panelbar and it was something I've been looking for. It works ok locally, but I took the same code and threw it up on my website and it doesn't work there. In my local editor, I get an "error on line 20, object expected" on the following line:
var objTmp;
I don't know what to do with it. Currently, it's at:
http://www.compass-i.com/XPPanelbar/PanelBar.htm
Thanks
|
|
|
|
|
hi there,
it looks like you forgot to upload "/js" folder and it's content to website....
David
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
I did upload js, css, and images, and their contents. Any other ideas?
|
|
|
|
|
no, you uploaded it to Js foder, and you referenced it as js folder in your markup. Your server is case sensitive. Rename folder or change your markup, then it should be ok.
David
Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
|
Hi,my query is this..shld enter the username (entering only the characters not even blankspaces,validation shld be done)if i enter a number in the text box it shld display an popup..and upon clicking hte "click" button i shld get a next page with a question like
Bluewhale is the world's largest animal with 2 radio buttons "yes" and "No" when i click anyof these a popup window shld appear as "thanks" and the window shld automatically close.. the "username" and whether he/she clicked "yes" or "No" shld be stored in a database..
How can i do this using Javascript..which database shld i select for easy retrival?
Plzz send the query as soon as possible..
THanks
BhuvanaSathish
|
|
|
|
|
I have a form in an ISO encoded page. I want the characters in one of the form fields to be encoded in different method. Is it possible and how? Thanks so much.
|
|
|
|
|
hi,
HTML 4.01 spec[^] doesn't seem to support "per field" encoding, however you can set encoding for content of input type="file" .
does it help?
Out of curiosity, what is purpose of having one field encoded differently?
best regards,
David 'DNH' Nohejl
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
I want answers from different regions for questions that I post on my page. These answers will be feeded into database for statistics. The database doesn't support unicode.
How does changing the field type to file help?
|
|
|
|
|
Anonymous wrote:
How does changing the field type to file help?
It doesn't. It seems to be only case when you can set some information about content. Well you say DB doesn't support unicode... Does back-end support unicode? You can send Unicode-encoded form to server, and there convert encodings for different values and then insert them into DB. Is it possible?
David
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
:(i want to automatically update a file on an internet server with a file i have local,on my PC.(lets say once a week-without copying it with ftp).
i know i must use port 80,but thats all i know.can anyone please help me with some code how to do it or any ideeas?
thank you very much.
serban
|
|
|
|
|
You will need to do some type of backend upload such as asp_upload or cgi upload or something like that. What type of server are you working with (os, etc)?
|
|
|
|
|
I am working on developing a small windows program that I plan on distributing to various users. I am trying to avoid piracy of this product and have envisioned posting the program on a web server where they can go to a particular page and enter a one time code in order to start the installation of the program. I do not want the users to be able to download the setup file, but want them to be able to run the setup directly from the server which would install the necessary .exe .txt, and .mdb files on their local computer (some of which will be buried and necessary for the program to run, to assist in preventing mass file sharing.) While I know that they could of course just copy the files from their computer to another, I want to at least make it more difficult than them sending out the setup file to other users. I can handle the web setup with the one time code for download, but am not sure how to just have the setup.msi file run and begin the installation to their local machine. Most of the dialog boxes usually offer an option to Open, Save, or Cancel. Is there a way to eliminate the ability to save the setup file to the user's machine and cause the setup to run from the server?
Thanks
Marc
|
|
|
|
|
When I try the webservice sample code "hello world" in the Visual studio .net 2003, I seem always have problem on authetication or authoraztion. I just remove the "'" according to the explanation in the comment to change serveral line of comment into code. and Press F5 to debug it . or try http://localhost/webservice1/webservice1.asmx in the brower.
At first, I got an error "Access denied". I thought it may be ananymous access from ASPNET account or IUSR-XXX need administrator authorization. I put them into administrator group. But it does not work. I also put debugger users group and VS developer groups have administrator authorization. It does not work. I got some other server-side error as "The Web server reported the following error when attempting to create or open the Web project located at the following URL". I also change some setting on dedault web site of IIS as application protection to Low and put ASPNET account or IUSR-XXX, debugger users group and VS developer groups all have administrator authorization . But I do not know why. As the explanation in the help or book, it should not be so difficult.
My environment: window 2000 server, IIS 5.0 Visual studio .Net 2003.
My question is for the simpliest webservice. If i only try in the IDE, what
do I have to set?
My email address:Bretthlin@hotmail.com or linhchnn@yahoo.ca
llllhhhh
|
|
|
|
|
Could anybody help me...
Im trying to get the time +23 hours i've got this so far but i don't need the date just need the time
<%<br />
<br />
'Get the current date/time<br />
Dim dtNow<br />
dtNow = Now()<br />
<br />
'Will display the date/time 23 hours from now<br />
Response.Write DateAdd("h", 23, dtNow) <br />
%>
Outputs
10/03/2005 16:11:43
|
|
|
|
|
hi,
you can format date with DateTime.ToString(string)[^] method.
best regards,
David 'DNH' Nohejl
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
you have to use format function or formatting with ToString function
i.e
Response.write DateAdd("h",23,dtNow).toString("MM-dd-yyyy")
you can use whatever you want inside the toString to format your date, the toString function interpret the format like this:
MM: shows the month in numbers
MMM: shows the month name
dd: show the day , two numbers
yyyy: show the year of four digit
there are other ways of formatting, see Microsoft documentation for Date.toString function
|
|
|
|
|
I am trying to get all http requests to IIS 6 automatically redirected to https. I have the following code in the error 403.4 htm file.
self.location = "https://aa.autoweb.net "
One issue I am having is that I receive the login page when I http, then I redirect to the same page thru https and am required to login again.
I would also like to use server variables so a request to a sub-site wouls not redirect to the root.
Any help would be greatly appreciated!
|
|
|
|
|
Hi, MSIE does not support server-push (e.g. a HTML page that will be completlty updated with new content, using MIME multipart/mixed).
I wonder what alternatives there are... when you want to trigger a refresh at a specific time and not in regular intervalls. Regular refresh via a META refresh is not an alternative as it for example uses too much traffic -or- can come unwanted in the middle of something. Right now I am using JavaScript to tell Microsoft's MSIE to fetch the page again, unfortunately this needs JavaScript enabled.
Other browsers (read: Firefox/Mozilla) supports true server push, where the web server can decide when it's time to refresh the content on the web browser.
Thanks, Moak
|
|
|
|