|
I wrote a small utility JScript cookie helper class thats posted here on CP. I'm using it in the development of my own site but I am also using ASP.
This is where the problem comes in...My cookie object stop working properlynow that i'm using ASP...
Do client/server cookies clash...?
Should I always use ASP for cookie managment...?
Thanx!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
It depends on the context that you are trying to use the cookies to store information. I'm guessing you are having problems viewing cookie information (in ASP) that you created/modified on the client browser?
Software Developer
|
|
|
|
|
Hmm,
Cookies, cookies and more cookies.
In WinWorld ALL cookies created with InternetSetCookie / InternetGetCookie API's.
( except of may be Netscrape).
IIS/ASP sends cookies to the browser. Browser/webbrowserCtrl creates permanent cookies. Temporary cookies never written to HD.
InternetSetCookie takes URL. This is were it could falls appart.
http://127.0.0.1 could be different from http://your.com.pu.ter
To verify that your permanet cookies are working
Just call InternetGetCookie. For example:
bRet =
InternetGetCookie("http://www.yahoo.com",
NULL, sCookieVal, 10240)
Brian
|
|
|
|
|
has anybody figured out how to stop the ie6 image toolbar from popping up? not on my browser but on a users browser when they view my web site ... is there a script or whatever that can change the ie6 settings?
help appreciated
---
situations to avoid #37: "good morning ... how many sugars do you take in your coffee ... and what was your name again?"
|
|
|
|
|
|
thanks
wasnt being lazy
didnt think to check google doh
---
situations to avoid #37: "good morning ... how many sugars do you take in your coffee ... and what was your name again?"
|
|
|
|
|
lauren wrote:
wasnt being lazy
We wouldn't ever think a female would be lazy, what kind of guys do you think we are.
Nick Parker
This is a non-Calculus course as long as you know things like line integrals and surface integrals...
|
|
|
|
|
I am developing an application using ASP which updates a SQL server 2000 database on the back-end.
I currently have a bunch of HTML forms acting as the UI. Each form collects specific information that is stored in a different table, but I want all table inserts within the session to be part of one transaction (i.e. all or nothing).
I have tried a lot of things, but I still can't get a rollback to occur when a session times-out.
I've tried specifying -
"<%@ TRANSACTION=Requires_New Language=vbscript%>"
on the asp file with no success. I even tried explicitly calling the "ObjectContext.SetAbort" method.
My hosting company swears they have transactions enabled on thier servers, so I'm thinking it must be an error from my end.
I'll appreciate any help anyone could offer me. My question is how to handle transactions with multiple
Thank you
|
|
|
|
|
this could be a dumb question but here goes ... i saw a website where they had changed the standard scroll bars (vertical ones) to be a completely different look and feel that matched the web page much better ... is there a little bit of javascript or whatever that can do that at the client or is it a server side thing?
thanks
---
situations to avoid #37: "good morning ... how many sugars do you take in your coffee ... and what was your name again?"
|
|
|
|
|
Lauren,
It can be done in the style tag at the top of the page.
<style>
BODY { scrollbar-3d-light-color:#999999;
scrollbar-arrow-color:#FFFF33;
scrollbar-base-color:black;
scrollbar-dark-shadow-color:#333333;
scrollbar-face-color:#666666;
scrollbar-highlight-color:#999999;
scrollbar-shadow-color:black}
</style>
Nick Parker
This is a non-Calculus course as long as you know things like line integrals and surface integrals...
|
|
|
|
|
thanks nick
way cool
am not really a webhead yet but am fast becoming one
hehe
---
situations to avoid #37: "good morning ... how many sugars do you take in your coffee ... and what was your name again?"
|
|
|
|
|
error report at:
set pManager = Server.CreateObject("StudentADM.StudentManager")
Error Type:
Server object, ASP 0178 (0x80070005)
The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
I used ADODB.Connection, it is OK. and i used client program(with VC), this object can be accessed. Why? I don't know where should i set the permissions.
|
|
|
|
|
Check the the dlls that your object uses are in same directory with your object. And no network access.
I had same problem too, but when I put all dlls in same directory (you need to put them on same computer at least), the problem was solved. Also make sure that you compiled it. You can build a simple test application where all you need is to initialize your object, you will see then
Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer
Need Web-based database administrator? You already have it!
|
|
|
|
|
Check that the folder where the objects and any dll's used have read permissions set for the IUSR_[computer name] account, for example my user on my web server is IUSR_BUFFY.
To do this right click on the folder in explorer, click Properties/Security and add the user to the list.
If that doesn't work drop me an email...
|
|
|
|
|
Check if the user account setup to run the website has enough previleges
Reality.sys is corrupted!
Reboot the universe Y/N?
|
|
|
|
|
Is there any way of customising trace functionality so that you *only* see
the output you've specifically written and not all the other stuff?
Kevin
|
|
|
|
|
In ASP.Net, what is the a rule of thumb as to when you use server-side controls (e.g. <asp:Table> ), and when you use regular HTML elements (e.g. <table> )?
|
|
|
|
|
There's a help topic called "Recommendations for Web Controls vs Server Controls" or something, in the VS help. This will also be in the online help msdn.microsoft.com/library.
Roughly - use HTML server controls when migrating existing pages.
Use asp web controls if you want a more type-safe programming model (more properties). Also you can automatically detect which browser is being targeted. You can't do this with server controls.
Kevin
|
|
|
|
|
Hi guys, totally stumped (again). I'm experimenting with session state using SQL Server (2000). I ran InstallSqlState.sql to create the ASPState database. That went fine.
BUT, I am using Windows Authentication and now I don't know what the "sqlConnectionString" attribute of the sessionState element in my Web.Config file is supposed to look like.
I have granted my Windows login account access to the ASPState database but no combination of entries into the "sqlConnectionString" seems to work. Running the app just gives me a
"System.Data.SqlClient.SqlException: Login failed for user 'blah'. Reason: Not associated with a trusted SQL Server connection."
Not too experienced yet with setting up SQL Servers but I think I've tried everything I know and/or read so far.
Has anybody managed this??
Regards
Senkwe
Just another wannabe code junky
|
|
|
|
|
Are you running SQL and IIS on the same server?
I had major problems when running IIS on my machine local, trying to connect to a SQL database on a different server. (Standalone server, no domain)
Michael
|
|
|
|
|
Thanks for the response Michael, yes I'm running the two on the same machine. I won't be getting a new PC till late next month
All the samples I've seen show the connection string based on the fact that they are using SQL Authentication.
Regards
Senkwe
Just another wannabe code junky
|
|
|
|
|
You need to give the machinename\ASPNET account access to the SQL Server's ASPState database.
There should be a version of the correct SQL Connection string in the machine.config file located in %WINDIR\Microsoft.NET\%Version%\Config\
HTH,
James
Simplicity Rules!
|
|
|
|
|
|
Hi James, I tried out your suggestion. First thing I learned (belatedly) is that the Web.Config file sections override the corresponding sections of Machine.Config files for a particular application. Since the default state mode in the Machine.Config file refers to in process handling of session state, the default connection string is provided as such. So it didn't help, especially as I was using Windows Authentication for my SQL Server installation.
Anyway, to cut a long story short, I ended up totally screwing up my database permissions and logins, to the point where I gave up and decided to take a deep breath and start over. I basically switched to SQL Server Authentication and used the "sa" account to connect to ASPState and everything worked fine. I still think it's a bit wierd that using any other account proves to be such a pain. If you have managed to do this though, I suggest you write a brief step by step article about it because there are probably others out there like me gritting their teeth over the same thing.
Thanks again.
Senkwe
Just another wannabe code junky
|
|
|
|
|
Odd, this e-mail came to me as bounced so I didn't see it until now when I saw it sitting there and almost deleted it :-P
I haven't tried using SQL Server for session state, yet I will probably experiment with it once I find a cheap host for ASP.NET, my current host only does PHP and ASP (via an apache module).
James
Simplicity Rules!
|
|
|
|