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
MSK Afridi
NA
44
1.8k
understanding IsPostBack Property
Apr 14 2020 1:19 PM
Hi there,
I am C# newbie.I need to use IsPostBack Property on my web site but I have understanding issues with it. now after exploring the web, I found that the ist page is loaded as get request but when I click again on the link of the same page so this will be a postback. so what I did is to put IsPostBack property on that page load event as follows
if
(!IsPostBack)
{
Response.Wriet(
"page loaded for the first time"
);
}
esle
{
Response.Wriet(
"page is not loaded for the first time"
);
}
Now the above code when run for the first time so it is ok and work fine but when i click a link of the same page even again and again so I am getting the message" page loaded for the first time". what i thin that it should display the other message as the page is being posted back
please help in this regard what concept I am missing
Regards
Reply
Answers (
4
)
Calling script on button click
Passing to value from one form element to another form