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
Guest User
Tech Writer
357
120.8k
Getting or Setting?
Mar 28 2012 9:51 AM
Hi
Given the following code:-
private int ProductId
{
set { Session["productId"] = value; }
get { return int.Parse(Session["productId"].ToString()); }
}
Would the following code be Getting or Setting the property?
ProductId = int.Parse(Page.RouteData.Values["productid"].ToString());
Thanks
Steven
Reply
Answers (
5
)
Method explanation
Change a caller method to send you a file path