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
Jyoti Jodha
NA
1.7k
406.4k
how to use "IsPostBack" & ViewState in c# windows appli..
Apr 5 2017 3:54 AM
public Form2()
{
InitializeComponent();
if (
!this.IsPostBack
)
{
DataTable dt = new DataTable();
dt.Columns.AddRange(new DataColumn[2] { new DataColumn("Name"), new DataColumn("Country") });
ViewState
["Customers"] = dt;
this.BindGrid();
}
}
protected void BindGrid()
{
dataGridView.DataSource = (DataTable)
ViewState
["Customers"];
dataGridView.
DataBind
();
}
Error show in red highlight
Reply
Answers (
6
)
in which scenario people use factory design patter.
How to get int math.random round number?