I've seen at least 5 differents set of code to connetc to an Access Database....Is the code below OK..someone in a previous post told me to remove the section in BOLD becuase it was not necessary...
Dim adoCon 'Holds the Database Connection Object
Dim rsGuestbook 'Holds the recordset...
How come I always get a server script time out with the following code ? My Access database has only 10 records ?
<!--#include file="../../MyIncludes/Top_Survey.inc" -->
<%
if Session("LoggedIn") = "" then
Response.redirect "login.asp"
end if
%>
<%
'Dimension variables
Dim adoCon 'Holds...
Here's a script that will check the null value of your input boxes...just cut and paste the code ( remove the cut below & cut above ) and change the NAME of your input box to the name of the each input box in your form. Put this scripts in the <HEAD> </HEAD> html tags
<SCRIPT...
Here's something that should be easy to answer.
Here's a loop that will print ALL the 'comments' records.....how can I only print the last record ? And if possible how can I only print the last 2 records ?
Do While not rsGuestbook.EOF
Response.Write (rsGuestbook("Comments"))
Loop
First, don't write a cookie that will expire in 2100....if the user likes your site he WILL come back way before 2100...
Try amending the code of your second page to :
<%
Response.Buffer = True
If Request.Cookies("SiteCode")("SiteCode") <> "" Then...
I need to store the value of an INPUT box that might have more than 255 characters into an Access database accessed from my ASP page.
I read somewhere that the maximum characters that can be store in a single recordis 255 ...I even got error messages when trying to store a value of more than 90...
this ASP example uses Windows Script and I don't hink it's installed on the server hosting my page because I get an error message.
Does someone have any other idea how this can be done ?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.