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
Jayesh shukla
NA
36
11.3k
How remove submit query in output?
May 25 2016 9:11 AM
How remove submit query in output?
In my application I am using datalist and inside it using image button.
code is like:
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
show1();
//Console.Write("hello world");
}
void show1()
{
string total = "SELECT * from [Image]";
SqlConnection connection = new SqlConnection(con);
DataSet ds = new DataSet();
SqlCommand cd = new SqlCommand(total, connection);
connection.Open();
SqlDataAdapter da = new SqlDataAdapter(cd);
da.Fill(ds);
connection.Close();
DataList1.DataSource = ds;
DataList1.DataBind();
connection.Close();
foreach (DataListItem item in DataList1.Items)
{
ImageButton im123 = new ImageButton();
im123.Style.Add("float", "left");
Panel2.Controls.Add(im123);
}
}
Reply
Answers (
1
)
import data from excel in web api
Editable Web Grid in MVC Razor View using Data Table