TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
vipin saini
NA
88
0
cookies not passing the values from one page to another page
Jun 18 2010 2:59 AM
hi,
In my application cookies not passing values one page to another page after uploading the web server but on local server it is working properly.
i use for adding cookies
HttpCookie
cookie =
new
HttpCookie
(
"Preferences"
);
cookie[
"Location"
] = DropDownList1.SelectedValue;
cookie[
"Range"
] = DropDownList2.SelectedValue;
cookie[
"Roomtype"
] = DropDownList3.SelectedValue;
cookie[
"rooms"
] = DropDownList4.SelectedValue;
cookie[
"Adult"
] = DropDownList5.SelectedValue;
cookie[
"Children"
] = DropDownList6.SelectedValue;
cookie[
"checkin"
] = TextBox1.Text;
cookie[
"checkout"
] = TextBox2.Text;
Response.Cookies.Add(cookie);
and for retriving
HttpCookie
cookie = Request.Cookies[
"Preferences"
];
if
(cookie !=
null
)
{
a = cookie[
"Location"
];
b = cookie[
"Range"
];
c = cookie[
"Roomtype"
];
d = cookie[
"rooms"
];
i = cookie[
"Adult"
];
i1 = cookie[
"Children"
];
g = cookie[
"checkin"
];
h = cookie[
"checkout"
];
}
Reply
Answers (
2
)
Translating a Direct Event call in C# to VB.net...need a little help
how can i move my robotic arm to the half of the x-axis plane??