Click here to Skip to main content
15,918,303 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: [newbie] Pin
Christian Graus16-Jan-09 9:12
protectorChristian Graus16-Jan-09 9:12 
GeneralRe: [newbie] Pin
jon-8016-Jan-09 9:55
professionaljon-8016-Jan-09 9:55 
GeneralRe: [newbie] Pin
Christian Graus16-Jan-09 10:02
protectorChristian Graus16-Jan-09 10:02 
GeneralRe: [newbie] Pin
jon-8016-Jan-09 10:25
professionaljon-8016-Jan-09 10:25 
Questionimage problem Pin
netJP12L16-Jan-09 8:44
netJP12L16-Jan-09 8:44 
AnswerRe: image problem Pin
Guffa16-Jan-09 9:03
Guffa16-Jan-09 9:03 
Questiongetting row into textbox and update,delete in gridview Pin
mihirkul16-Jan-09 6:54
mihirkul16-Jan-09 6:54 
AnswerCP IGNORE -- THIRD TIME SAME QUESTION Pin
leckey16-Jan-09 8:27
leckey16-Jan-09 8:27 
Question[newbie] Controls have to be aligned Pin
jon-8016-Jan-09 4:56
professionaljon-8016-Jan-09 4:56 
AnswerRe: [newbie] Controls have to be aligned Pin
TylerBrinks16-Jan-09 5:01
TylerBrinks16-Jan-09 5:01 
AnswerRe: [newbie] Controls have to be aligned Pin
jon-8016-Jan-09 9:56
professionaljon-8016-Jan-09 9:56 
AnswerRe: [newbie] Controls have to be aligned Pin
Member 400159616-Jan-09 22:34
Member 400159616-Jan-09 22:34 
GeneralRe: [newbie] Controls have to be aligned [modified] Pin
jon-8018-Jan-09 8:28
professionaljon-8018-Jan-09 8:28 
QuestionAjax Update Pannel Pin
Member 400159616-Jan-09 1:55
Member 400159616-Jan-09 1:55 
AnswerRe: Ajax Update Pannel Pin
Paddy Boyd16-Jan-09 2:46
Paddy Boyd16-Jan-09 2:46 
AnswerRe: Ajax Update Pannel Pin
Abhijit Jana16-Jan-09 4:03
professionalAbhijit Jana16-Jan-09 4:03 
GeneralRe: Ajax Update Pannel Pin
Member 400159616-Jan-09 22:31
Member 400159616-Jan-09 22:31 
Questionsql ouery problem Pin
pragya_chaubisa16-Jan-09 1:20
pragya_chaubisa16-Jan-09 1:20 
AnswerRe: sql ouery problem Pin
Ashfield16-Jan-09 2:32
Ashfield16-Jan-09 2:32 
GeneralRe: sql ouery problem Pin
pragya_chaubisa19-Jan-09 0:53
pragya_chaubisa19-Jan-09 0:53 
Thanks for your reply.As per you said i have tried the query:

"SELECT     a.topic_id, a.group_id, a.cat_id, a.username, a.topic_title, a.topic_msg, a.topic_create_date, a.no_of_views, a.no_of_reply, a.is_sticky, a.is_closed, 
                      CASE WHEN a.is_sticky = 'Y' THEN getdate() ELSE COALESCE (b.rply_date, a.topic_create_date) END AS SortDate
FROM         create_topic AS a FULL OUTER JOIN
                      reply_topic AS b ON a.group_id = b.group_id AND a.cat_id = b.cat_id AND a.topic_create_date = b.rply_date
WHERE     (a.cat_id = @cat_id)
ORDER BY SortDate DESC"


Although the query is resulting the sticky post to be displayed first and rest others to be displayed next.Only as per the date of creating post sorting is maintained ,but when any body replied then this does not reflect the order. Also when there are more than one sticky posts then as per the last modified (either made post or replied ) sorting should be maintained and even same should be applied for the non sticky posts. This is not actually happening.

What changes should i make ,so that it may give the result what actually i want.

Please help me.
GeneralRe: sql ouery problem Pin
Ashfield19-Jan-09 8:53
Ashfield19-Jan-09 8:53 
Questiongrid view display Pin
varsh1216-Jan-09 0:49
varsh1216-Jan-09 0:49 
AnswerRe: grid view display Pin
Jon Rista16-Jan-09 12:21
Jon Rista16-Jan-09 12:21 
Questionhow to remove dll reference in visual studio? Pin
mr_muskurahat16-Jan-09 0:44
mr_muskurahat16-Jan-09 0:44 
AnswerRe: how to remove dll reference in visual studio? Pin
Abhijit Jana16-Jan-09 20:55
professionalAbhijit Jana16-Jan-09 20:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.