Click here to Skip to main content
15,897,371 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to apply sorting in grid view field through codebehind Pin
_Amy17-Sep-12 4:51
professional_Amy17-Sep-12 4:51 
SuggestionRe: how to apply sorting in grid view field through codebehind Pin
gopal pradhan8-Nov-12 23:26
gopal pradhan8-Nov-12 23:26 
GeneralRe: how to apply sorting in grid view field through codebehind Pin
fjdiewornncalwe9-Nov-12 5:47
professionalfjdiewornncalwe9-Nov-12 5:47 
QuestionHow to send SMS using Web services ASP.NET C# Pin
Leo Rajendra Dhakal16-Sep-12 19:35
Leo Rajendra Dhakal16-Sep-12 19:35 
AnswerRe: How to send SMS using Web services ASP.NET C# Pin
AmitGajjar16-Sep-12 20:11
professionalAmitGajjar16-Sep-12 20:11 
GeneralRe: How to send SMS using Web services ASP.NET C# Pin
Leo Rajendra Dhakal17-Sep-12 22:43
Leo Rajendra Dhakal17-Sep-12 22:43 
QuestionGrouping gridview row data Pin
Alok Sharma ji16-Sep-12 18:58
Alok Sharma ji16-Sep-12 18:58 
AnswerRe: Grouping gridview row data Pin
KiranKumar Roy18-Oct-12 2:54
KiranKumar Roy18-Oct-12 2:54 
Hello,
I really dont know this will help you or not..
But still i want to give my try..
you can try to get your solution by sql query..

Below to create test table
SQL
CREATE TABLE [ForTest](
    [id] [int] NULL,
    [id2] [int] NULL,
    [vak] [varchar](50) NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
INSERT [dbo].[ForTest] ([id], [id2], [vak]) VALUES (1, 1, N'abc')
INSERT [dbo].[ForTest] ([id], [id2], [vak]) VALUES (1, 1, N'xyz')
INSERT [dbo].[ForTest] ([id], [id2], [vak]) VALUES (2, 2, N'pqr')
INSERT [dbo].[ForTest] ([id], [id2], [vak]) VALUES (2, 2, N'mno')


and below query to get result as per you wish..

SQL
SELECT
 distinct   P.id,
    STUFF
    (
        (
            SELECT ',' + vak
            FROM ForTest M
            WHERE M.id = P.id
            ORDER BY id
            FOR XML PATH('')
        ), 1, 1, ''
    ) AS Models
FROM
    ForTest P


Hope this will work for you...
KiranKumar Roy

QuestionEval Expression Explanation Pin
ASPnoob15-Sep-12 3:54
ASPnoob15-Sep-12 3:54 
AnswerRe: Eval Expression Explanation Pin
Sandeep Mewara15-Sep-12 7:01
mveSandeep Mewara15-Sep-12 7:01 
GeneralRe: Eval Expression Explanation Pin
ASPnoob15-Sep-12 11:18
ASPnoob15-Sep-12 11:18 
AnswerRe: Eval Expression Explanation Pin
Sandeep Mewara15-Sep-12 19:13
mveSandeep Mewara15-Sep-12 19:13 
QuestionScroll down in the grid view fetches next set of records without freezing the screen Pin
Rohit_daga14-Sep-12 20:47
Rohit_daga14-Sep-12 20:47 
AnswerRe: Scroll down in the grid view fetches next set of records without freezing the screen Pin
Vani Kulkarni14-Sep-12 22:06
professionalVani Kulkarni14-Sep-12 22:06 
AnswerRe: Scroll down in the grid view fetches next set of records without freezing the screen Pin
Alok Sharma ji16-Sep-12 19:04
Alok Sharma ji16-Sep-12 19:04 
QuestionChanging Name of File in File's Path Pin
ASPnoob14-Sep-12 12:59
ASPnoob14-Sep-12 12:59 
AnswerRe: Changing Name of File in File's Path Pin
Richard MacCutchan14-Sep-12 23:11
mveRichard MacCutchan14-Sep-12 23:11 
QuestionASP.NET Server Type application in PHP and ASP.NET MVC Pin
Rohit Kesharwani14-Sep-12 9:14
Rohit Kesharwani14-Sep-12 9:14 
QuestionRequest hangs in browser Pin
mrc250314-Sep-12 8:10
mrc250314-Sep-12 8:10 
AnswerRe: Request hangs in browser Pin
Alok Sharma ji16-Sep-12 19:07
Alok Sharma ji16-Sep-12 19:07 
GeneralRe: Request hangs in browser Pin
mrc250317-Sep-12 12:36
mrc250317-Sep-12 12:36 
QuestionCalling WCF Service within another WCF Service throwing eexception Pin
indian14313-Sep-12 14:50
indian14313-Sep-12 14:50 
Questiondebug web form page Pin
dcof13-Sep-12 8:55
dcof13-Sep-12 8:55 
AnswerRe: debug web form page Pin
David Mujica13-Sep-12 9:40
David Mujica13-Sep-12 9:40 
GeneralRe: debug web form page Pin
dcof14-Sep-12 6:57
dcof14-Sep-12 6:57 

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.