Click here to Skip to main content
15,908,444 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: DropDownList remove blanks from string Pin
Nimua12-Jul-07 20:05
Nimua12-Jul-07 20:05 
QuestionRe: DropDownList remove blanks from string Pin
Nimua17-Jul-07 21:35
Nimua17-Jul-07 21:35 
AnswerRe: DropDownList remove blanks from string Pin
Nimua18-Jul-07 22:30
Nimua18-Jul-07 22:30 
QuestionASP vs cold fusion Pin
LCI12-Jul-07 4:14
LCI12-Jul-07 4:14 
AnswerRe: ASP vs cold fusion Pin
Not Active12-Jul-07 4:30
mentorNot Active12-Jul-07 4:30 
AnswerRe: ASP vs cold fusion Pin
Paul Conrad12-Jul-07 17:57
professionalPaul Conrad12-Jul-07 17:57 
QuestionShow data at multiple page in asp Pin
Y_Kaushik12-Jul-07 4:11
Y_Kaushik12-Jul-07 4:11 
AnswerRe: Show data at multiple page in asp Pin
Venkatesh Mookkan12-Jul-07 16:29
Venkatesh Mookkan12-Jul-07 16:29 
Y_Kaushik wrote:
sql = "select * from table "


Try with ORDER BY clause. You can use TOP expression too.

SELECT * FROM table ORDER BY <field1>

SELECT TOP 5 * FROM table ORDER BY <field1>

SELECT TOP 5 PERCENT * FROM table

SELECT TOP 5 PERCENT WITH TIES * FROM table ORDER BY <field1>


PERCENT 
Indicates that the query returns only the first expression percent of rows from the result set.

WITH TIES 
Specifies that additional rows be returned from the base result set with the same value in the ORDER BY columns appearing as the last of the TOP n (PERCENT) rows. TOP ...WITH TIES can be specified only in SELECT statements, and only if an ORDER BY clause is specified.



All the above are different way of getting the data in an ordered manner.


Regards,
Venkatesh Mookkan.
Software Engineer, India
My: Website | Yahoo Group | Blog Spot

GeneralRe: Show data at multiple page in asp Pin
Y_Kaushik12-Jul-07 20:20
Y_Kaushik12-Jul-07 20:20 
QuestionGridView Sorting Problem Pin
vickyshah12-Jul-07 3:45
vickyshah12-Jul-07 3:45 
AnswerRe: GridView Sorting Problem Pin
Sathesh Sakthivel12-Jul-07 3:48
Sathesh Sakthivel12-Jul-07 3:48 
GeneralRe: GridView Sorting Problem Pin
vickyshah12-Jul-07 3:52
vickyshah12-Jul-07 3:52 
GeneralRe: GridView Sorting Problem Pin
Not Active12-Jul-07 4:00
mentorNot Active12-Jul-07 4:00 
GeneralRe: GridView Sorting Problem Pin
Sathesh Sakthivel12-Jul-07 4:00
Sathesh Sakthivel12-Jul-07 4:00 
GeneralRe: GridView Sorting Problem Pin
Christian Graus12-Jul-07 4:00
protectorChristian Graus12-Jul-07 4:00 
GeneralRe: GridView Sorting Problem Pin
Not Active12-Jul-07 4:12
mentorNot Active12-Jul-07 4:12 
AnswerRe: GridView Sorting Problem Pin
Steve Echols12-Jul-07 16:32
Steve Echols12-Jul-07 16:32 
QuestionCheckbox in Datagrid Pin
Kurian_Kurian12-Jul-07 3:22
Kurian_Kurian12-Jul-07 3:22 
AnswerRe: Checkbox in Datagrid Pin
Paul Conrad13-Jul-07 12:18
professionalPaul Conrad13-Jul-07 12:18 
QuestionCheckboxes in gridview Pin
samerh12-Jul-07 2:30
samerh12-Jul-07 2:30 
AnswerRe: Checkboxes in gridview Pin
Christian Graus12-Jul-07 2:45
protectorChristian Graus12-Jul-07 2:45 
GeneralRe: Checkboxes in gridview Pin
samerh12-Jul-07 3:26
samerh12-Jul-07 3:26 
GeneralRe: Checkboxes in gridview Pin
Christian Graus12-Jul-07 4:55
protectorChristian Graus12-Jul-07 4:55 
QuestionGridView Pin
.NET- India 12-Jul-07 2:20
.NET- India 12-Jul-07 2:20 
AnswerRe: GridView Pin
Sathesh Sakthivel12-Jul-07 2:28
Sathesh Sakthivel12-Jul-07 2:28 

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.