What about the version number check? Our problem is that Netscape 6 does not do a lot of the things earlier netscapes did. We just don't use it, but apparently some of our users do. We are trying to redirect it, but not the older Netscapes.
Thanks,
Can anyone find the problem in this code?
<%
Set bc = Server.CreateObject("MSWC.BrowserType")
If bc.browser = "Netscape" AND bc.version >= "5.0" then Response.Redirect("defaultie.asp")
End if
If bc.browser = "Microsoft Internet...
I am writing a script to send e-mail to all people registered on our site. They are listed in an access database. I collect the data into an array. I am stuck beyond that.
Anybody have a script that will take the data and send the message to each one in the list?
Is there an asp command that will close the current window?
I don't want to click to close it, I just want it to close automatically when it reaches this point in the page.
You can also use hidden inputs in your form.
<%
password=request.querystring("password")
%>
<input type="hidden" name="password" value="<%=password%>">
As long as there is a form on each successive page, this works fine.
This is really an html solution...
I have a working site that authenticates users with a session variable. We just set up two new servers with W2K and moved the site to both. One works fine, the other loses the session variable and will not authenticate pages so they can be opened.
I used a response.write to test that the...
When users enter text with , or ' in a form they get an error message and the database does not update. Can I write a simple error handling routine that looks for the characters that are not allowed and replaces them with characters that will work?<br><br>Could anyone get me started...
Thanks. The IsNull and not IsNull worked. I have it going like I want now. <br><br>I am using the 2D array to get the fields from the first record as List(0,0), List(0,1), List(0,2), List(0,3), etc.<br><br>I like the idea of the if then with the IsNull choice. I...
Thanks everyone for all the quick responses. It finally responded to the Not IsEmpty call. It selected the "then" choice for If Not IsEmpty(List(h,2)) Then. However, there is nothing in the record in the table. When I do a...
Thanks guestg,<br><br>I tried your suggestion. It stil returned the else choice, so I added:<br><br>Response.Write(Len(list(h,2)) & "<br>")<br><br>It returned a blank. I'm not sure what that means.
I have a table from which I select all records and place the fields into an array using a do while loop.<br><br>To process them I need to know whether List(h,2) is blank.<br><br>I put the following code in:<br><br>If List(h,2)<>"" Then<br> Response.Write(List(h,0) & List(h,1) &...
palbano,<br><br>You were right in your first assumption. The next time I use RS("comments") it returns nothing. I got around the problem by using<br><br>TempData=RS("comments") and then using TempData everywhere that I had used RS("comments")...
I have a table with a column named comments.<br><br>I select a record and use RS("comments") to get the value of comments in that record.<br><br>The line<br>Response.Write(RS("comments")) returns the value in the table.<br><br>But if it put the...
Thanks. I had figured a way around it by deleting the old record and then inserting the information as a new record, but I would much rather just update it.<br>
I am writing a program to take information from teachers who use our Ed. web site. I also want them to be able to update their info when they return.<br><br>I use asp and an access database on an NT4.0 system.<br><br>For putting in new info:<br>Set RS = objConn.Execute("INSERT INTO Schools...
How do I make the cursor display as an image I send from my site when someone points at a link and as a different image from my site when they move off the link?
Thanks,<br><br>I tried this and it still didn't work for my situation. I have the array variable in a request.form as in request.form(var(i)).<br><br>I can <br><br>response.write(i)<br><br>with i=1 and the output is 1 but when I <br><br>response.write(request.form(var(i))) <br><br>it...
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.