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
yadagiri uppari
NA
277
190.7k
how to bind data list in asp.net
Jul 2 2013 1:49 AM
please help me how to bind ... i am not getting any value
code:
string strSql = "sp_GetChatMessage";
SqlParameter param5 = new SqlParameter("@senderid", Session["sender"]);
SqlParameter param6 = new SqlParameter("@receiverid", Session["receiver"]);
ds = SqlHelper.ExecuteDataset(CommonSetting.GetConnectionString(true), CommandType.StoredProcedure, strSql, param5, param6);
DataTable tbl = new DataTable();
tbl.Columns.Add("SendrID", typeof(string));
tbl.Columns.Add("Message", typeof(string));
tbl.Columns.Add("Date", typeof(string));
DataRow dr = tbl.NewRow();
dr[0] = ds.Tables[0].Rows[0]["SenderID"];
dr[1] = ds.Tables[0].Rows[0]["Message"];
dr[2] = ds.Tables[0].Rows[0]["Date"];
dldisplayMessage.DataSource = tbl;
dldisplayMessage.DataBind();
Reply
Answers (
1
)
Binding Textbox if dropdown selection matches (in ASP .NET)
How do i call my stored procedure in mvc3 razor application