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
Sunil Kumar Sudhansu
NA
8
6.5k
List View
Jan 11 2015 9:56 AM
<%--code provided by getcodesnippet.com--%>
User ID
User Name
Contact Number
Email
<%# Eval("User_Id")%>
<%# Eval("User_Name")%>
<%# Eval("Contact_Number")%>
<%# Eval("Email")%>
-------code----
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
// code provided by getcodesnippet.com
SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=CPD_TEST;User ID=sa;Password=sunil");
SqlCommand cmd = new SqlCommand("Select * From Table1", conn);
conn.Open();
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataTable dt = new DataTable();
da.Fill(dt);
conn.Close();
ListView1.DataSource = dt;
ListView1.DataBind();
}
}
-------------------------------
This Control Not Show in Any Browser.
Please Solve Problem.
Reply
Answers (
1
)
General advice / guidelines on how to implement MVC
Need to integrate Payment Gateway in ASP .net