What is meant by "Discussions"?
ASP web-programming
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

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

  Top users: 
  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:
Wednesday, 24 September 2008
Preview file from link? Betina Andersen 11:03:44
 I have a page with links to different files (doc, pdf, jpg, tiff, xls
etc.) - now I am supposed to let the user preview them by holding the mouse
over a link, somewhat like Vistas function when you hold the mouse over a
program in the taskbar it pops up - can this be done i asp and how?

Regard Betina


comment 7 answers | Add comment
Tuesday, 23 September 2008
Number of Views for a Link Error Please Please Please Help. iahamed via WebmasterKB.com 09:37:01
 Hi all,

I Need to add a "Number of Views to a Link" to display in the grid.asp (which
the projects starts from iis) page when some one wants to edit the db, by
this way I can see how many times the Link is accessed. It gives me an error
styled,

ADODB.Recordset error '800a0cc1'
Item cannot be found in the collection corresponding to the requested name or
ordinal.
/views/edit.asp, line 44

I have made some error in the edit.asp code where I have added the count
value.

Line 44 edit.asp

'This is for the number of Views or Hits the link got Code
rs.Execute("UPDATE salinfo SET ClickCount = ClickCount + 1 WHERE ID=" &
rs("ID"))

In the DB I have created a feild named: ClickCount as a Number in the table
salinfo,
I am stuck with the count function method can Some one Please Help.

The counter should Display when Some one wants to Edit the Info in the
grid.asp


-------------------­-------------------
grid.asp code as follows:


<%
' Generates a list of uploaded files
Response.Buffer = True
' Connection String
Dim connStr
connStr = "Provider=Microsoft­.Jet.OLEDB.4.0; Data Source=" & Server.MapPath
("sal.mdb")
%>
<html>
<head>
<!-- Grid.asp-->
<title>:The Opening File for Views:</title>
</meta>
<link href="style.css" rel="stylesheet" type="text/css" />
<script language="Javascrip­t1.2">
<!--
function elimina()
{
return confirm("Are you sure you want to delete this record?");
}
-->
</script>
</head>
<body topmargin="5" leftmargin="0" marginwidth="0" link="#143347"
vlink="#2E4B5B" alink="#2E4B5B">

<table border="0" width="580" cellspacing="0" cellpadding="0"
id="table4" height="174">
<tr>
<td width="545" colspan="2" height="32">
Views</td>
</tr>
<tr>
<td width="517" height="45" valign="top">
&nbsp;</td>
<td width="63" height="142" valign="top" rowspan="2">
<p>&nbsp;</td>
</tr>
<tr>
<td width="517" height="97" valign="top">
<div align="center">
<table border="1" width="446" id="table16" height="49"
cellpadding="0" cellspacing="0" bordercolorlight="#­F8F8F8"
bordercolor="#E6E6E­6">
<tr><td valign="top" height="31">&nbsp;<­/td>
<td valign="top" height="31" width="74"></td>
<td valign="top" height="31"></font>­</td>
<td valign="top" height="31" colspan="3">
<p align="center">
<a href="input.asp">
<img border="0" src="images/add.gif­" width="88"
height="24"></a></t­d>
</tr>
<tr>
<td width="88" height="24">
<b><font face="Arial" size="2"
color="#838383">Nam­e</font></b></td>
<td width="88" height="24">
<b><font face="Arial" size="2"
color="#838383">Pos­ition</font></b></td­>
<td width="88" height="24">
<b><font face="Arial" size="2"
color="#838383">Sal­ary</font></b></td>
<td width="27" height="24"><p align="center">
<b>
<font face="Arial" size="2" color="#838383">Age­</font></b></td>
<td width="30" height="24"><p align="center">&nbs­p;</td>
<td width="116" height="24"><p align="center">&nbs­p;</td>
</tr>
<tr><% Dim rs
Set rs = Server.CreateObject­("ADODB.Recordset")

' opening connection
rs.Open "select [ID],[DBName],[DBposition],[DBsalary],[DBage],
[ClickCount] from salinfo order by [ID] desc", connStr, 3, 4

While Not rs.EOF%><td width="88" height="24"><font color="777777"><spa­n
style="font-size: 8.0pt; font-family: Arial"><%=rs("DBNam­e")%
</a></span></font>­</td>
<td width="88" height="24"><font color="777777"><spa­n style="font-size: 8.
0pt; font-family: Arial"><%=rs("DBpos­ition")%></span></fo­nt></td>
<td width="88" height="24"><font color="777777"><spa­n style="font-size: 8.
0pt; font-family: Arial"><%=rs("DBsal­ary")%></span></font­></td>
<td width="27" height="24"><font color="777777"><spa­n style="font-size: 8.
0pt; font-family: Arial"><%=rs("DBage­")%></span></font></­td>
<td width="30" height="24" bgcolor="#F6F6F6">
<p align="center"><a href="erase.asp?ID=­<%=rs("ID")%>"onClic­k="return elimina
();"><img border="0" src="images/del.gif­" width="19" height="19"></a></t­d>
<td width="116" height="24" bgcolor="#F6F5F5"><­a href="edit.asp?ID=<­%=rs("ID")
%>"><span style="font-size: 8.0pt; font-family: Arial">Edit</span><­img
border="0" src="images/edit.gi­f" width="19" height="19"><span style="font-
size: 8.0pt; font-family: Arial">(views: <%=rs("ClickCount")­%>)
</a></span></td>
</tr><%
rs.movenext
'loop
wend
rs.Close
Set rs = Nothing
'connStr.Close
Set connStr = Nothing
'else
'Response.redirect "admin.asp"
'end if
%></table>
</form>
</div></td></tr>
</table>
</body>
</html>


-------------------­--------------

This is the Edit.asp Code:



<!-- Edit.asp-->
<html>
<head>
<title>:Views Edit:</title>
</meta>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body topmargin="5" leftmargin="0" marginwidth="0" link="#143347"
vlink="#2E4B5B" alink="#2E4B5B">
<table border="0" width="100%" cellspacing="0" cellpadding="0" id="table1"
height="49">
<tr>
<td valign="top">
<div align="center">
<table border="0" width="781" cellspacing="0" cellpadding="0" id="table2">
<tr>
<td colspan="7" height="589" valign="top">
<table border="0" width="781" id="table3" cellspacing="0"
cellpadding="0" height="450">
<tr>
<td valign="top">
<table border="0" width="580" cellspacing="0" cellpadding="0"
id="table4" height="560">
<tr>
<td width="545" colspan="2" height="32">
&nbsp;</td>
<td width="35" height="570" rowspan="4"
background="images/­016rightbor.gif">&nb­sp;</td>
</tr>
<tr>
<td width="545" colspan="2" height="32">
Edit / and added Count Code</td>
</tr>
<tr>
<td width="366" height="19" valign="top">
&nbsp;</td>
<td width="205" height="509" valign="top" rowspan="2">
<p>&nbsp;</td>
</tr>
<tr>
<td width="366" height="506" valign="top">
<div align="center">

<%
Set rs = Server.CreateObject­("ADODB.recordset")
strProvider="Provid­er=Microsoft.Jet.OLE­DB.4.0;Data Source=" & server.
MapPath ("sal.mdb")

'This is for the number of Views or Hits the link got Code
rs.Execute("UPDATE salinfo SET ClickCount = ClickCount + 1 WHERE ID=" &
rs("ID"))

strIDNum=Request("I­D")
strQuery="select * FROM salinfo WHERE ID = " &strIDNum
rs.Open strQuery, strProvider
%>
<table border="0" width="331" id="table16" height="49"
cellpadding="2">
<tr>
<td valign="top" height="26">
&nbsp;</td>
<td height="26" width="165">
<font size="2" color="#003300">Mod­ify Data</font></td><td­
valign="top" height="26" colspan="2"><a href="grid.asp">Vie­w
Data</a></font></td­>
</tr>
<tr>
<td valign="top" width="61">
<b>
<font face="Arial" size="2" color="#838383">Nam­e</font></b></td><td­
valign="top" width="256" colspan="3">
<form name=update action=ediddone.asp­?id=<%=rs("id")%> method=POST>

<input class="inputdb" name="inpname" id="name6" size="48" value="<%=rs
("DBName")%>" ></td>
</tr>
<tr>
<td valign="top" width="61">
<b>
<font face="Arial" size="2" color="#838383">Pos­ition</font></b></td­>
<td valign="top" width="256" colspan="3">
<input class="inputdb" name="inpposition" id="name7" size="48" value="<%
=rs("DBposition")%>­" ></td>
</tr>
<tr>
<td valign="top" width="61">
<b>
<font face="Arial" size="2" color="#838383">Sal­ary
</font></b></td>
<td valign="top" width="256" colspan="3">
<font color="777777"><spa­n style="font-size: 8.0pt; font-family:
Arial"><%=rs("DBsal­ary")%></span></font­></td>
</tr>
<tr>
<td valign="top" width="61">
<b>
<font face="Arial" size="2" color="#838383">Age­</font></b></td>
<td valign="top" width="256" colspan="3">
<input class="inputdb" name="inpage" id="name9" size="48" value="<%=rs
("DBage")%>" ></td>
</tr>
<tr>
<td valign="top">
<p align="justify">&nb­sp;</td>
<td valign="top" colspan="2" width="179">
&nbsp;</td>
<td valign="top" width="71">
<input type="submit" value="Update" style="font-size: 10pt; font-
family: Arial; color: #FFFFFF; font-weight: bold; border: 1px solid #174A82;
background-color: #6599FE"></td>
</tr>
</table>
</div><p>&nbsp;</td­>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<%
rs.Close
Set rs = Nothing
'connStr.Close
Set strProvider = Nothing
%>
</div>
</td>
</tr>
</table>
</form>
</body>
</html>


Your Help in this regard will be highly appreciated.

Thank you.

--
Message posted via WebmasterKB.com
http://www.webmaste­rkb.com/Uwe/Forums.a­spx/asp/200809/1

Add comment
Function to Return Stored Procedure Record Set SethM 00:34:39
 I have a stored procedure that returns a record set. I want to
functionalize this so I can have multiple presentations of the same
record set. However, I can not get rs_event.open StoreProc to pass
through the function, so I can use rs_event("Title"), etc, etc. Is
this possible to do? If so how? Thanks.

Regards,

Seth
comment 6 answers | Add comment
Monday, 22 September 2008
lots of fake Compile errors SP1 C# ASP.NEt Randys 15:03:01
 This just started when I updated to sp 1 working on a APS.net, Visual Studio
2008, c# Project.
When I open a project, I get tons of Errors showing in the list 300+
if I double click on them I go to the page see the errors with the red
squigles and after about 10 seconds they go away. If i do this on on all the
pages list I can get down to zero errors. I also found as soon as I hit
Publish they go away. The big pain is if I complie and get an error (a really
one) it will show the 1 0r 2 that I have and about 20 seconds later it starts
putting al the fake errors in the list.


comment 2 answer | Add comment
How to use .dll extension on IIS? Sm 12:31:02
 I have to develop an application (woeking on IIS) witch have to accept input
string through HTTP protocol. Client sends request: "GET
/Test/Test.dll?list­_of_parameters...". I can't change this string on client
side. How to tell IIS (on XP Pro SP3) to accept this data and call some other
proccess to use this. How IIS can open a *.dll page?
Add comment
Friday, 19 September 2008
Web Config IIS 7.0 Anon 23:37:02
 I am not sure if this is the right forum.

Environment : Windows server 2008, IIS 7.0

I get the 'Could not load the file or assembly 'blowery.web.httpCo­mpress' or
one of its dependencies. The system cannot fond the file specified error.
When I comment out the line in the web config file, I get the error on the
line following that.

I have all the dll files in the bin folder.

I am attaching the web config file.

Is this a permission issue ?

Thanks in advance

<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="system.web.ex­tensions"
type="System.Web.Co­nfiguration.SystemWe­bExtensionsSectionGr­oup,
System.Web.Extensio­ns, Version=1.0.61025.0­, Culture=neutral,
PublicKeyToken=31bf­3856ad364e35">
<sectionGroup name="scripting"
type="System.Web.Co­nfiguration.Scriptin­gSectionGroup, System.Web.Extensio­ns,
Version=1.0.61025.0­, Culture=neutral, PublicKeyToken=31bf­3856ad364e35">
<section name="scriptResourc­eHandler"
type="System.Web.Co­nfiguration.Scriptin­gScriptResourceHandl­erSection,
System.Web.Extensio­ns, Version=1.0.61025.0­, Culture=neutral,
PublicKeyToken=31bf­3856ad364e35" requirePermission="­false"
allowDefinition="Ma­chineToApplication"/­>
<sectionGroup name="webServices"
type="System.Web.Co­nfiguration.Scriptin­gWebServicesSectionG­roup,
System.Web.Extensio­ns, Version=1.0.61025.0­, Culture=neutral,
PublicKeyToken=31bf­3856ad364e35">
<section name="jsonSerializa­tion"
type="System.Web.Co­nfiguration.Scriptin­gJsonSerializationSe­ction,
System.Web.Extensio­ns, Version=1.0.61025.0­, Culture=neutral,
PublicKeyToken=31bf­3856ad364e35" requirePermission="­false"
allowDefinition="Ev­erywhere"/>
<section name="profileServic­e"
type="System.Web.Co­nfiguration.Scriptin­gProfileServiceSecti­on,
System.Web.Extensio­ns, Version=1.0.61025.0­, Culture=neutral,
PublicKeyToken=31bf­3856ad364e35" requirePermission="­false"
allowDefinition="Ma­chineToApplication"/­>
<section name="authenticatio­nService"
type="System.Web.Co­nfiguration.Scriptin­gAuthenticationServi­ceSection,
System.Web.Extensio­ns, Version=1.0.61025.0­, Culture=neutral,
PublicKeyToken=31bf­3856ad364e35" requirePermission="­false"
allowDefinition="Ma­chineToApplication"/­>
</sectionGroup>
</sectionGroup>
</sectionGroup>
<sectionGroup name="blowery.web">­
<section name="httpCompress"­
type="blowery.Web.H­ttpCompress.SectionH­andler, blowery.Web.HttpCom­press"/>
</sectionGroup>
<sectionGroup name="applicationSe­ttings"
type="System.Config­uration.ApplicationS­ettingsGroup, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a­5c561934e089">
<section name="SMWeb05.Prope­rties.Settings"
type="System.Config­uration.ClientSettin­gsSection, System, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a­5c561934e089" requirePermission="­false"/>
</sectionGroup>
</configSections>
<appSettings>
<add key="Login.BruteFor­ceDetection.TriesBef­oreBlock" value="10"/>
<add key="Login.BruteFor­ceDetection.BlockTim­e" value="5"/>
<add key="MailServiceAdd­ress" value="IPC"/>
</appSettings>
<connectionStrings/­>
<!-- This adds an http Compression Module to SmarterMail.
see http://www.blowery.­org/code/HttpCompres­sionModule.html for more
info
-->
<blowery.web>
<!--
acceptable values:
<compressionModule preferredAlgorithm=­"deflate|gzip"
compressionLevel="h­igh|normal|low|none"­/>
gzip always uses compressionLevel="n­ormal"
-->
<httpCompress preferredAlgorithm=­"deflate" compressionLevel="l­ow">
<excludedMimeTypes>­
<add type="image/gif"/>
<add type="image/jpg"/>
<add type="image/jpeg"/>­
<add type="application/o­ctet-stream"/>
<add type="application/v­nd.syncml+xml"/>
</excludedMimeTypes­>
<excludedPaths>
<add path="frmReadMail_A­ttachment.aspx"/>
<add path="WebResource.a­xd"/>
<add path="frmKeepAlive.­aspx"/>
<add path="frmPrintPrevi­ew.aspx"/>
</excludedPaths>
</httpCompress>
</blowery.web>
<system.web>
<xhtmlConformance mode="Transitional"­/>
<httpModules>
<clear/>
<add name="OutputCache" type="System.Web.Ca­ching.OutputCacheMod­ule"/>
<add name="Session" type="System.Web.Se­ssionState.SessionSt­ateModule"/>
<!-- <add name="FormsAuthenti­cation"
type="System.Web.Se­curity.FormsAuthenti­cationModule" />
<add name="RoleManager" type="System.Web.Se­curity.RoleManagerMo­dule" />
<add name="UrlAuthorizat­ion"
type="System.Web.Se­curity.UrlAuthorizat­ionModule" />
<add name="FileAuthoriza­tion"
type="System.Web.Se­curity.FileAuthoriza­tionModule" />
<add name="AnonymousIden­tification"
type="System.Web.Se­curity.AnonymousIden­tificationModule" />
-->
<add name="ErrorHandlerM­odule"
type="System.Web.Mo­bile.ErrorHandlerMod­ule, System.Web.Mobile,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f­5f7f11d50a3a"/>
<add name="ScriptModule"­ type="System.Web.Ha­ndlers.ScriptModule,­
System.Web.Extensio­ns, Version=1.0.61025.0­, Culture=neutral,
PublicKeyToken=31bf­3856ad364e35"/>
<add name="CompressionMo­dule" type="blowery.Web.H­ttpCompress.HttpModu­le,
blowery.web.HttpCom­press"/>
<add name="RadUploadModu­le"
type="Telerik.WebCo­ntrols.RadUploadHttp­Module, RadUpload.Net2"/>
</httpModules>
<httpHandlers>
<add verb="*" path="EditorStyleSh­eetHandler.ashx"
type="SMWeb05.Helpe­rClasses.Handler.Edi­torStyleSheetHandler­"/>
<add verb="*" path="StyleSheet.as­hx"
type="SmarterTools.­Web.HttpHandlers.Com­monCssHandler, SmarterTools.Web"/>­
<add verb="*" path="Javascript.as­hx"
type="SmarterTools.­Web.HttpHandlers.Com­monJSHandler, SmarterTools.Web"/>­
<add verb="*" path="TempResourceH­andler.ashx"
type="SmarterTools.­Web.HttpHandlers.Tem­pResourceHandler, SmarterTools.Web"/>­
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false"
type="System.Web.Sc­ript.Services.Script­HandlerFactory, System.Web.Extensio­ns,
Version=1.0.61025.0­, Culture=neutral, PublicKeyToken=31bf­3856ad364e35"/>
<add verb="*" path="*_AppService.­axd" validate="false"
type="System.Web.Sc­ript.Services.Script­HandlerFactory, System.Web.Extensio­ns,
Version=1.0.61025.0­, Culture=neutral, PublicKeyToken=31bf­3856ad364e35"/>
<add verb="*" path="Telerik.RadUp­loadProgressHandler.­aspx"
type="Telerik.WebCo­ntrols.RadUploadProg­ressHandler, RadUpload.Net2"></a­dd>
<add verb="GET,HEAD" path="ScriptResourc­e.axd"
type="System.Web.Ha­ndlers.ScriptResourc­eHandler, System.Web.Extensio­ns,
Version=1.0.61025.0­, Culture=neutral, PublicKeyToken=31bf­3856ad364e35"
validate="false"/>
</httpHandlers>
<pages validateRequest="fa­lse" buffer="true">
<controls>
<add tagPrefix="STWC" namespace="SmarterT­ools.Web.Controls"
assembly="SmarterTo­ols.Web"/>
<add tagPrefix="SMWC" namespace="SMWeb05.­UserControls"
assembly="SMWeb05"/­>
<add tagPrefix="UC" namespace="SMWeb05.­UserControls" assembly="SMWeb05"/­>
<add tagPrefix="asp" namespace="System.W­eb.UI"
assembly="System.We­b.Extensions, Version=1.0.61025.0­, Culture=neutral,
PublicKeyToken=31bf­3856ad364e35"/>
</controls>
</pages>
<compilation debug="false">
<assemblies>
<add assembly="System.We­b.Extensions, Version=1.0.61025.0­,
Culture=neutral, PublicKeyToken=31bf­3856ad364e35"/>
<add assembly="System.De­sign, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B03F­5F7F11D50A3A"/>
<add assembly="System.Wi­ndows.Forms, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B77A­5C561934E089"/>
</assemblies>
</compilation>
<urlMappings enabled="true">
<add url="~/Main/frmMess­agesX.aspx" mappedUrl="~/Main/f­rmMessages.aspx"/>
<add url="~/Main/frmMess­agesAdv.aspx" mappedUrl="~/Main/f­rmMessages.aspx"/>
</urlMappings>
<authentication mode="Windows"/>
<httpRuntime maxRequestLength="1­0240"/>
<customErrors mode="Off" defaultRedirect="fr­mError.aspx"/>
</system.web>
<system.web.extensi­ons>
<scripting>
<scriptResourceHand­ler enableCompression="­false" enableCaching="true­"/>
</scripting>
</system.web.extens­ions>
<!--<system.webServ­er>
<validation validateIntegratedM­odeConfiguration="fa­lse"/>
<modules>
<add name="ScriptModule"­ preCondition="integ­ratedMode"
type="System.Web.Ha­ndlers.ScriptModule,­ System.Web.Extensio­ns,
Version=1.0.61025.0­, Culture=neutral, PublicKeyToken=31bf­3856ad364e35"/>
</modules>
<handlers>
<remove name="WebServiceHan­dlerFactory-Integrat­ed" />
<add name="ScriptHandler­Factory" verb="*" path="*.asmx"
preCondition="integ­ratedMode"
type="System.Web.Sc­ript.Services.Script­HandlerFactory,
System.Web.Extensio­ns, Version=1.0.61025.0­, Culture=neutral,
PublicKeyToken=31bf­3856ad364e35"/>
<add name="ScriptHandler­FactoryAppServices" verb="*"
path="*_AppService.­axd" preCondition="integ­ratedMode"
type="System.Web.Sc­ript.Services.Script­HandlerFactory,
System.Web.Extensio­ns, Version=1.0.61025.0­, Culture=neutral,
PublicKeyToken=31bf­3856ad364e35"/>
<add name="ScriptResourc­e" preCondition="integ­ratedMode"
verb="GET,HEAD" path="ScriptResourc­e.axd"
type="System.Web.Ha­ndlers.ScriptResourc­eHandler, System.Web.Extensio­ns,
Version=1.0.61025.0­, Culture=neutral, PublicKeyToken=31bf­3856ad364e35" />
</handlers>
</system.webServer>­-->
<applicationSetting­s>
<SMWeb05.Properties­.Settings>
<setting name="SMWeb05_Produ­ctInfo_ProductInfo" serializeAs="String­">
<value>http://www.s­martertools.com/bill­ing/services/Product­Info.asmx</value>
</setting>
</SMWeb05.Propertie­s.Settings>
</applicationSettin­gs>
</configuration>



comment 2 answer | Add comment
RE: CreateTextFile in secure FTP folder Old Pedant 09:39:01
 "Jennifer" wrote:

I have write permission on the folder, but the folder is also secured for
FTP. Should I somehow pass FTP permissions in this script?

It's not relevant whether _you_ have permisson on the folder. The question
is whether IIS has permissions. ASP runs under the aegis of the IIS "user",
which is named "IUSR_xxx" where "xxx" is the name of the machine where IIS is
running.

*THAT* is the user that must have full persmissions on the folder.


comment 2 answer | Add comment
Thursday, 18 September 2008
WCF from C++ HayBaler 22:56:01
 I have a legacy C++ application running in a non .NET environment, that needs
to talk to a WCF C# web service. Is this possible, and how?
Add comment
Problems using WinHttp.WinHttpRequ­est.5.1 to access an https (ssl) page on an Oracle-Application-­S Brian Pitt 19:31:51
 Hi

I am trying to use WinHttp.WinHttpRequ­est.5.1 to access an https (ssl)
page on an Oracle-Application-­Server-10g and I keep getting a
-2147483638 error. I am able to use the exact same script to access
https pages on other servers and I can access http requests on oracle
application servers.

The problem is isolated to accessing https pages on oracle application
servers and I have now come up against this problem with three of my
clients who are running oracle servers so it looks like there is
something about WinHttpRequests that the oracle servers doesnt like. I
have tried setting all the headers in the WinHttpRequest to match the
headers sent when accessing the site in firefox but still no luck.

If anyone has ever come across this problem and has figured out the
cause I would be really grateful if you could enlighten me.

Many thanks
Add comment
Log in and security with classic asp Jan T. 19:22:37
 I wonder if anybody know a web site that has a good tutorial on this
subject.

What I want to do, is make a log in Page, and make sure that all my
pages is validating that the user is loged in until he or she logs out.

May be someone would like to give an example in this news group too?
Thank you for any help!

BTW, I am using Access 2000 and classic ASP.

Regards
Jan


comment 11 answers | Add comment
ASP + Crystal Report 9 on WinServer 2003 and IIS6: Blank Screen Vincent 18:53:33
 We have used Crystal Report Web Viewer on ASP pages (using ActiveX),
and it works perfectly on Windows 2000 machine with IIS 5 and SQL 2K.
Now we already migrated the applications to Windows Server 2003
running IIS6, and still SQL2K. All the application works perfectly,
except for the Crystal Report. Everytime the report in ActiveX shown
blank, only the toolbar the frame shown, which means that the ActiveX
is loaded but the report cannot be shown. I check through the Windows
Event Viewer: there're warnings said:

A process serving application pool 'DefaultAppPool' suffered a fatal
communication error with the World Wide Web Publishing Service. The
process id was '3580'. The data field contains the error number. (the
number is 0000: 8007006d).

A process serving application pool 'DefaultAppPool' terminated
unexpectedly. The process id was '4708'. The process exit code was
'0x80'.

Check through log file in C:\Windows\System32­\Log Files\httperr log
file:
Date/Time IP 80 HTTP/1.1 POST URL Connection_Abandone­d_By_AppPool
DefaultAppPool

I have try to create new app pool, and grant to Network Service or
even Local System, but the report still shown blank. Anyone has idea/
experience? Please help.
Add comment
Decimal value setting problem (ASP & ADODB.Recordset value & MSSQL Server & 2003 Serv Avcitamer 18:10:54
 We upgraded our system and problem below occured, pleas help me...

Windows 2003 server SP1
When I set a decimal DB field value to "123,32" (using
ADODB.recordset ) updated value was ok (123.32)

Windows 2003 server SP2
Now when I set a decimal DB field value to "123,32" (using
ADODB.recordset ) updated value is (123.32)

Thanks

Systems
Windows 2003 server Enterprise SP2
SqlServer 2000 SP4
Activex Data Object 2.8~
IIS7, Classsical ASP

comment 6 answers | Add comment
Windows Vista IIS7 Ultimate Dosent load my ASP pages Please help. iahamed via WebmasterKB.com 13:23:28
 HTTP Error 404.3 - Not Found
The page you are requesting cannot be served because of the extension
configuration. If the page is a script, add a handler. If the file should be
downloaded, add a MIME map.

It never works. Vista dosent load my ASp pages can some one help me to get
this working. I have set permitions to the wwwroot and full permisions. Still
not working.

What do I have to do to get this work?

--
Message posted via WebmasterKB.com
http://www.webmaste­rkb.com/Uwe/Forums.a­spx/asp/200809/1

comment 1 answer | Add comment
Wednesday, 17 September 2008
Return value from Stored Procedure Dooza 18:06:47
 I have a stored procedure that takes a number of inputs, does a bulk
insert, and then outputs a recordset. When I run the stored procedure in
Server Management Studio I also get a return value from the stored
procedure which is an INT.

I want to access this return value on my ASP/VBScript page, but do not
know how to access it.

Here is my code so far:

<%
Dim rsImport
Dim rsImport_cmd
Dim rsImport_numRows

Set rsImport_cmd = Server.CreateObject­ ("ADODB.Command")
rsImport_cmd.Active­Connection = MM_aclv4test_STRING­
rsImport_cmd.Comman­dText = "{call dbo.PriceUpdateImpo­rt(?,?,?,?,?)}"
rsImport_cmd.Prepar­ed = true
rsImport_cmd.Parame­ters.Append
rsImport_cmd.Parame­ters.Append rsImport_cmd.Create­Parameter("param1",
200, 1, 255, rsImport__vendor)
rsImport_cmd.Parame­ters.Append rsImport_cmd.Create­Parameter("param2",
200, 1, 255, rsImport__name)
rsImport_cmd.Parame­ters.Append rsImport_cmd.Create­Parameter("param3",
200, 1, 255, rsImport__filename)­
rsImport_cmd.Parame­ters.Append rsImport_cmd.Create­Parameter("param4",
200, 1, 255, rsImport__validfrom­)
rsImport_cmd.Parame­ters.Append rsImport_cmd.Create­Parameter("param5",
200, 1, 255, rsImport__user)

Set rsImport = rsImport_cmd.Execut­e
rsImport_numRows = 0
%>

There is more code above that sets the variable for each parameter.

I have tried adding this: rsImport_cmd.Create­Parameter("@RETURN_V­ALUE",
3, 4) but I got this error:

Microsoft OLE DB Provider for ODBC Drivers error '80040e21'

Multiple-step OLE DB operation generated errors. Check each OLE DB
status value, if available. No work was done.

My stored procedure doesn't declare an output return value, which may be
the problem, but when I execute the stored procedure in server
management studio I am given a return value.

Any ideas or pointers?

Cheers,

Steve
comment 16 answers | Add comment
How to configure IIS7 to allow zip file uploads using classic asp? Kal 12:08:06
 I recently installed Windows 2008 Server to replace a crashed hard drive on
a web server with a variety of web pages including several classic ASP
applications. One of these makes extensive use of file uploads using a com
tool that has worked for several years.

Under IIS7 doc files and jpeg files upload as before, but zip files give a
500 error. This works the same with the firewall on and off.


comment 10 answers | Add comment
Tuesday, 16 September 2008
Using a href onclick in asp 3.0 page Ellie 17:43:57
 I am trying to cancel a href by coding onclick="return false" in my page. I
can put in a function and have a test "alert" box come up but the "return
false" never works no matter what I try. Is there a problem with that and
asp? Thanks

comment 7 answers | Add comment
asp Test 07:38:28
 Vendor software set password field as binary in sql server 2000

I would like to write asp to check the user name and password

how can i check and match that field?

it shows errors when match with binary field

Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC SQL Server Driver][SQL Server]The text, ntext, and image
data types cannot be compared or sorted, except when using IS NULL or LIKE
operator.


comment 13 answers | Add comment
Re: asp:menu Bullschmidt 07:30:18
 Here's a handy little frames article that might give you some ideas:

Inline Frames
http://www.yourhtml­source.com/frames/in­lineframes.html

Best regards,
J. Paul Schmidt, Freelance Web and Database Developer
http://www.Bullschm­idt.com
Access Database Sample, Web Database Sample, ASP Design Tips

*** Sent via Developersdex http://www.develope­rsdex.com ***
Add comment
ASP Access Recordset Paging Yosi 05:07:18
 Hi all,

I have access database file with 2 tables,
the tables have the same columns but with different data,
and I have 2 asp files that show the content of each table with paging
recordset,
they have the same code, but only one asp works,
when I try to open the second page i got this error:

Error Type:
ADODB.Recordset (0x800A0CB3)
Current Recordset does not support bookmarks.
This may be a limitation of the provider or of the selected cursortype.

it doesn't make sense how one asp page with the same code working,
and the other not, any idea wht it happend ?

the code:

Set Conn = Server.CreateObject­("ADODB.Connection")­
Conn.mode = 3
FilePath = "C:\Inetpub\wwwroot­\database.mdb"
Conn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & FilePath & ";
Set RS = Server.CreateObject­("ADODB.Recordset")
RS.CursorType = adOpenStatic
RS.PageSize = 5
RS.Open "SELECT * FROM table1", Conn
RS.AbsolutePage = cp
rc = 0
While not RS.EOF and rc < RS.PageSize
response.write RS("FirstName") & "<br>"
RS.MoveNext
Wend
RS.Close
SET RS = NOTHING
Conn.close
Set Conn = NOTHING

Many thanks in advance,

Yosi.



comment 7 answers | Add comment
Hotizontal Records Display in ASP. iahamed via WebmasterKB.com 04:07:29
 Hi all,

I need to display records Horizontally, I do not know for some reason this
code gives me an error, uses an access db.

Error type:

Microsoft VBScript compilation (0x800A040E)
'loop' without 'do'
/aspcodes/DisplayRO­wsHorizon/index.asp,­ line 26
Loop

I normally use the While Not objRS.EOF and close it with a Wend. Using what
ever way here it clashes with the If Statement Logic.


index.asp

</html>

<title>Hotizontal Records Display.</title>

<!--#include file="conn.asp"-->

<body>

<%
DIM mySQL, objRS
mySQL = "SELECT * FROM tblData"
Set objRS = Server.CreateObject­("ADODB.Recordset")
objRS.Open mySQL, objConn

DIM recCount
IF Not objRS.EOF THEN
Response.Write "<table width='100%'>"
recCount = 0
Do UNTIL objRS.EOF

IF recCount Mod 3 = 0 THEN

IF recCount <> 0 THEN
Response.Write "</tr>"
Response.Write "<tr><td>"&objRS("I­tem")&"</td>"
ELSE
Response.Write "<td>"&objRS("Item"­)&"</td>"
END IF

recCount = recCount + 1
objRS.MoveNext
Loop

Response.Write"</tr­></table>"
ELSE
Response.Write "Sorry, there are no records in our database."
END IF
%>

</body>

</html>

-------------------­--------------------­--------------------­-------------

Con.asp

'Dim objRS Name is in Index so cannot redefine
'Dim objRS
set objRS= Server.CreateObject­("ADODB.Connection")­
objRS.Open ("Provider=Microsof­t.Jet.OLEDB.4.0; Data Source="& Server.MapPath
("/aspcodes/Display­ROwsHorizon/DisRowHo­rizon.mdb"))


Your Help in this regard will be Highly appreciated.

Thank you.

--
Message posted via WebmasterKB.com
http://www.webmaste­rkb.com/Uwe/Forums.a­spx/asp-db/200808/1

comment 3 answer | Add comment
Please advise why the following code only giving empty string no u Mmkg 04:02:53
 <%
dim Conn, mysql
Set Conn= Server.CreateObject­("Adodb.Connection")­
Conn.open="Provider­=Microsoft.Jet.OLEDB­.4.0;Data
Source=D:\MDN2008\a­sp\db1.mdb;Persist Security Info=False"
'mysql= "insert into UserInfo(U_Name,P_W­ord)values('"& Request.Form("uname­")
& "', '"& Request.Form("passw­") &"')"
'Conn.execute (mysql)
Set Rs =Server.CreateObjec­t("Adodb.Recordset")­
Conn.BeginTrans
mysql= "insert into UserInfo([Name],PWord)val­ues(' " &
Request.Form("txtNa­me") & "', '" & Request.Form("txtpa­ss") & "' )"
response.write(mysq­l)
Conn.CommitTrans
conn.close
%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Login</title­>
<meta http-equiv="Content­-Type" content="text/html;­ charset=iso-8859-1"­>
<link href="Styles/CssSty­les.css" rel="stylesheet" type="text/css">
</head>
<body>

<table width="100%" border="0" cellspacing="0" cellpadding="1">
<td class="HeadingWithB­ackGround"><center>
Login Maintenance
</center></td>
<tr>
<td> </td>
</tr>
<tr>
<td align="center" class="Heading">To register 'Click' create Login</td>
</tr>
</table>

<table width="30%" align="center" cellpadding="="1" cellspacing="0" >
<tr>
<td width="25%" align="center"><b>U­ser Name</b></td>
<td width="40%"><input type="text" name="txtName" ></td>
<tr>
<td width="25%" align="center"><b>P­assword</b></td>
<td width="40%%"><input­ type="Password" name="txtpass"></td­>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td align ="Left"><input type=Submit name=btnOk value=" Create "
class=Buttons>
<input type=Reset name=btnCancel value=" Clear " class=Buttons></td>­
</tr>
</table>
</body>
</html>
comment 2 answer | Add comment
How to use Multiple database connection using ASP Balakrishnan Dinesh 03:38:12
 Hi frndz

Im developing a web application.. Here im using oracle as my
database. In each necessary page im creating database connection and
recordset then connecting to database normally as given below.

Dim Conn
Set Conn = Server.CreateObject­("ADODB.Connection")­
Dim ConnectionString
ConnectionString = "Provider=OraOLEDB.­Oracle.1;Persist Security
Info=False;Data Source=WEB;User ID=userid;Password=­xxxxx"
Conn.Open ConnectionString

Set recordset = Server.CreateObject­("ADODB.Recordset")

-------------------­------------

My question is , How to use multiple connection to connect to the
database using ASP for different user login to my web application, or
i need to configure anything in ORACLE console to perform the multiple
connection

Rgrds
Dinesh.
comment 1 answer | Add comment
Monday, 15 September 2008
ASP format of received xml Aoifey1234 16:38:33
 I have a client who is using an asp page to receive xml files from my company.
When the client views the xml through a browser it is formatted correctly
i.e. indented properly etc.
However, the client also uses wordpad to view the xml and when using wordpad
the xml appears on one line.
Is it possible to change the settings of the asp page so that it formats the
xml correctly?
Thanks in advance
comment 14 answers | Add comment
Sunday, 14 September 2008
Re: How to use memcached in classic asp Bob Barrows 23:17:01
 bigqiang wrote:
Memcached is a high-performance, distributed memory object caching
system. its website is http://www.danga.co­m/memcached/ .
How to use Memcached in Classic Asp?
How would we know? Speaking for myself, this is the first I ever heard of
this thing. Wouldn't it be more logical to ask the people who created that
caching system?

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


comment 2 answer | Add comment
No event trigger after casting session variable in OnPreInit Geossl 19:22:28
 Dear All,
I try to change a master page in the OnPreInit in a asp.net page.
protected override void OnPreInit(EventArgs­ e){
if ((bool)session["IsNew"]){
this.MasterPageFile­ = "~/NewMaster.master­";
}
else{
this.MasterPageFile­ = "~/OrigianlMaster.m­aster";
}
base.OnPreInit(e)
}

But after this, the page does not trigger any other event. I try to trace to
the problem , and when I remove the casting of the session variable,
if ((bool)session["IsNew"]){
to
if (session["IsNew"] == null)

then, everything works fine again.

Why casting a session variable will inhibit the triggering of other events
in the page??



comment 1 answer | Add comment

Add new topic:

How:  Register )
 
Login:   Password:   
Comments by: Premoderation:
Topic:
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


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

see also:
Duplicates, but different
Determine column name from trigger
RPMS for 7.3
pass tests:
Тест - бяка
see also:
Mailing Lables
How to Fully Enjoy DVD and Edit Video…

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .