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 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Phaneendra ChakravaramPosted Jan 3, 2017, 1:27 AM
Manas Mohapatra can you help me this solution ..
Phaneendra ChakravaramPosted Dec 23, 2016, 5:26 AM
No value given for one or more required parameters.
Manas MohapatraPosted Dec 23, 2016, 4:26 AM
Phaneendra ChakravaramPosted Dec 23, 2016, 2:12 AM
Manas MohapatraPosted Dec 23, 2016, 2:04 AM