Ummm...no, I don't think that will work.
You can't use Request.Cookies to get the cookie you JUST SET using Response.Cookies.
Request.Cookies *ONLY* shows you the cookies that were present at the time the user's HTTP request was made.
So if the cookies were set to "old" and the query string said "new", then Request.Cookies would still be "old" and the query string would NOT take effect until the next time the user got to the page.
Try this:
Code:
IF Request.Querystring("nsmc") = "new" THEN
Response.Cookies("nsmc")= "new"
Response.Cookies("nsmc").Expires = Date() + 30
NEWPAGE
ELSEIF Request.Querystring("nsmc") = "old" THEN
Response.Cookies("nsmc")= "old"
Response.Cookies("nsmc").Expires = Date() + 30
OLDPAGE
ELSEIF Request.Cookies("nsmc") = "new" THEN
NEWPAGE
ELSE
OLDPAGE
END IF