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
Gaurav Raj
NA
475
89.3k
hello friends ,I want to set command argument ,please help
May 4 2018 12:30 AM
success:
function
(response) {
var
JqueryXml = response.d;
var
dlmycart = $(
'#DataList3'
);
for
(
var
i = 0; i < JqueryXml.length; i++) {
var
row = dlmycart.find(
'tr'
).eq(0).clone(
true
);
$(
".img11"
, row).attr(
"src"
, JqueryXml[i].UserPic);
$(
".name11"
, row).html(JqueryXml[i].Name);
$(
".contry11"
, row).html(JqueryXml[i].Country);
$(
".follower11"
, row).html(JqueryXml[i]);
dlmycart.append(row);
}
<
asp:DataList
ID
=
"DataListPeopleUmay"
runat
=
"server"
>
<
ItemTemplate
>
<
table
class
=
"table"
style
=
"margin-top: -5px; margin-bottom: -10px;"
>
<
tr
>
<
td
>
<
a
href
=
"#"
>
<
asp:Image
ID
=
"ImgPeople"
runat
=
"server"
Width
=
"50px"
Height
=
"50px"
CssClass
=
"People-Know img-thumbnail"
ImageUrl
=
'<%# Eval("Pic") %>'
/>
</
a
>
</
td
>
<
td
>
<
asp:LinkButton
ID
=
"LinkButton1"
runat
=
"server"
CssClass
=
"profile-name"
CommandArgument
=
'<%# Eval("Id") %>'
Text
=
'<%# Eval("Name") %>'
OnClick
=
"LbtnName_Click"
>
</
asp:LinkButton
>
<
br
/>
<
asp:Literal
ID
=
"Literalcountry"
runat
=
"server"
Text
=
'<%# "Live in "+Eval("Counttry") %>'
>
</
asp:Literal
>
</
td
>
<
td
>
<
asp:Button
ID
=
"BtnAddfrd"
runat
=
"server"
Text
=
"Follow"
CssClass
=
"btn btn-sm btn-color follow"
Style
=
"float: right; margin: 10px;"
CommandArgument
=
'<%# Eval("Id") %>'
OnClick
=
"BtnAddfrd_Click"
/>
</
td
>
</
tr
>
</
table
>
</
ItemTemplate
>
</
asp:DataList
>
Reply
Answers (
2
)
Unable to cast COM object of type 'System.__ComObject'
command argument not work in clone datalist