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
Gururaj Jewargi
NA
663
768.3k
How can i access single method into all webpages using class
Oct 24 2016 7:10 AM
Hi,
here it is small method for binding employee data. i want to access this method into 5 webpages. instead of keeping every page load method i want to access only one method to all webpages how ? ?
private void BindGridviewData()
{
con.Open();
SqlCommand cmd = new SqlCommand("Bindemployee", con);
cmd.CommandType = CommandType.StoredProcedure;
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
con.Close();
gvDetails.DataSource = ds;
gvDetails.DataBind();
}
Reply
Answers (
3
)
How to split the particular data table from data set?
how to display data from self nested table using web api in