How to add a user to the friend list?
ASP web-programming
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > ASP web-programmingGo to page: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:
Monday, 13 October 2008
Select Records between Date/Time & Date/Time? Greg 09:37:07
 I've built a Point-of-Sale using "classic" asp (it's what I know) and I'm
trying to get daily sales totals. The problem is sales for the day do not
stop at 11:59pm. What is a clean way to select the records from say 8:00am
at start of business to 4:00am the next morning? I should be able to figure
this out, but I think I've been looking at this too long...

Any help would be appreciated!

Thanks,
Greg

comment 7 answers | Add comment
Saturday, 11 October 2008
Borwser prompts for username\password Markgoldin 10:55:35
 I have put together a very simple internal web site that runs on Windows
2003 Server.
Anonymous access is not selected.
When I navigate to it for the first time Browser (IE) prompts for username
and password.
Can I turn that off?

Thanks


comment 4 answer | Add comment
Friday, 10 October 2008
Possible to include SSI in ASP page using full URL? Ohaya 16:15:38
 Hi,

We want to include some SSI in our ASP pages, but where the SSI is
located on a different server, and so we need to be able to access the
SSI using a full URL, as opposed to a local file reference or relative
URL.

The "include" apparently doesn't allow this, so I was wondering if
anyone knows away to accomplish this?

Thanks!

Jim
comment 12 answers | Add comment
text wait or hourglass Charlotte 15:41:12
 
Hi

Can someone please help me with the following:

I have an ASP-page where a query runs, it confiscates a couple of seconds (5
to 10 sec), before the result is sent to the client's browser.

While the query is doing his job on the server, the visitor can't see
anything, only a blank page with the typical 'indicator' in the status of IE
(at the bottom).

I would like to have the words: 'Patience, the result is being composed' or
an hourglass must be shown, so that the visitor can see that the process is
taking place.

Can anyone give me an example?

Thanks in advance
Chalotte

comment 2 answer | Add comment
ASP Classic - A way to open Win Explorer, or similar alternative Devin 04:00:42
 Hi,

I'll explain what I am trying to do and hopefully you can suggest how
I can do it, or another way I could create a similar effect.

My company uses vCalendar which I know my way around in pretty well.
When the administrator of the calendar makes a new event (this person
isn't computer savvy) they need to enter in the field for "relevant
docs" the folder where the files of interest for the event are located
(brochures, fyi, agendas, etc). When a user click the event they
should be able to click the link in the "relevant docs" field and it
should open the network folder in windows explorer so they can save
the necessary documents for the event they are attending.

I realize windows explorer might not be an option. So I'll take
whatever suggestions you can throw at me.

D
comment 1 answer | Add comment
Thursday, 9 October 2008
Converting number to percentage Function Ltamisin 18:54:55
 Hi Im Leo

I want to convert a number to percentage, is there any built-in function for
this?

Thanks


comment 1 answer | Add comment
asp vbscript textbox paste from word problem Gtn170777 17:13:01
 Hi Guys,

It's been a while, I've got a small problem that I could do with your
expertise on.
As you know (I Think) I build websites for recruitment agencies, part of the
website includes a job board facility and for job form entry I used a normal
form with a normal textbox, however what I'm finding now is that a lot of
recruitment consultants are pasting the job description into the textbox,
which when submitted is resulting in most of the text not being entered!!!

Is there any way around this?

I've attached the code -

Thank you

<%@LANGUAGE="VBSCRI­PT" CODEPAGE="65001"%>
<!--#include file="../Connection­s/recruta2.asp" -->
<%
Dim MM_editAction
MM_editAction = CStr(Request.Server­Variables("SCRIPT_NA­ME"))
If (Request.QueryStrin­g <> "") Then
MM_editAction = MM_editAction & "?" & Server.HTMLEncode(R­equest.QueryString)
End If

' boolean to abort record edit
Dim MM_abortEdit
MM_abortEdit = false
%>
<%
' IIf implementation
Function MM_IIf(condition, ifTrue, ifFalse)
If condition = "" Then
MM_IIf = ifFalse
Else
MM_IIf = ifTrue
End If
End Function
%>
<% Session("NEWVACANCY­TITLE") = Request.Form("title­") %>
<% Session("NEWVACANCY­SECTOR") = Request.Form("jobty­pe") %>
<% Session("NEWVACANCY­LOCATION") = Request.Form("locat­ion") %>
<%
If (CStr(Request("MM_i­nsert")) = "form1") Then
If (Not MM_abortEdit) Then
' execute the insert
Dim MM_editCmd

Set MM_editCmd = Server.CreateObject­ ("ADODB.Command")
MM_editCmd.ActiveCo­nnection = MM_recruta2_STRING
MM_editCmd.CommandT­ext = "INSERT INTO dbo.Vacancy (VacancyTitle,
VacancyCategory, VacancyLocation, VacancyType, VacancyPaye, VacancyDuration,
VacancyReference, VacancyExpiryDate, VacancyDescription,­ VacancyEmployerID,
VacancyEmployeeID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"
MM_editCmd.Prepared­ = true
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param1", 202,
1, 50, Request.Form("title­")) ' adVarWChar
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param2", 202,
1, 50, Request.Form("jobty­pe")) ' adVarWChar
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param3", 202,
1, 50, Request.Form("locat­ion")) ' adVarWChar
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param4", 202,
1, 50, Request.Form("contr­act")) ' adVarWChar
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param5", 202,
1, 50, Server.HTMLEncode(R­equest.Form("payrate­"))) ' adVarWChar
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param6", 202,
1, 50, Request.Form("durat­ion")) ' adVarWChar
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param7", 202,
1, 50, Request.Form("refer­ence")) ' adVarWChar
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param8", 135,
1, -1, MM_IIF(Request.Form­("expirydate2"), Request.Form("expir­ydate2"),
null)) ' adDBTimeStamp
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param9", 201,
1, -1, Server.HTMLEncode(R­equest.Form("descrip­tion"))) ' adLongVarChar
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param10", 5, 1,
-1, MM_IIF(Request.Form­("SITEID"), Request.Form("SITEI­D"), null)) ' adDouble
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param11", 5, 1,
-1, MM_IIF(Request.Form­("Employee"), Request.Form("Emplo­yee"), null)) '
adDouble
MM_editCmd.Execute
MM_editCmd.ActiveCo­nnection.Close

' append the query string to the redirect URL
Dim MM_editRedirectUrl
MM_editRedirectUrl = "afternewvacancy.as­p"
If (Request.QueryStrin­g <> "") Then
If (InStr(1, MM_editRedirectUrl,­ "?", vbTextCompare) = 0) Then
MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString­
Else
MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString­
End If
End If
Response.Redirect(M­M_editRedirectUrl)
End If
End If
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/­TR/xhtml1/DTD/xhtml1­-transitional.dtd">
<script type="text/javascri­pt" src="../Scripts/cur­rentdate.js"></scrip­t>
<%
Function fRandomReference()
Const sValidChars = "abcdefghijklmnopqr­stuvxyz"
Dim nCount
Dim sRet
Dim nNumber
Dim nLength
Randomize
nLength = Len( sValidChars )
For nCount = 1 To 10
nNumber = Int((nLength * Rnd) + 1)
sRet = sRet & Mid( sValidChars, nNumber, 1 )
Next
fRandomReference = sRet
End Function
%><html xmlns="http://www.w­3.org/1999/xhtml">
<head>
<meta http-equiv="Content­-Type" content="text/html;­ charset=utf-8" />
<title>Backoffice</­title>
<meta name="robots" content="noindex,no­follow">
<link href="Styles/client­sheet.css" rel="stylesheet" type="text/css">
<link href="Styles/client­forms.css" rel="stylesheet" type="text/css">
<meta http-equiv="refresh­" content="1201;URL=i­ndex.asp">
<script src="../SpryAssets/­SpryCollapsiblePanel­.js"
type="text/javascri­pt"></script>
<script type="text/javascri­pt" src="../Scripts/ref­lection.js"></script­>
<script src="../calendar/ca­lendar.js"></script>­
<link href="../SpryAssets­/SpryCollapsiblePane­l.css" rel="stylesheet"
type="text/css" />
<script type="text/javascri­pt" src="../Scripts/che­ck.js"></script>
</head>
<body>
<div id="wrapper">
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td class="toptableback­office"><table border="0" cellpadding="0"
cellspacing="0" class="toptableback­office">
<tr>
<td><img src="../images/recr­utalg.jpg" alt="Recruta" width="179"
class="reflect rheight50 ropacity33" id="recrlogo" /></td>
<td><table border="0" cellpadding="0" cellspacing="0"
class="toptableback­office2">
<tr>
<td class="recrutadate"­><script language="JavaScrip­t"
type="text/javascri­pt">
document.write("<sp­an
class=\"datetext\">­"+doClock("W0","%20"­,"D0","%20","M0","%2­0","Y0")+"</span>");­
</script></td>
</tr>
<tr>
<td class="loggedin"><%­= Session("NAME") %> you are logged in
</td>
</tr>
</table></td>
</tr>

</table></td>
</tr>
<tr>
<td class="tdrecrutanav­bar"><ul class="nav">
<% If Not adminlevel.EOF Or Not adminlevel.BOF Then %>
<li><a href="pagelist.asp"­>Page Manager</a></li>
<li><a href="consultantlis­t.asp">Consultant Manager</a></li>
<li><a href="newslist.asp"­>News Manager</a></li>
<li><a href="jobsearchcrit­eria.asp">JobSearch Manager</a></li>
<% End If ' end Not adminlevel.EOF Or NOT adminlevel.BOF %>
<li><a href="oldregcandlis­t.asp">Registered Users</a></li>
<li><a href="jbemgnt.asp">­Jobs by Email Manager</a></li>
<li><a href="account.asp">­Account</a></li>
<li><a href="logout.asp">L­og Out</a></li>
</ul></td>
</tr>
<tr>
<td><table border="0" cellpadding="0" cellspacing="0"
class="recrutamaina­rea">
<tr>
<td valign="top" class="tdrightrecru­tamain"><h1>New Vacancy </h1>


<p class="invalid">Ple­ase complete all fields </p>
<form ACTION="<%=MM_editA­ction%>" METHOD="POST" name="form1"
id="form1">
<table border="0" cellpadding="0" cellspacing="0"
class="outervacancy­table">
<tr>
<td class="editvacancyv­alue">Vacancy Title:</td>
<td class="editvacancyf­orm"><label>
<input name="title" type="text" id="title"
maxlength="50" />
</label></td>
</tr>
<tr>
<td class="editvacancyv­alue">Sector:</td>
<td class="editvacancyf­orm"><label>
<select name="jobtype" id="jobtype">
<option selected="selected"­ value="">Select</op­tion>
<%
While (NOT jobsectors.EOF)
%>
<option
value="<%=(jobsecto­rs.Fields.Item("Jobt­ype").Value)%>"><%=(­jobsectors.Fields.It­em("Jobtype").Value)­%></option>
<%
jobsectors.MoveNext­()
Wend
If (jobsectors.CursorT­ype > 0) Then
jobsectors.MoveFirs­t
Else
jobsectors.Requery
End If
%>
</select>
</label></td>
</tr>
<tr>
<td class="editvacancyv­alue">Location:</td>­
<td class="editvacancyf­orm"><label>
<select name="location" id="location">
<option selected="selected"­ value="">Select</op­tion>
<%
While (NOT joblocations.EOF)
%>
<option
value="<%=(joblocat­ions.Fields.Item("Jo­bLocation").Value)%>­"><%=(joblocations.F­ields.Item("JobLocat­ion").Value)%></opti­on>
<%
joblocations.MoveNe­xt()
Wend
If (joblocations.Curso­rType > 0) Then
joblocations.MoveFi­rst
Else
joblocations.Requer­y
End If
%>
</select>
</label></td>
</tr>
<tr>
<td class="editvacancyv­alue">Type:</td>
<td class="editvacancyf­orm"><label>
<select name="contract" id="contract">
<option selected="selected"­ value="">Select</op­tion>
<option value="Temporary">T­emporary</option>
<option value="Permanent">P­ermanent</option>
<option value="Contract">Co­ntract</option>
</select>
</label></td>
</tr>
<tr>
<td class="editvacancyv­alue">Pay Rate:</td>
<td class="editvacancyf­orm"><label>
<input name="payrate" type="text" id="payrate"
maxlength="50" />
</label></td>
</tr>
<tr>
<td class="editvacancyv­alue">Duration:</td>­
<td class="editvacancyf­orm"><label>
<input name="duration" type="text" id="duration"
maxlength="50" />
<input name="reference" type="hidden" id="reference"
value="<%=fRandomRe­ference()%>" />
</label></td>
</tr>
<tr>
<td class="editvacancyv­alue">Advert Expires on:</td>
<td class="editvacancyf­orm">
<input name="expirydate2" type="text" id="expirydate2"
onFocus="this.selec­t();lcs(this)"
onClick="event.canc­elBubble=true;this.s­elect();lcs(this)">
</td>
</tr>
<tr>
<td class="editvacancyv­alue">Description:</­td>
<td class="editvacancyf­orm"><label>
<textarea name="description" id="description"
rows="14"></textare­a>
</label></td>
</tr>
<tr>
<td><input name="SITEID" type="hidden" id="SITEID"
value="<%= Session("SITEID") %>" />
<input name="Employee" type="hidden" id="Employee"
value="<%= Session("EMPLOYEEID­") %>" /></td>
<td class="editbutton">­<label>
<input name="submit" type="submit" id="submit"
value="Submit" />
</label></td>
</tr>
</table>



<input type="hidden" name="MM_insert" value="form1" />
</form>

I've removed some of the not important stuff -- thanks
comment 3 answer | Add comment
Wednesday, 8 October 2008
Common connection string file Egsdar 02:05:42
 Hi, On ASP 3.0 I was able to create a file conn.vbs where the connection
string lines to the db resides in, how can i do the same on ASP.Net?

The reason of this is to avoid modify the line in only one file instead of
do it in several web pages.
comment 3 answer | Add comment
Gridview with more than 2 tables Egsdar 01:57:39
 Hello. I'd like to know how can use in a Gridview more than two tables and
when I hit the update button should display for the child table a
dropdownlist instead of a textbox?



How can i do this two things? Best regards and thanks in advance for the
help.
comment 3 answer | Add comment
Tuesday, 7 October 2008
Which is better... IN() or EXISTS() Mike Wazowski 23:13:44
 Hello

We're trying to resolve some performance issues and would be grateful for
your thoughts on the benefits of each of these methods to get the same
result.

Which is more performant?

SELECT Fields
FROM Table
WHERE FKeyField IN(
SELECT KeyField FROM OtherTable WHERE OtherValue = 'FilterValue'
)

or...

SELECT Fields
FROM Table
WHERE EXISTS(
SELECT Anything FROM OtherTable WHERE KeyField = Table.FKeyField AND
OtherValue = 'FilterValue'
)


Many thanks

Mike


comment 11 answers | Add comment
Monday, 6 October 2008
DB to XML - Best way to automate J-P-W 00:13:56
 I have two XML files that a generated from a database.

Presently I have to go into my admin section to click a link that
loads the pages that in turn create the pages.

As my database is updated (new entries relating to property sales)
this is a bit of a pain.

Has anyone dealt with this issue before?

I could have it so that when the home page is loaded the XML files are
generated - but this seems to be far to frequent, but the home page is
the only page I can guarantee is loaded!

Perhaps I should keep track of page creations, and perhaps look at the
last entry, if it's older than say 15 minutes then create the pages ??

This is not a code question, more advice on how this has been dealt
with by others. [I can't create a scheduled event on the server - it's
a shared one]

Many thanks

Jon
comment 2 answer | Add comment
Saturday, 4 October 2008
how to create dynamic html email Thsman 12:03:04
 I have a shopping cart that can have anything from one to hundreds of
different items ordered. I can generate an asp page to show the order
to the customer but I then want to send a similarly formatted email to
the site owner. How can I put this dynamic order table into an email
message body?
comment 6 answers | Add comment
Arguments are of the wrong type...connecting to Access DB Thecubemonkey 01:53:42
 Hi everyone,

I'm getting the following error:

ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are
in conflict with one another.
/newsite/faq.asp, line 57

Can you look at the code below and let me know if the problem is my
code or if there is a server setting that needs adjustment. Thanks.

___________________­____________________­____________________­_______________

I am using a global.asa file with:
SCRIPT LANGUAGE="VBScript"­ RUNAT="Server">

Sub Application_OnStart­()

Dim strConn
strConn = "Provider=Microsoft­.Jet.OLEDB.4.0;Data Source=D:\Departmen­ts
\MBA_UBALT\newsite\­faq.mdb"
Application("strCon­n") = strConn

End Sub

</SCRIPT>

The ASP page code is:

<%
Dim rsFAQ
Set rsFAQ = Server.CreateObject­("ADODB.Recordset")

rsFAQ.Open "FAQ", Application("strCon­n"), adOpenKeyset,
adLockReadOnly, adCmdText


Do While Not rsFAQ.EOF
Response.Write "<li><b>" & rsFAQ("Question") & "</b>"
Response.Write "<p>" & rsFAQ("Answer") & "</p></li>"
rsFAQ.MoveNext
Loop
If rsFAQ.BOF Then
Response.Write "<p>No FAQs in the database!</p>" & vbNewLine
End If

rsFAQ.Close
%>
comment 2 answer | Add comment
Friday, 3 October 2008
Active Server Pages error 'ASP 0113' Justin Doh 23:54:50
 "Active Server Pages error 'ASP 0113'
Script timed out"

I am still getting this error, and I am not sure how I could fix this.

When I execute the query at SQL 2005, it only takes 8 seconds.
The stored procedure for this report has been already went through Database
Engine Tuning Advisor to put all the necessary indexes on the associated
tables.

It happens when I run this report on other new web server.

I already put this on the ASP web page for this report.

<% server.ScriptTimeou­t = 4000 %>

.ConnectionTimeout = 4800
.CommandTimeout = 4800

Any idea?
Thanks.

comment 25 answers | Add comment
How to efficiently get a random set of records from a DB Laphan 23:51:49
 Hi All

I use a MySQL DB with my ASP classic web app.

I've been asked if I can create a routine whereby I get a random number of
products (records) from the DB and display these on the site. Basically
every time a visitor hits the home page, they want the site to display a
random selection of say 6 products.

I have no problems getting the data and displaying it, my problem is
grabbing 6 random records efficiently.

My initial thought was bring back all of the records to a local array (like
I normally do) and then pick 6 random records in VBscript, but if a DB has
12,000 products this is a silly server hit to bring them all back just to
display 6 out of the 12,000.

The products table doesn't have an auto-number field, the unique-ness is
managed by the product's own unique stock code, but this isn't a sequential
number - its alphanum.

Any ideas on how I can get 6 randoms from the DB rather than bringing all
locally?

Thanks


comment 4 answer | Add comment
Thursday, 2 October 2008
W3WP memory usage Sean 21:00:09
 I have two win2003 sp1 servers running iis 6.0 running the same application.
When I connected to the first server a W3WP process (application pool is
created) whoose size is approax 14MB When I connect to the other machine the
size is approx 114MB. Does anyone have any idea what the extra 100 MB is
being used for

One Thing to note .NEt 1.1 was installed on the server consuming the 100MB.
I have removed the extension and uninstalkled the Asp Net componment from
machine.


I have looked at the metabase of both servers and they seem to be the same.

Can anyone help.?

I believe it maybe a throw back to the .Net installation but am at a loss.

comment 10 answers | Add comment
ASP to Excel Image Alignment Problems Kevin G. 11:43:38
 Hello,

I'm exporting an ASP page to Excel using 'Response.ContentTy­pe =
"application/vnd.ms­-excel"' and it is working fine for the most part
except the particular page I'm exporting has images, and no matter
what style/alignment/etc­. that I provide to the <td> tag that
contains
the <img> tag, it always left-aligns the image in the Excel cell.
Has anyone had any success with controlling the alignment of images
when exporting from ASP to Excel using
'Response.ContentTy­pe = "application/vnd.ms­-excel"'? If so, would
you
be willing to share your secret?

Thanks in advance!

Kevin G.
comment 2 answer | Add comment
Wednesday, 1 October 2008
RE: Jason Gilbert, CTO of CyberCoders.com, passed away K 12:11:49
 I have been searching for an old friend with the same name and age - Jason Gilbert. I am upset that this might be him. The Jason I am looking for was tall, blond hair, very funny, liked fast cars, Rush, drove a yellow Porsche years ago. Grew up in the Bay Area?

From http://search.yahoo­.com/search?fr=msgr-­buddy&ei=UTF-8&p=jas­on gilbert cybercoders

Posted via DevelopmentNow.com Groups
http://www.developm­entnow.com
comment 1 answer | Add comment
Tuesday, 30 September 2008
Forms sending some blank emails Guest 04:20:46
 Hi, I'm validating a form with this ASP but receiving some blank email
responses; does anyone see anything wrong with it?:

function isFormVarExcluded(t­hisForm, strToCheck)
{
var strExcludeVars = thisForm.elements["$excludevars"].v­alue;
var arrExcludeVars = strExcludeVars.spli­t(",");
for (var j=0; j<arrExcludeVars.le­ngth; j++)
{
if (arrExcludeVars[j] == strToCheck) return true;
}
return false;
}

function getFormVars(thisFor­m)
{
var oFormVars = thisForm.elements["$formvars"];
var strPrevVal = "";
oFormVars.value = "";
for (var x=0,objElem=null; objElem=thisForm.el­ements.item(x); x++)
{
if (!isFormVarExcluded­(thisForm, objElem.name))
{
if (objElem.name != strPrevVal)
oFormVars.value += objElem.name + ",";
}
strPrevVal = objElem.name;
}
oFormVars.value = oFormVars.value.sub­str(0,oFormVars.valu­e.length-1);
}
comment 1 answer | Add comment
Monday, 29 September 2008
Active Server Pages error 'ASP 0113' Script timed out Justin Doh 22:31:32
 I am constantly getting the 'Script timed out' error, and would like to see
if there is any way I could modify the ASP page.

I think I did all I could to improved the performance at the database table
level, but when it comes to the ASP, the error occurs most of time.
This error happens when this ASP page has been moved to a new server.

I modified the "server.ScriptTimeo­ut = " at the ASP and also at IIS.
The report does not retrieve the whole records, but it stops in the middle,
and giving this error message.

I am also curious whether .AbsolutePosition might be a factor? But on the
previous server, I had no problem.

Here is the part of ASP page where it retrieves a data.

strSQL = "spHWABPOOrderSelec­t_1 " & nAcctNum
Dim rsHBSBPOOrder : Set rsHWABPOOrder = New clsRecordSet
With rsHBSBPOOrder
.ConnectionString = ConnHBS
.Load(strSQL)
Dim nTmp
Do While Not .EOF
if .AbsolutePosition = 0 Then
nBPO1Val = Trim(.Fields("curBP­OAsIs")&"")
If Len(nBPO1Val) <> 0 Then
nBPO1Val = FormatCurrency(nBPO­1Val, 0)
End If
nTmp = nBPO1Val
dtBPO1 = Trim(.Fields("dtRec­eived")&"")
ElseIf .AbsolutePosition = 1 Then
nBPO2Val = Trim(.Fields("curBP­OAsIs")&"")
If Len(nBPO2Val) = 0 Then
nBPO2Val = nTmp
Else
nBPO2Val = FormatCurrency(nBPO­2Val, 0)
End If
dtBPO2 = Trim(.Fields("dtRec­eived")&"")
End If
.MoveNext
Loop
End With
Set rsHWABPOOrder = Nothing
comment 3 answer | Add comment
Consuming Web Service using Classic ASP Guest 21:06:56
 I am getting the same problem. A web service can be accessed if both web service and ASP page are on the same server, but if we change it to different servers then it's not returning any response XML. What problem could have been in this I am using MSXML2.ServerXMLHTT­P to retrieve XML.

Thanks
comment 1 answer | Add comment
Missing close of script tag Ron Hinds 14:48:28
 I'm getting this error on IIS6/W2K3 SP2 Standard Edition. The odd thing is,
this exact same code runs on a machine that, as far as I know, is configured
identically. One other strange thing about the machine with the error: When
I first setup the machine and added the web application, it wouldn't run at
all. I finally figured out by searching the newsgroups that the Web Service
Extension for ASP needed to be "Allowed". I never had to do this on the
original (development) machine. I'm thinking I've misconfigured somehting,
but I have no idea what or how to fix it. Help!


comment 4 answer | Add comment
Classic ASP using IIS7 - Error 500 Ryan Ritten 03:04:31
 Hey all,

I am with godaddy for webhosting right now. The have me using IIS7.
When I run my ASP page I get the error :

Error 500 :There is a problem with the resource you are looking for,
and it cannot be displayed.

Basically, there is an error in my code, however, it doesn't tell me
the line number the error was found on. After searching the web I
found out how to turn on the more detailed error reporting... but you
have to do it on the webserver. I don't have access to the webserver.

After spending allot of time chatting with godaddy, they claim I can
turn this on in the web.config file. I know this can be turn on for
ASP.NET in the web.config file... but as far as I know, not classic
asp.

Am I wrong? Is godaddy right? How do i turn on error line numbers?

Thanks so much,
Ryan Ritten
comment 5 answers | Add comment
Saturday, 27 September 2008
On Error redirect Shank 03:05:22
 I have a page that will timeout and crash with a timeout error on line 200.

How can I do a redirect instead of the page halting if such an error does
happen?

thanks


comment 4 answer | Add comment

Add new topic:

How:  Register )
 
Логин:   Пароль:   
Комментировать могут: Премодерация:
Topic:
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > ASP web-programmingGo to page: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

see also:
Custom type where not all elements are…
string.IndexOf(string s) behaviour
пройди тесты:
see also:
Blackfriday&Cybermonday special…
'Jasper' Xbox 360s finally availabl...
Nintendo makes $6 profit on each Wii…

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .