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
Devendra Kumar
NA
517
243.7k
passing id throw session in c# .net
May 18 2016 3:33 AM
hi frnds how to store id throw session and pass this session value another
i will use like this:
if
(chkBx !=
null
&& chkBx.Checked)
{
TextBox
txt = (TextBox)di.
FindControl
("lbl_wokid");
Session["id"] =(txt);
}
store value in session["id"] and pass this value like:
objadmin.Work_Id =
Convert
.
ToInt32
(Session["id"]);
but getting error
Unable to cast object of type 'System.Web.UI.WebControls.TextBox' to type 'System.IConvertible'.
Reply
Answers (
2
)
Cannot open user default database.
Select Last Item by default