Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > SortCommand Problem

Reply
Thread Tools

SortCommand Problem

 
 
=?Utf-8?B?RGV4dGVy?=
Guest
Posts: n/a
 
      05-02-2005
Hello all,
I have a problem with SortCommand event.
When i click at a linkbutton with commandname property as "Sort",
the postback is raised, but don't execute SortCommand.

Somebody have any idea?

Thanks.

Dexter
 
Reply With Quote
 
 
 
 
Yunus Emre ALPÖZEN [MCAD.NET]
Guest
Posts: n/a
 
      05-02-2005
It is hard to say without seeing your code. But i will ask if u check
IsPostBack before binding it in page load. First of all page_load event is
fired then the others...

--

Thanks,
Yunus Emre ALPÖZEN
BSc, MCAD.NET

"Dexter" <> wrote in message
news:45DF21C1-6A9D-4B52-A154-...
> Hello all,
> I have a problem with SortCommand event.
> When i click at a linkbutton with commandname property as "Sort",
> the postback is raised, but don't execute SortCommand.
>
> Somebody have any idea?
>
> Thanks.
>
> Dexter



 
Reply With Quote
 
 
 
 
Elton W
Guest
Posts: n/a
 
      05-02-2005
Hi Dexter,

If you are talking about DataGrid sorting, the SortCommand
event is triggered by clicking column header Text that is
storable (with SortExpression), rather than clicking any
button. Clicking any button (or linkbutton) in datagrid
will trigger ItemCommand event.

HTH

Elton Wang



>-----Original Message-----
>Hello all,
>I have a problem with SortCommand event.
>When i click at a linkbutton with commandname property

as "Sort",
>the postback is raised, but don't execute SortCommand.
>
>Somebody have any idea?
>
>Thanks.
>
>Dexter
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SortCommand not firing EatHam ASP .Net 0 01-21-2004 10:50 PM
Grid SortCommand one more time gerry ASP .Net 1 12-18-2003 08:50 AM
DataGrid SortCommand event not triggered John Sturgeon ASP .Net 2 12-02-2003 07:14 PM
ItemCommand firing instead of SortCommand Steven ASP .Net 4 10-25-2003 12:30 AM
DataGrid SortCommand not firing using code-behind?? Ken Tucker ASP .Net 2 07-06-2003 03:59 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57