|
I have one ISAPI dll developed in Delphi 5.0. I want to debug that dll. For that matter I am running the service interactively that means as a process. To do this i have done all the setings like,
Adding domain user to local policies User rights- Act as a part of operaing system, Generate Security audits. Log on locally etc.
Also i have stopped the service W3svc, ftp, smtp and iisadmin and have made thier mode manual. I was able to make the inetinfo as a process. Then i have set the run parametrs of my application as -e W3Svc and i am running inetinfo.exe. But while degugging inetinfo starts, but it fails to start w3svc service and gives error - "The server was unable to logon the Windows NT account 'IUSR_PUN033' due to the following
error: A required privilege is not held by the client. The data is the error code.
For additional information specific to this message please visit the Microsoft Online
Support site located at: http://www.microsoft.com/contentredirect.asp. "
I am using OS - Win 2000 and IIS 5.0. can anybody help me in this. I don't know where I am going wrong.
|
|
|
|
|
Can’t get help how to make a client of my website download and run my ActiveX. I’ve created .inf (and an .ocx) files and created a .cab-file but the installation and registration doesn’t seems to work properly. I get the ”Unknown” status on an ActiveX in the Downloaded Program Files in my WINdir.
When I go into ”http://localhost/ WebSIMx/S/SIMx.html” it I get the prompt -> Yes, but the screen becomes empty.
My SIMx.html look like this:
<object id="SIMx" width="800" height="600
" classid="CLSID:8430C4BC-8DC1-4987-95AB-9ED7913CA4EC"
="" codebase="http://localhost/WebSIMx/S/SIMx.CAB#version=1,0,0,2">
I have ALL settings ”Enable” in my Internet Explorer.
How can I check there is no version-error?
Very pleased for help - APe
.....and justice for all
APe
|
|
|
|
|
My previous posting did not come out correctly. But you should be able to make out what is going on there...
Brendan
|
|
|
|
|
I need an image file to be validated, before it get uploaded. It must just check if the file is greater than a certain size, and that it is JPEG. I do this using the FSO. Is this the best way to do it, and if so, am I doing it correctly. Attached is a section of my javascript function which is in my global.js file and my ASP file where a user can select an image.
JAVASCRIPT FUNCTION:
function checkFileDimensions(intFileSize) {
var objFSO = new ActiveXObject("Scripting.FileSystemObject");
var strPath = document.frmImageUpload.txtFile.value;
var strFileType = "JPEG Image"
var objFile = objFSO.GetFile(strPath);
/* Validate file dimensions */
if (objFile.Type != strFileType) {
alert("Invalid File Type - Please re-save your image in JPEG format.");
return false;
}
else if (objFile.Size > intFileSize) {
alert("Invalid File Size - Please re-save your image to less that 10 KB.");
return false;
}
else
return true;
}
ASP FILE:
<%@ LANGUAGE=VBScript %>
<title>Agent Image Upload
Agent Image Upload
Select an image to upload.
NOTE: the following specifications apply:
1. File type: must be JPEG
2. File size: not bigger that 10 KB
3. Image width in pixles: 90
4. Max image height in pixles: 120
If you are not sure how to format your images, please contact us
on (021) 790-6216
">
| If you cancel this operation, please remember to un-check the
tick box on the agent page.
|
|
I hope someone can help. Thanks
BRENDAN
|
|
|
|
|
Client side validation is easy to get around.
Also Doesn't FSO require end users to click a 'Always trust Microsoft' check box if they haven't already???
I'd check it on the server side of things...
Cheers
How do I print my voice mail?
|
|
|
|
|
Hi All,
I am able to upload the files to the SQL Server 2000 using SA FileUp Component. Now I would like to view the uploaded file from the client machine and also I want to provide the users to save that uploaded file in their local machine. I had tried the following piece of code to do that, but no luck so far. It is writing the content in browser window with some invalid characters except for the text file. Could any of you please help me with this?
Dim MSCS, Rs, strSQL
Set MSCS= Server.CreateObject("ADODB.Connection")
MSCS.ConnectionTimeout = 90
MSCS.Open "Provider=SQLOLEDB;data Source=server_name;Initial Catalog=db_name;User Id=user_id;Password=pwd"
Set Rs = Server.CreateObject ("ADODB.Recordset")
'strSQL = "SELECT * FROM tbl_test_upload WHERE file_id = " & request("id")
Rs.Open strSQL, MSCS, 2, 3
Response.ContentType = Rs("file_type")
Response.AddHeader "Content-Disposition", "filename=" & Rs("file_name")
Response.BinaryWrite Rs("file_data")
Rs.close
Thanks.
vijay
|
|
|
|
|
you also need to change the content type to image/bmp or whatever extension.
I think you'll find a complete code for this in the asp articles in CP.
|
|
|
|
|
html text wrapping
Hi all.
here is one specific problem that my project is facing.
where there is a big text that is to be displayed.
i just wanted to wrap the data.
i am not able wrap the data, giving size for table and td tag etc.
any suggestions please..
0
<title> New Document
thisissampletextwhichiwanttolimittomultiplerowsbut
iamnotableto |
|
thisissampletextwhichiwanttolimittomultiplerowsbut
iamnotableto |
|
Harinath
Cybernet software systems pvt. ltd.
3, Bishop wallers avenue east,
mylapore
chennai
India-600004
|
|
|
|
|
Have you tried adding a <BR> tag where you want the line to break? If you want it to appear multilined, but centered, you can also add align=center to the <TD> tags.
I've felt much better since I gave up hope.
|
|
|
|
|
no actually i am reading the data from DB.
is it not possible through html?
else i have to introduce spaces or in the middle in my session bean while setting the data.
this is a common issue i am having. this is present in multiple places. and not all the fields take this much size.
thats y i was in confusion. if there is no way in html, then i will introduce spaces or br tag in the middle
|
|
|
|
|
Hey
There is an html tag: <TEXTAREA WRAP=OFF|HARD|SOFT></TEXTAREA>
Not sure if this is what u lookin for??
Anyway Later
|
|
|
|
|
yes, its working fine.
thank u.
Harinath
Cybernet software systems pvt. ltd.
3, Bishop wallers avenue east,
mylapore
chennai
India-600004
|
|
|
|
|
I am unable to send the http request using JavaScript in Opera browser. I could not find the IE equivalent of ActiveXObject("Microsoft.XmlHttp") or XMLHttpRequest() in Netscape to create an object for sending http request in Opera browser.
I appreciate any help in this regard.
MurthyPL
|
|
|
|
|
This is from the Opera website:
ActiveX is a Windows component technique used to run arbitrary code in other programs (such as a browser). While this is a very powerful programming technique, it is also a potential security nightmare as access is given to the operating system as well as the browser itself. Even with Microsoft's security model, a large number of Internet Explorer's security holes have been related to ActiveX. Opera does not support ActiveX and consequently avoids these problems. It does support Netscape type plug-ins (NP4). This is a much smaller, but not entirely negligible security risk. While the data a Netscape plug-in can access from Opera is strictly limited, it is still a full-fledged program and can as such interact with your system. Any restrictions you may have for downloading or installing other programs should therefore apply to plug-ins as well.
Also, XMLHttpRequest is a Netscape/Mozilla specific extension to JavaScript. It seems that Opera only supports ECMA standard.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
Using C#.NET I pick the access time of a user from an SQL database when he logs in. If the user uses up his access time the database needs to be updated without clicking any button, but I'm not able to call the fucntion done with C# in the codebehind from JavaScript used to implement count-down timer. Can someone help me? If it's not possible to call the function in the codebehind how can I write the same function in JavaScript or VBScript? Many thanks.
Ebi
|
|
|
|
|
I would like to post data into an Access DB from a form that is in an Email message...
Is it possible to do this? If so what would the connection string be?
I use connection strings like this for most of connections that are done locally on the server itself...
connString = "Provider=Microsoft.Jet.OLEDB.4.0;Data source=C:\inetpub\wwwroot\store.mdb;"
so for a remote post into the db would this work?
connString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=http://www.SomeDomainName.com/images/store.mdb;"
Any help would be greatly appreciated.
Seth
|
|
|
|
|
Hi, just wanting to try n put together a little script for dealing with temporary internet files. My question is, is there a way to modify the index.dat file via vbscript?
|
|
|
|
|
Sounds strange, but I don't think you can access to the index.dat file from the user, without alert the system. The unique access via vbscript, it's with FileSystem Object, and it's denied from a Internet page.
----
hxxbin
|
|
|
|
|
Hi, all
here is a case which is hurting me for the last couple of days..
the following html code is a part of my project.
there are some buttons in the form.
when i click "addproduct" it will pop up a child window
but the problem is.
when we close the window using X (close) button of the browser window,
after that clicking on other button "update status" is again poping up one more window.
actually i am not writing any code to pop up window for this button.
y it is happening..
i dont want this behavior.
how to get rid of this?
any suggestions?
the code is here
code:--------------------------------------------------------------------------------
<title>
function fnSubmit(actionCode)
{
if(actionCode==1)
{
if(validateLoyaltyAdminForm(document.loyaltyAdminForm))
{
document.loyaltyAdminForm.actionCode.value="1";
document.loyaltyAdminForm.submit();
return;
}
else
{
return;
}
}
}
function openViewWindow(jobId)
{
var str = 'child';
var d;
d =window. open('',str,'width=800,height=300,scrollbars=yes,s
tatus=yes,resizable');
d.moveBy(10,20);
document.forms['loyaltyAdminForm'].target = str;
document.forms['loyaltyAdminForm'].actionCode.value = '5';
document.forms['loyaltyAdminForm'].JobDescriptionId.value = jobId;
document.forms['loyaltyAdminForm'].submit();
d.focus();
}
function fnEditProduct(productId)
{
document.loyaltyAdminForm.productId.value=productId;
var str = 'child';
var d;
d =window. open('',str,'width=800,height=300,scrollbars=yes,s
tatus=yes,resizable');
d.moveBy(10,20);
document.forms['loyaltyAdminForm'].action="addProduct.do";
document.forms['loyaltyAdminForm'].target = str;
document.forms['loyaltyAdminForm'].actionCode.value = '2';
document.forms['loyaltyAdminForm'].submit();
d.focus();
}
function fnEditAward(awardId)
{
document.loyaltyAdminForm.awardId.value=awardId;
var str = 'child';
var d;
d =window. open('',str,'width=800,height=300,scrollbars=yes,s
tatus=yes,resizable');
d.moveBy(10,20);
document.forms['loyaltyAdminForm'].action="addAward.do";
document.forms['loyaltyAdminForm'].target = str;
document.forms['loyaltyAdminForm'].actionCode.value = '3';
document.forms['loyaltyAdminForm'].submit();
d.focus();
}
function fnDeleteProduct(productId)
{
document.loyaltyAdminForm.productId.value=productId;
document.loyaltyAdminForm.actionCode.value="2";
document.loyaltyAdminForm.submit();
}
function fnDeleteAward(awardId)
{
document.loyaltyAdminForm.awardId.value=awardId;
document.loyaltyAdminForm.actionCode.value="3";
document.loyaltyAdminForm.submit();
}
function ParentReload()
{
self.location.href = self.location.href;
return;
}
function openAddProductWindow()
{
// var d;
// d =window.open(" request.getContextPath()/addProduct.do","Product"," width=500,height=300,scrollbars=yes,status=yes,res
izable");
// d.moveBy(10,20);
// document.forms['loyaltyAdminForm'].actionCode.value = '1';
// alert(document.forms['loyaltyAdminForm'].actionCode.value);
// d.focus();
var str = 'child';
var d;
d =window. open('',str,'width=800,height=300,scrollbars=yes,s
tatus=yes,resizable');
d.moveBy(10,20);
document.forms['loyaltyAdminForm'].action="addProduct.do";
document.forms['loyaltyAdminForm'].target = str;
document.forms['loyaltyAdminForm'].actionCode.value = '1';
document.forms['loyaltyAdminForm'].submit();
d.focus();
}
function openAddAwardWindow()
{
// var d;
// d =window.open(" request.getContextPath()/addAward.do","Award"," width=500,height=300,scrollbars=yes,status=yes,res
izable");
// d.moveBy(10,20);
// document.forms['loyaltyAdminForm'].actionCode.value = '1';
// alert(document.forms['loyaltyAdminForm'].actionCode.value);
// d.focus();
var str = 'child';
var d;
d =window. open('',str,'width=800,height=300,scrollbars=yes,s
tatus=yes,resizable');
d.moveBy(10,20);
document.forms['loyaltyAdminForm'].action="addAward.do";
document.forms['loyaltyAdminForm'].target = str;
document.forms['loyaltyAdminForm'].actionCode.value = '1';
document.forms['loyaltyAdminForm'].submit();
d.focus();
}
function logout(obj){
document.location.href="/internaladmin/iaLogin.do";
}
function updateStatus()
{
document.forms['loyaltyAdminForm'].action="loyaltyAdmin.do";
document.forms['loyaltyAdminForm'].actionCode.value = '4';
document.forms['loyaltyAdminForm'].submit();
}
function disableProperty()
{
if(document.loyaltyAdminForm.onOff[0].checked)
{
document.loyaltyAdminForm.loyaltyPercentage.value="";
document.loyaltyAdminForm.loyaltyPercentage.disabled=false;
}
else
{
document.loyaltyAdminForm.loyaltyPercentage.value="";
document.loyaltyAdminForm.loyaltyPercentage.disabled=true;
}
}
function disableConversionProperty()
{
if(document.loyaltyAdminForm.conOnOff[0].checked)
{
document.loyaltyAdminForm.loyaltyPoints.value="";
document.loyaltyAdminForm.loyaltyPoints.disabled=false;
}
else
{
document.loyaltyAdminForm.loyaltyPoints.value="";
document.loyaltyAdminForm.loyaltyPoints.disabled=true;
}
}
function back(obj){
history.go(-1);
}
<
Harinath
Cybernet software systems pvt. ltd.
3, Bishop wallers avenue east,
mylapore
chennai
India-600004
|
|
|
|
|
Hello,
In my ASP site i want to implement the security that when the user clicks on logout then when he clicks on back button he should not be able to access the previous page again. I have used the session variable "User", it's vale is true if the user is logged in and make it false when the user logsout. I every page i am checking that if the value is false then the user should be redirected to login page. But when user clicks on back button of browser, it does not work. Can anybody help out for the solution of this.
Kuldeep
|
|
|
|
|
Hello,
Is it possible to request a variable from an HTML page URL using JavaScript or VBScript. The URL is: http://mmedia.glos.ac.uk/students/mu305/soe/Andalucia/insert.htm?imageFile=Image15
I know it is possible with ASP but need to keep the HTML page.
Any thoughts?
Regards
Rob
|
|
|
|
|
Yeah, with JScript, first you must read the URL, then make a substring with reference to '?', something like this.
<br />
var URL = document.location.href;<br />
var imageFile = URL.substring(URL.indexOf('=')+1, URL.Length);<br />
Obviuos if you wanna get more vars, you must make some changes to the script. But the idea is the same.
----
hxxbin
|
|
|
|
|
In a Web application where users will only need to query(selct..) the database for commands..., what way of connection is better knowing that we are looking to monimize the connections and optimize the performance?
Is it using WebServices, a DataAdapter and a Dataset, a query and a RecorSet..or something else??
|
|
|
|
|
DataAdapter provides a fast forward only read only cursor and can give you the required performance.
|
|
|
|
|
Hello,
I have found some code that uploads a file from a users hard drive, to a folder on a web server.
If, and how is it possible to rename the file that has been uploaded to image1.jpg so it can later be referred to by another application?
Also, is it possible to rescale the image when it is being uploaded?
Following are the links and source code:
http://mmedia.glos.ac.uk/students/mu305/soe/insert.rar
http://mmedia.glos.ac.uk/students/mu305/soe/andalucia/insert.htm
http://mmedia.glos.ac.uk/students/mu305/soe/andalucia/loader.asp
http://mmedia.glos.ac.uk/students/mu305/soe/andalucia/insert.asp
Many thanks,
Robert
|
|
|
|
|