| VB script, driving me crazy; vb bug ? |
|
 |
Index ‹ asp
|
- Previous
- 2
- Applet and authenticationHi,
I have a problem with applet and authentication.
I have a aspx page that have a applet, this applet stay in directory without authentication
but the applet is a viewer images and the images stay in virtual directory with authentication,
my ask is How the aspx page pass the authentication to the applet in order to the applet have to
autoritation to accede the images??
Thanks
Silvia
- 2
- SSL, P3P & Cookies.Please oh please oh please can someone with some P3P knowledge help me out?
I'm aware that this isn't strictly an ASP or IIS issue but the SSL groups
listed on my news server appear abandoned and since I've been coming to
these groups I'm sure I've seen many people ask and answer SSL related
questions. So here goes:
I've recently had a shared SSL enabled for my site to use, but am having
enormous difficulty in incorporating it into my program.
Having found that IE was blocking my cookies, I set about creating a P3P
compatible privacy policy using the IBM policy creator
(http://www.alphaworks.ibm.com/tech/p3peditor). Uploaded the generated
policy and associated written documents to the unsecure area of my website.
Linked the policy to my data gathering page with a <LINK rel="P3Pv1"
href=http://etc../p3p.xml>. Got a Compact Policy, haven't a clue what to do
with it :(
The results are not satisfactory.
Page in SSL location loads, attempts to use Session variables, which I
assume attempts to store a temporary cookie. IE shows an eye and no-entry
sign privacy report. Privacy report says that one or more cookies was
blocked and names it. Summary report gets the relevant P3P policy (i think).
The policy includes methods that i thought would enable cookie usage:
Policy 1 contains a <STATEMENT> tag specifying:
<DATA-GROUP>
<DATA ref="#dynamic.cookies"><CATEGORIES><state/></CATEGORIES></DATA>
</DATA GROUP>
and P3P.xml (located in root of non-secure url, pointed at by page in secure
url.) contains a <POLICY-REFERENCES> tag specifying:
<POLICY-REF about="policy1.xml">
<INCLUDE>/*</INCLUDE>
<COOKIE-INCLUDE/>
</POLICY-REF>
also tried specifying <COOKIE-INCLUDE name="*" value="*" domain="*"
path="*"/>
Result: No change. Tried all kinds of things with that CP string. No
noticable changes so shan't list attempts. If you know how to use it (in
html or asp) please advise me.
Does anyone know how to make my site use its cookies? !!!
Many thanks to anyone who tries ;)
Matt Smith
- 4
- detecting when a user has left our siteI need to be able to execute some code or display a popup when a user leaves
the site. Does anyone know if it is possible to detect this? Is there an
event that is called before the user leaves where I could put some code?
Thanks in advance
- 4
- Help for upload!!!I need to write an application for uploading member's album/images on web site such as yahoo album. Does anyone have any idea which programming language I have to use? Can I use asp to write this application? Or any link or reference site I can take a look! Thank you very much!
- 4
- how about the performance by using SSI?Whether it can improve the execution effciency of ASP by centeralizing the
often used code into header files and then including these header files in
ASP pages?
--
Best regards,
Laser Lu
- 5
- 100% height of a div inside a TDThis is a multi-part message in MIME format.
I've got the problem described in the table above.
I've put a div red with some text inside a TD, but its height is less than 100% of TD height as you can see.
I've defined the following styles:
div.test { background-color:red; height:100%; width: 100%; }
table.test { border: 1px solid #CCCCCC; background-color:yellow; }
td.test { border: 1px solid #CCCCCC; }
does anyone know a solution ?
Please help me.
Regards to all
2
2b 1
4 5
7 8
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1515" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY><FONT face=Arial><FONT size=2>
<DIV>
<STYLE>
div.test {
background-color:red;
height:100%;
width: 100%;
}
span.test {
background-color:blue;
height:100%;
width:100%;
}
</STYLE>
I've got the problem described in the table above.</DIV>
<DIV> </DIV>
<DIV>I've put a div red with some text inside a TD, but its height is less than
100% of TD height as you can see.</DIV>
<DIV> </DIV>
<DIV>I've defined the following styles:</DIV>
<DIV> </DIV>
<DIV>div.test { background-color:red; height:100%; width: 100%; } </DIV>
<DIV>table.test { border: 1px solid #CCCCCC; background-color:yellow; } </DIV>
<DIV>td.test { border: 1px solid #CCCCCC; }</DIV>
<DIV> </DIV>
<DIV>does anyone know a solution ?</DIV>
<DIV> </DIV>
<DIV>Please help me.</DIV>
<DIV> </DIV>
<DIV>Regards to all</DIV>
<DIV> </DIV>
<DIV>
<STYLE>
div.test {
background-color:red;
height:100%;
width: 100%;
}
span.test {
background-color:blue;
height:100%;
width:100%;
}
table.test {
border: 1px solid #CCCCCC;
background-color:yellow;
}
td.test {
border: 1px solid #CCCCCC;
}
</STYLE>
<STYLE>
div.test {
background-color:red;
height:100%;
width: 100%;
}
span.test {
background-color:blue;
height:100%;
width:100%;
}
table.test {
border: 1px solid #CCCCCC;
background-color:yellow;
}
td.test {
border: 1px solid #CCCCCC;
}
</STYLE>
<TABLE class=test id=Table1 cellSpacing=0 cellPadding=0 width=300 border=0>
<TBODY>
<TR>
<TD class=test>2<BR>2b</TD>
<TD class=test>
<DIV class=test>1</DIV></TD></TR>
<TR>
<TD class=test>4</TD>
<TD class=test>5</TD></TR>
<TR>
<TD class=test>7</TD>
<TD class=test>8</TD></TR></TBODY></TABLE></DIV></FONT></FONT></BODY></HTML>
- 5
- error 80005000 when querying LDAPI'm using ASP and CDO to lookup free busy time on an e2k
server. The E2K is locally installed on the IIS server and
I'm having no problems accessing resources like public
folders, mailboxes, etc. When I check Free Busy you have
to access the Active Directory with LDAP. The Domain
Controller is on another server. I am getting error
80005000 whenever I query LDAP. The following code works
perfectly on a server that is a DC, but my production
server is not a DC.
Code snippet #1 (error occurs on If .Checkname(LDAP...):
With CreateObject"CDO.Addressee").
.EmailAddress = objUser.Mail
If .CheckName("LDAP://TheDC/DC=somewhere,DC=com") Then
strFBStatus = .GetFreeBusy(Date1,DateAdd("d",1,Date1),30)
Else
strFBStatus = "0"
End If
End With
I also have the same problem with ADSI, but have found a
way around it by hardcoding a username and pwd to use for
the lookup. Previous to this I was just doing a GetObject
without the OpenDSObject and that worked without
hardcoding the user and pwd.
I have Integrated Windows Authenticaion turned on in my
website, but I think the server is not passing the
credentials to the DC for some reason.
This code works -
Code snippet #2:
Set test = GetObject("LDAP:")
Set grp = test.OpenDSObject
("LDAP://TheDC/CN=Users,DC=somewhere,DC=com", "userx", "abc
123", ADS_SECURE_AUTHENTICATION)
This code doesn't work:
code snippet #3
Set grp = GetObject
("LDAP://TheDC,CN=Users,DC=somewhere,DC=com")
- 5
- Problem when using javascriptI have an asp page that has a form to collect user data in a form.
when the user clicks submit the input is validated. If any fields are
not acceptable the user clicks on a button to go back to the original
form to correct the input. This all works fine until I try to
incorporate a javascript to display a popup calendar which posts the
selected date back to a field on the form. This script works fine in
itself, however if the page is submitted after this script has run and
other fields are not valid, then when I go back to the form ALL the
data entered is cleared. I am fairly new to asp and at a lost as to
what i am doing wrong.
I would appreciate any pointers as to how I can correct this.
My asp page is is follows:
<!-- #INCLUDE FILE="includes/Top.asp" --> Handles database connects
<!-- #INCLUDE FILE="cal_inc.asp" --> ' contains the Javascript to
handle the popup window
<% If (0 = Request.ServerVariables("CONTENT_LENGTH")) Then %>
<FORM ACTION="<%=Request.ServerVariables("SCRIPT_NAME")%>" method= post
name = example_form><CENTER>
' VArious Input elements
<a href="javascript:ShowDate('example_form','DATE');">Pick Date</a> '
hyperlink to javascript window to complete a field if required
' Validation of data input
<input type="button" value="Click here to make your changes"
onClick="history.go(-1) "> ' button to go back to original form if
invalid data found
The cal_inc.asp is :
<SCRIPT language="Javascript">
function ShowDate(date_form, date_field)
{
url='mc_calendar.asp?date_form=' + date_form + '&date_field=' +
date_field;
window.open(url,"_blank","height=200,width=370, resizable=yes");
}
</SCRIPT>
and the ='mc_calendar.asp page which it calls is :
<html>
<head>
<meta http-equiv="Content-Language" content="es-bo">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>Pick a calendar date...</title>
<SCRIPT language="Javascript">
function change_cal()
{
var today = new Date();
month=document.cal_form.sel_month.options[document.cal_form.sel_month.options.selectedIndex].value;
year=document.cal_form.sel_year.options[document.cal_form.sel_year.options.selectedIndex].value;
month_dif=month-(today.getMonth()+1);
year_dif=year-today.getYear();
url='mc_calendar.asp?sel_month=' + month + '&sel_year=' + year +
'&month_dif=' + month_dif
+ '&year_dif=' + year_dif + '&date_form=<% =request("date_form") %>'
+ '&date_field=<% =request("date_field") %>';
window.location=url;
}
function pick_date(s_day, s_month, s_year)
{
if (window.opener && !window.opener.closed)
{
window.opener.document.<% =request("date_form") %>.<%
=request("date_field") %>.value =s_day + "/" + s_month + "/" + s_year;
}
window.close();
}
</SCRIPT>
</head>
<body link="#008000" vlink="#008000" alink="#FF0000" topmargin="0"
leftmargin="0" rightmargin="0" bottommargin="0">
<table border="0" cellpadding="0" style="border-collapse: collapse"
id="table3">
<tr>
<td>
<% if request("sel_month")<>"" then
sel_month=request("sel_month")
else
sel_month=month(now)
end if
if request("sel_year")<>"" then
sel_year=request("sel_year")
else
sel_year=year(now)
end if
if request("month_dif")<>"" then
month_dif=cint(request("month_dif"))
else
month_dif=0
end if
if request("year_dif")<>"" then
year_dif=cint(request("year_dif"))
else
year_dif=0
end if
new_now=DateAdd("m",month_dif,now)
new_now=DateAdd("yyyy",year_dif,new_now)
'response.write("new_now: " & new_now & "<br>")
first_week_day=WeekDay( new_now- ( day(new_now)-1 ) )
'response.write("first weekday: " & first_week_day & "<br>")
if first_week_day=1 then
date_cursor=-7
else
date_cursor=(first_week_day-1)*-1
end if
'response.write("date cursor: " & date_cursor & "<br>")
first_show_day=day(new_now-(day(new_now)-1)+date_cursor)
'response.write("first show day: " & first_show_day & "<br>")
%>
<table border="3" id="table4" cellspacing="1">
<form name="cal_form">
<tr>
<td colspan="7">
<div align="left">
<table border="0" cellpadding="0" style="border-collapse:
collapse" id="table5">
<tr>
<td>
<p align="left"><font size="1" face="Arial
Narrow">
<a href="mc_calendar.asp?date_form=<% =request("date_form")
%>&date_field=<% =request("date_field") %>">GO<br>
TODAY</a> </font></td>
<td>
<p align="right"><b><font face="Verdana" color="#000080">
<% response.write(MonthName(sel_month)) %>
<% response.write(sel_year) %>
</font></b></td>
<td><font face="Verdana">
<select size="1" name="sel_month" onchange="javascript:
change_cal();">
<% for i=1 to 12 %>
<option
<% if i=cint(sel_month) then %>
selected
<% end if %>
value="<% =i %>"><% response.write(MonthName(i)) %></option>
<% next %>
</select></font></td>
<td><font face="Verdana">
<select size="1" name="sel_year" onchange="javascript:
change_cal();">
<% for i=1900 to 2100 %>
<option
<% if i=cint(sel_year) then %>
selected
<% end if %>
value="<% =i %>"><% =i %>
</option>
<% next %>
</select></font></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td align="center"><b><font face="Verdana" size="1"
color="#000080">Sunday</font></b></td>
<td align="center"><b><font face="Verdana" size="1"
color="#000080">Monday</font></b></td>
<td align="center"><b><font face="Verdana" size="1"
color="#000080">Tuesday</font></b></td>
<td align="center"><b><font face="Verdana" size="1"
color="#000080">
Wednesday</font></b></td>
<td align="center"><b><font face="Verdana" size="1"
color="#000080">Thursday</font></b></td>
<td align="center"><b><font face="Verdana" size="1"
color="#000080">Friday</font></b></td>
<td align="center"><b><font face="Verdana" size="1"
color="#000080">Saturday</font></b></td>
</tr>
<% for i=1 to 42 %>
<% if WeekDay(new_now-(day(new_now)-1)+date_cursor)=1 then
if i>1 then %>
</tr>
<% end if %>
<tr>
<% end if %>
<td>
<% if (date_cursor>=0 and date_cursor<=2) or (date_cursor>=3 and
date_cursor<=30 and day(new_now-(day(new_now)-1)+date_cursor)>3) then
%>
<p align="center">
<b>
<a href="javascript:pick_date('<%
=day(new_now-(day(new_now)-1)+date_cursor) %>','<% =sel_month %>','<%
=sel_year %>');">
<% if month(now)=month(new_now) and
day(new_now)=day(new_now-(day(new_now)-1)+date_cursor) then
%>
<font face="Verdana" size="2" color="#FF0000">
<% else %>
<font face="Verdana" size="2" color="#008000">
<% end if %>
<% response.write( day(new_now-(day(new_now)-1)+date_cursor)
) %>
</font>
</a></b>
</p>
<% elseif date_cursor<0 or date_cursor>=28 then %>
<font face="Verdana" size="2" color="#C0C0C0">
<p align="center">
<b>
<% response.write( day(new_now-(day(new_now)-1)+date_cursor) )
%></b>
</p>
</font>
<% end if %>
</td>
<% date_cursor=date_cursor+1 %>
<% next %>
</form>
</table>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</body>
</html>
- 5
- Websites Stopped : Address Already In Use
Jules, did you ever find a resolution for this, I'm having the same
problem, except it's port 443 that is baked. I too can run sites on
444, but 443 is lost in space somewhere.
Any ideas?
thanks,
Jason
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
- 10
- Getting mad with my For2Email app!Dear All,
written a small Form 2Email app, It never reaches my the mail box, but to
the Badmail folder. Why is happening. Is there anything to do with SMTP? I
use CDONTS.
Any support will be helpful and appreciated.
Regards,
Benny
- 10
- Newbie with worldpayGazing into my crystal ball I observed "Mark J. McGinty"
<email***@***.com> writing in
news:email***@***.com:
>
> "Adrienne" <email***@***.com> wrote in message
> news:email***@***.com...
>> Gazing into my crystal ball I observed terje <email***@***.com> writing
>> in news:email***@***.com:
>
> [snip]
>
>> Then you need to complain about snipping, not bottom posting.
>
> [snip]
>
> What's wrong with snipping out irrelevant chunks?
You snipped out the relevant text:
<quote>
I'm tired of having to scroll down 400 lines just to read the one line
reply.
</quote>
Posters need to snip judiciously.
Personally, I think
> some posts lend themselves to top posting,
If others want to respond, then you have jumble. Even a Thank You can get
muddied up when their is a Your Welcome and maybe a You're Too Kind after
that, etc., etc.
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
- 10
- xml http iis cachingi want to info about iis caching and a special one
when i get the a site with xml http it is caching by iis ...
what is the refresh period and data amount of this caching...
could anyone give me a info or url to take more info...
- 10
- Search Page ASPHi All
We are building an application with ASP/SQL Server and need to build a
search page. I want to display lots of fields/textboxes on the search page
to allow user to search any field by entering the search terms in any of the
textboxes.
I was thinking of using lots of if conditions to build the search string
something like
strSQL = "Select <<fieldnames>> from Contracts where Active= True "
if request.form("contractno") <> "" then
strSQL = strSQL & " and contractno ='" & request.form("contractno")
& "'"
end if
Does anyone know of a better way to build the SQL string. Also any methods
to speed up the query built will be much appreciated. I have already limited
the total results that the query displays but adding " Top 20 " in the SQL
string. Any other suggestions?
- 14
- 14
- Seeking Recommendations for webserver/site support serviceWe are in need of someone to diagnose a nagging problem we've been
experiencing with our website over the pass few months that has been getting
worse. The site runs on a dedicated Windows 2000 server (IIS 5.0), and is
exclusively ASP.
The problem is the HTTP service has been having intermittent outages (other
services remain OK); a vast majority of the time these outages occur in the
night time hours. An outage last anywhere from a few minutes to hours.
Anyway, if any of you could recommend someone with the expertise to monitor,
diagnose, and fix (or propose a fix for) this problem, it would be greatly
appreciated.
Sincerely,
Chris
PS: pls copy a response to my email
|
| Author |
Message |
albertlaszlo@gmail.com

|
Posted: 2008-1-31 1:15:00 |
Top |
asp, VB script, driving me crazy; vb bug ?
I have a very simple vb code, that suppose to remove some binary
character codes from a string. The results are different if the code
is running from IIS-WinXp or IIS-WinServer. After hours of searching I
managed to isolate the code that is creating the problem, but i cannot
understand why. Here is the code :
Z1.asp
<%
function Hexof(s)
dim ix, so
for ix =1 to len(s): so = so & Hex(Asc(Mid(s,ix,1))) & ".": next
HexOf = so
end function
Function Test()
Dim ix, s1
s1=""
For ix = 127 To 191: s1 = s1 & chr(ix): next
response.write "127..191....." & Hexof(s1)
End Function
test
%>
The results I get in IE 6, are :
for IIS on Win XP (INCORRECT?)
127..191.....7F.0.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.
7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.
7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.7F.
for IIS on Win 2000 server (as expected):
127..191.....7F.80.81.82.83.84.85.86.87.88.89.8A.8B.8C.8D.8E.8F.
90.91.92.93.94.95.96.97.98.99.9A.9B.9C.9D.9E.
9F.A0.A1.A2.A3.A4.A5.A6.A7.A8.A9.AA.AB.AC.AD.AE.AF.B0.B1.B2.B3.B4.B5.B6.B7.B8.B9.BA.BB.BC.BD.BE.BF.
the funny part is that if run the same script from different locations
in the same IE session, I get inconsistent result
1. running XP\z1.asp returns the INcorrect result
2. running server\z1.asp returns the correct result
3. running XP\z1.asp returns the CORRECT result Surprised ?
I really am
Somebody might help me to get this thing out of my mind
Thanks
Laszlo
|
| |
|
| |
 |
Jon Paal [MSMD]

|
Posted: 2008-1-31 3:03:00 |
Top |
asp >> VB script, driving me crazy; vb bug ?
the difference would be the IIS version so you may want to post your question here:
Microsoft\Outlook Express\microsoft.public.inetserver.iis
|
| |
|
| |
 |
albertlaszlo@gmail.com

|
Posted: 2008-1-31 3:33:00 |
Top |
asp >> VB script, driving me crazy; vb bug ?
On Jan 30, 2:03 pm, "Jon Paal [MSMD]" <Jon nospam Paal @ everywhere
dot com> wrote:
> the difference would be the IIS version so you may want to post your question here:
>
> Microsoft\Outlook Express\microsoft.public.inetserver.iis
They are the same version.
I will post it in the indicated spot
Thanks
Laszlo
|
| |
|
| |
 |
Bob Barrows [MVP]

|
Posted: 2008-1-31 3:40:00 |
Top |
asp >> VB script, driving me crazy; vb bug ?
email***@***.com wrote:
> I have a very simple vb code, that suppose to remove some binary
> character codes from a string. The results are different if the code
> is running from IIS-WinXp or IIS-WinServer.
I'm at a loss. I have tested your code on multiple servers (from NT4 to
to XP to WS2003) running versions of IIS from 5-6, on IE6 and IE7, and I
get the same result no matter where or how I run the code.
I don't believe the result of this code should depend on regional
settings or encoding, but I can think of nothing else that would come
close to explaining your results. You should try testing the code as a
.vbs file, varying your regional settings to see if they have any effect
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
|
| |
|
| |
 |
| |
 |
Index ‹ asp |
- Next
- 1
- asp TimerHi,
I need help writing a script that checks to see how long an asp application has been active on the server. The basic logic is - If the timer and application exceed 60 minutes then refresh the application and start over.
The reasoning behind this is that I am pulling in a header navigation using the following.
Set objHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objHTTP.Open "GET", "header navigation reference here", false
objHTTP.Send
Response.Write objHTTP.ResponseText
So far here is what I have:
Sub Application_OnStart
Dim objHTTP
Set objHTTP = Server.CreateObject("Microsoft.XMLHTTP")
objHTTP.Open "GET", "https://www.getlower.com/cobrand_cic.aspx", false
objHTTP.Send
Response.Write objHTTP.ResponseText
End Sub
Thanks for any input you may have.
Mike
-----------------------------
This message is posted by http://asp.forumszone.com
- 2
- One page to control data of 50 products - what is the best way?how about storing the information in a database?
--each product record will contain the information you described and a
unique id
--pass the id in the querystring
--look up the product information in the database and display what is
returned in html format
visit www.ASPkey.net
"Christopher" <email***@***.com> wrote in message
news:email***@***.com...
> Hi All,
> I have a simple request, and am looking for the best way to do this.
>
> I have a site that has a product page listing, say 50 products. Each of
> these must open a page that has the following info:
>
> - product title
> - product description (about 5 paragraphs)
> - product photo
> - download of product PDF.
>
> Because each page is essentially the same strucure, ideally I want just
one
> page that calls the relevant information based on querystring variables.
My
> issue is: how to best call / store this data (non-database). I think its
bad
> practise to store all the text for every product on the page and display
via
> conditional statements. I also thought of storing each product copy in txt
> files and calling via FSO.
>
> There must be a better way. Please give me your suggestions. THanks!
> Chris
>
>
- 3
- How to acess mdb from a remote machine in ASPHi,
I have developed an application in asp with backend as ms-access database.
The mdb file is on a one machine and my IIS is running on a different
machine. The code which I tried is as follows
<%
set con = server.CreateObject("adodb.connection")
I tried both dsn and dsn-less
DSN-LESS
con.Open "Driver={Microsoft Access Driver (*.mdb)};Dbq=\\<machine
name>\remote\remotedb.mdb;"
DSN
con.Open("DSN=remote;")
set rs = server.CreateObject("adodb.recordset")
Set rs = Con.Execute("Select * from Employee")
response.write("Sucess")
%>
The changes what I did in IIS
In directory security of this application I changed the Authentication
method to IUSR_MACINENAME with Allow IIS to control password. But when I
view the page its throwing error, which is given below
Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC
Microsoft Access Driver]
The Microsoft Jet database engine cannot open the file '(unknown)'. It is
already opened exclusively by another user, or you need permission to view
its data.
Please let me know how to resolve this problem.
I looked at KB article no. 189408, and as described, took off the password
control from IIS.
but still it is not solving my problem. And I also have the reqd.
permissions on the folder that contains the mdb file.
Pl note that there is no error when I run the application from the same
machine where IIS is running.
The problem occurs only if I access the application from a client machine.
Please advice accordingly.
What should be the code in ASP and what should be IIS settings.
Regards,
RR
- 4
- asp pages ignoring lines of scriptCan't figure this one.
web page with vbscript asp, w2k/iis5
The page opens with no errors (syntax errors get picked up just fine)
but. If a line contains a variable that's either not dimmed, or has no
value, or returns a bad value from say instr(), the line is simply ignored,
or if its inside a loop or for/next, that block is ignored.
any ideas?
- 5
- how to make dynamic ASP pages more readable?How do you guys make listings such as product listings and their detail
pages more crawler friendly, if they are genrated using dynamic asp pages.
If your ASP uses a format like this: www.mysite.com/products.asp?idnum=3444
to display detail pages, how can I apply SEO to this format??
I know unix hosts use the mod rewrite, but I do not have access to the
server settings etc.
BUt I can access a database etc.
What are your thoughts?
Danny
- 6
- Execute EXE with an ASPI recently moved an app over to IIS 6 from IIS 5. Everything works
great! I use ASPExecute to run an .exe - but it doesn't fire. It just
sits in the process window. Doesn't do anything. Is IWAM, or IUSR or
both required to run it?
- 7
- How to open large HTML FILES IN EXCEL In quick Timehi,
i am using the following code to generate a xls file using the
content type
now when the user opnes the file at his pc it takes long time to
open..if the no of records in file is large
does the use of html tags has slow down the process of opening in
excel...
does speical care needs to be taken so that large html files open in
excel quiclky.....................
Please advise your feedback....
Response.ContentType = "application/vnd.ms-excel"
Response.Write("<basefont face=""Arial Narrow"" size = ""2""
color=""#000000"">")
Response.Write("<TABLE border = 0 color=blue align=left>")
Response.Write("<TR>")
Response.Write("<td colspan = 8><font size=4><b>Indirect Channels -
Management Information System</b></font></td>")
Response.Write("</TR>")
Response.Write("<TR>")
Response.Write(" ")
Response.Write("</TR>")
Response.Write("<TR>")
Response.Write("<td colspan = 7><font size=3><b>" & strRptName &
"</b></font></td>")
Response.Write("</TR>")
Response.Write("<TR>")
Response.Write(" ")
Response.Write("</TR>")
Response.Write("<TR>")
Response.Write("<td colspan = 4><b>User Id : " & session("userid") &
"</b></td>")
Response.Write("</TR>")
Response.Write("<TR>")
Response.Write("<td colspan = 4><b>User Name : " &
session("username") & "</b></td>")
Response.Write("</TR>")
Response.Write("<TR>")
Response.Write("<td colspan = 4><b>Period From : " & strPeriodFrom &
"</b></td>")
Response.Write("</TR>")
Response.Write("<TR>")
Response.Write("<td colspan = 4><b>Period To : " & strPeriodTo &
"</b></td>")
Response.Write("</TR>")
Response.Write("<TR>")
Response.Write(" ")
Response.Write("</TR>")
Response.Write("<TR>")
Response.Write("<td colspan = 4><b>IN CONFIDENCE</b></td>")
Response.Write("</TR>")
Response.Write("<TR>")
Response.Write(" ")
Response.Write("</TR>")
Response.Write("</TABLE>")
- 8
- Using ASP to replace content but not tag content in HTML pagesHi,
Using ASP I'd like to modify a string that contains HTML.
I need to modify the content (the bit that the users see) but not the stuff
in the tags.
For example, if I had the following string
<a href=www.replacetext.com>replacetext.com</a>
and wanted to replace "replacetext.com" with "newtext.com" I'd want the
output to be
<a href=www.replacetext.com>newtext.com</a>
Could anyone help me with this?
Thanks,
Ben.
- 9
- HTTP/1.1 New Session FailedHi, getting the
HTTP/1.1 New Session Failed
message when trying to access an ASP page. It seems intermittent, at some
point one machine will keep getting this message while another will access
it just fine. The next day it will be the other way around. This page and
application, just have regular ASP pages, not doing anything too
spectacular.
Any ideas?
- 10
- reordering data driven listbox items
Hello all,
I have tried searching for this. I need a listbox populated by my
database table where users can re-order the list of items and submit the
changes. I can do the listbox and populate it with the data, no prob,
but it's the reordering thing I know nothing about. I found one written
in javascript with hardcoded list items and submitting only saves the
changes in the box itself. I don't know much javascript. I wouldn't
know where to begin on modifying it. Could someone out there point me
in the right direction, maybe to a site with examples? Is it do-able in
vbscript? I'll keep looking, as well.
Thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
- 11
- Text Drop Down Menu
Anyone know how to create a drop down menu where the user can enter text
also?
If they do not want to choose an answer from the drop down menu, the
users can just enter their own answers in the drop down box. Anyone
know if this is possible?
Thankx!
Angie
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
- 12
- Using cookies & session vars in aspHi
I'm involved in quite a large project which has a slightly unusual
form of login (at least I think it's unusual!). I'm creating a site in
ASP (actually Chilisoft ASP) where access to all pages has to be
secured via login. The odd bit is that while the login page will be on
this site, the login process itself will be carried out on a
completely separate domain - this is the client's requirement so I
have no choice.
On login, the user will be assigned a 24 hour cookie by this 2nd
domain and then be passed back to the site I'm involved with. My site
then needs to assign a similar cookie (I'm assming that I won't be
able to read the other domain's cookie) and allow access to the site
for 24 hours.
I'm wondering if it's most efficient to assign a session variable to
indicate the user is logged in once my cookie has been generated
(rather than have every page check for a cookie again) and on
subsequent sessions during the 24 hour period to 1st check for session
var, then the cookie and then, if cookie exists, to assign the session
variable again.
I'm a bit stumped here so any help would be gratefully received!
Thanks
Warren
- 13
- Regular Expressions..Hi,
I have an issue where by when I use XMLHTTP to get data from another web
site, all of the '? symbols become '?'. I have try for hours to stop this
happening but have been unsuccessful so far.
The numbers I have for example should be ?.57 and become ?9.57. I am by no
means an ASP expert and I have found some of the suggestion a bit difficult
to understand, somebody suggested "ADODB.Stream" but I could not make this
work..
I cant use REPLACE as the '?' in the string has a value of 63 but when I try
and REPLACE on ? or chr(63) it does not work.
I would like to know if it is possible to use Regular Expressions and will
this match a '?' in a string when REPLACE does not seem to see it.
All I would need to do is to
Match either a 3, 2 or 1 digit number for example ?9.56 or ?19.56 or ?119.56
with a two digit number after the '.' and replace it with ?.56 or ?9.56 or
?19.56
I have found this regular expression on the web
[-+]?[0-9]*\.?[0-9]*.
I think this will match the numbers I want to
my question is how can I match a number pattern, but replace the chr before
the match i.e. the ?, I thought reg expression might work as I can basically
say match "x19.56" and replace with ?9.56
hope I have not waffled to much but this is doing my head in :-)
any help will be greatly appreciated
Graham
- 14
- file uploadHello,
I am using ASPSmartUpload to move file from user computer to web server
through company network.
If the file is small (<1 MB), everything is fine. But if file is big (more
than 50 MB) it will stay forever.
Does anyone know in this situation, which component you recommend.
Thanks,
Lin Ma
- 15
- Randomly generated variables in ASPHi Friends,
I am relatively new to this generation of variables in ASP. I am unable
to proceed from here. Can somebody advise ?
Challenge :
I get number of participants in an exam, from a sql statement and
stored into a variable called headcount.
After that, I am using the following to initialize randomly generated
variables. For example if there are 4 students in the class, I intend
to get student1, student2, student3 and student4, all of them
initialized to 0.
For j=1 To CLng(headcount)
Eval Execute("student" & j & "=" & 0)
Next
Now we are trying to find out question wise defaults in the test. I
have a for loop that does traverse through all the questions in the
test. As I go question by question, if there is any failure I would
like to increment the errorcounter of that participant.
Which means
Q1. student1= 0, student2= 0, student3= 0, student4= 0 if all the
answers are fine.
Q2. student1= 0, student2= 0, student3= 0, student4= 0 if all the
answers are fine.
and so on.
<% do while not rs4.eof %>
<%
ctr = ctr + 1
if rs3("actualscore") = rs4("individualscore") then
Eval Execute("student" & "ctr" & " = " & "student" & "ctr" + 1)
end if
rs4.movenext
loop
ctr = 0
%>
My question is as ctr increases in the for loop, i want to append it to
student and take some values into it. i.e. student1=0, student2=1 etc.
So i am using this Eval Execute("student" & "ctr" & " = " & "student"
& "ctr" + 1).
Can someone help me please ???
Kind Regards,
raj.
|
|
|