Search:
Type: Posts; User: yamaharuss
Search :
Search took 0.05 seconds.
Simple.
The object, which is Conn, does not exist so there is no object to execute.
It appears you may have copy/pasted parts of your code from different sources.
Change line 20 from
Set...
http://www.codeguru.com/csharp/.net/net_asp/article.php/c19297/Pure-ASP-File-Upload.htm
How about sharing your solution for future searches?
Here's a solution for SQL Server:
sql = "insert into table(row) values(value) SELECT @@IDENTITY"
Set rs = Conn.Execute(sql).NextRecordSet
...
was the object installed/registered successfully? You can upload without a COM object too.
Why would you want to display that? Your script would run so fast that the user would never see much. As for using Javascript, it's a client-side language and can't run inside a server-side script.
If you validate all incoming requests you'll be OK
What do you mean the links are in the files? Are you looking in the actual source files on the server or doing a view source in the browser?
My bet is the injection is in the database.
Wow, a very vague question. The answer is yes.
Here's the problem: Data source name not found and no default driver specified
You would have to show your code. The only time you would read the cookie is if the session is lost.
Cookies don't timeout, they expire on the date you set them to expire on. When a session expires, you can check to see if a cookie is set before loading the page. If the cookie is set you can restore...
Just assign your record value once.
<%
strLayoutName = rs("LayoutName")
%>
<OPTION value="<%=strLayoutName%>"><%=strLayoutName%></OPTION>
Guess I'm pointing out the obvious but have you verified the component is installed?
Looks like you have an ambiguous bracket here:
<%
Repeat1__index++;
statesearch.MoveNext();
}
%>
If your error is:
/TMP7gglz7tv3j.asp, line 475
Than there most definitely is a line 475 in TMP7gglz7tv3j.asp
This was your error:
Expected ';'
/TMP7gglz7tv3j.asp, line 475
Set statesearch = Nothing
But the code you just posted had the semicolon on that line as far as I can tell. Post your code...
Your connection variable is missing the equal sign.
Read your error again. It tells you EXACTLY what you need to do.
Like burnme stated, ASP is the wrong forum for this.
Google is your friend.
Set Conn=Server.CreateObject("ADODB.Connection")
Conn.Open "PROVIDER=SQLOLEDB;" & _
"DATA SOURCE=DATABASEIPADDRESS;DATABASE=DATABASENAME;" & _
"USER...
My guess is you are setting the variable on that page whether it is already set or not. Like burnme said, you need to post your code.
You may need to do something like:
if sessionvalue = ""...
Is there a reason you don't want to use a DSN-less connection?
You need to explain what you want more clearly