R
RA
Session("ListBoxHold") = document.getElementById("lstCodes")
The above statement gives an error "Object Expected"
Any Clue?
The above statement gives an error "Object Expected"
Any Clue?
Yama said:Hi,
Try saving it to a cookie then retrieve it from code-behind.
Client-Side javascipt:
// Use this function to save a cookie.
function setCookie(name, value, expires) {
document.cookie = name + "=" + escape(value) + "; path=/" +
((expires == null) ? "" : "; expires=" + expires.toGMTString());
}Server-Side c#public void GetCookie() { HttpCookie
aCookie = Response.Cookies["test"]; foreach (string s in
aCookie.Values.Keys) { Response.Write("Key: " +
s + " Value: " + aCookie.Values+ = "<P>"); } }Hope
this helps,Yama
RA said:Session("ListBoxHold") = document.getElementById("lstCodes")
The above statement gives an error "Object Expected"
Any Clue?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.