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
kieky bouvier
NA
58
83.1k
how to delete session?
Apr 3 2011 11:22 AM
hi all,
i really need your help
.. can u correct my code to delete session below?
thx before...
protected void GridView_Main_RowCommand(Object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "Erase")
{
string childId = Convert.ToString(e.CommandArgument);
IList dataUserList = new ArrayList();
if (Session["UserList"] != null)
{
dataUserList = (IList)Session["UserList"];
foreach (UserList data in dataUserList)
{
UserList tujuanAkses = (UserList)data;
if (tujuanAkses.IdUser.Equals(childId))
{
Session.Remove(tujuanAkses.NamaUser);
Session.Remove(tujuanAkses.HakAkses);
}
}
}
}
}
Reply
Answers (
2
)
c# 2008 & Sql 2008 ,create dynamic database using script
how to add data to win sample chart control