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
sumaira manzoor hussain khan
NA
241
251.6k
My gridview are not display on webform
Sep 4 2011 6:58 AM
hello everyone ;
the question is, my gridview are not display in the webform. this is my code. there is no error in my code, but gridview are not display.
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
load_grid_doctor();
}
}
protected void Button_show_Click(object sender, EventArgs e)
{
load_grid_doctor();
}
public void load_grid_doctor()
{
SqlCommand cmd = new SqlCommand("select * from [doctor]",connection.get());
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.SelectCommand=cmd;
da.Fill(ds);
GridView_doctor.DataSource = ds;
GridView_doctor.DataBind();
}
}
regards
sumaira
Reply
Answers (
13
)
Exponential value ( multiply large numbers algorithm and value display in digit in c# (Very Urgent) )
What does the following code means?