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
Ashish
NA
11
444
declaring link button value globally
Aug 9 2017 3:32 AM
public void view_onclick(object sender, EventArgs e)
{
int id = Convert.ToInt32((sender as LinkButton).CommandArgument);
SqlDataAdapter ad = new SqlDataAdapter("viewmasterid", con);
ad.SelectCommand.CommandType = CommandType.StoredProcedure;
ad.SelectCommand.Parameters.AddWithValue("@id", id);
DataTable dt = new DataTable();
ad.Fill(dt);
con.Close();
HiddenField1.Value = id.ToString();
txtname.Text = dt.Rows[0]["Name"].ToString();
txtage.Text = dt.Rows[0]["Age"].ToString();
}
how can i use this id value globally in my project?
Reply
Answers (
1
)
http send get request with parameter
how can we upload image in admin panel and show in front...?