anyoneCode:' Set up HTTP response header: no caching and immediate expiration
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
Printable View
anyoneCode:' Set up HTTP response header: no caching and immediate expiration
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
In the Page_Load event:
DJCode:Response.CacheControl = "no-cache";
Response.Expires = -1;
Response.AddHeader("Pragma", "no-cache");
thanks dj i got that one heres my next one,
Compiler Error Message: BC30452: Operator '&' is not defined for types 'String' and 'System.Collections.Specialized.NameValueCollection'.
Code:Line 22: bstrURI = "https://" & Request.ServerVariables("SERVER_NAME") & "/premium/smsmt.asp?" & Request.Form
Line 23:
You can't just concatenate Request.Form on the end - it isn't a string. You'll have to loop through all the members of it and add each one to the URL.
DJ
i dont understand
remember i aint the sharpest tool in the shed
Code:if "submit" = Request("mode") then
dim objSrvHTTP, bstrURI, vntStatus, bstrStatus
dim vntErrNumber, vntErrSource, vntErrDescription
bstrURI = "https://" & Request.ServerVariables("SERVER_NAME") & "/premium/smsmt.asp?" & Request.Form
on error resume next
i have on the html page now ( the one im trying to convert)
in the <body> form
there are plenty of these <% %> as far as i know these are not acceptable,
is there a rules i need to adhere to, in order to delete them
e.g.
action="http://<%=Request.ServerVariables("SERVER_NAME")%>:<%=Request.ServerVariables("7760")%><%=Request.ServerVar iables("SCRIPT_NAME")%>">
i have on the html page now ( the one im trying to convert)
in the <body> form
there are plenty of these <% %> as far as i know these are not acceptable,
is there a rules i need to adhere to, in order to delete them
e.g.
VB Code:
action="http://<%=Request.ServerVariables("SERVER_NAME")%>:<%=Request.ServerVariables("7760")%><%=Request.ServerVariables("SCRIPT_NAME")%>">
To stick to ASP.NET methods, you'd set the action attribute through the codebehind in the page load event. But since it appears that the page is submitting to itself, you'd remove that action attribute.
May I suggest you rewrite the whole page, from scratch?
yeah mendhak that is what i shall have to do
can it be done in the code behind file
instead of the html as this is how i would prefer to work
You'll have to separate your HTML and your codebehind. Are you very familiar with the concept of ASP.NET controls and code behind? Do you want a tutorial?
yeah a tutorial would be fantastic
i prefer to use the code behind files
but i suppose a good tutorial will help me along the way