Hi here iam using 3 datalists to showing data but i need instead of using 3 datalists i need to use one datalist bcz i need to sort data .if its is one datalist i can sort data.but here three datalists. but query is same in three datalists select command. but here i need to show youtube video and normal local player video and pdf file so i used 3 datalists here i copied my code please give solution.(content type i need to write condition this is only aspx page no c# code in this page so any solution for this)
SelectCommand="SELECT lm.Title, lm.URL, lm.Description from Content as lm where lm.CourseSection=? and lm.ContentType='VideoSVBS'"> //here contenttype videos in svbs(means local video)
Type="Int32" />
CellPadding="0">
<%# Eval("Description")%>
" style="text-align:center; vertical-align:top; width:100%; margin:10px; padding:10px;padding-left:27px">
jwplayer("mediaplayer<%# Eval("URL")%>").setup({
flashplayer: "player.swf",
file: "/h264/<%# Eval("URL")%>.mp4",
height: 113,
width: 200,
});
CellPadding="0">
<%# Eval("Description")%>
SelectCommand="SELECT lm.Title, lm.URL, lm.Description from Content as lm where lm.CourseSection=? and lm.ContentType='VideoYouTube'"> //here content type is (video youtube)
Type="Int32" />
CellPadding="0">
<%# Eval("Description")%>
SelectCommand="SELECT lm.Title, lm.URL, lm.Description from Content as lm where lm.CourseSection=? and lm.ContentType<>'VideoYouTube' and lm.ContentType<>'VideoSVBS'and lm.hide <> true">//(here content type both)
Type="Int32" />
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsForums
Top experts
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Manas MohapatraRank #182 · 13.2K reputationPosted Dec 22, 2016, 9:04 PM EST
Phaneendra ChakravaramRank #2,544 · 549 reputationPosted Dec 22, 2016, 9:12 PM EST
Manas MohapatraRank #182 · 13.2K reputationPosted Dec 22, 2016, 11:26 PM EST
Phaneendra ChakravaramRank #2,544 · 549 reputationPosted Dec 23, 2016, 12:26 AM EST
No value given for one or more required parameters.
Phaneendra ChakravaramRank #2,544 · 549 reputationPosted Jan 2, 2017, 8:27 PM EST
Manas Mohapatra can you help me this solution ..