Click here to Skip to main content
15,905,073 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: header, footer , page number in iTextSharp Pin
Dhyanga30-Aug-10 16:39
Dhyanga30-Aug-10 16:39 
GeneralRe: header, footer , page number in iTextSharp Pin
Dhyanga31-Aug-10 3:23
Dhyanga31-Aug-10 3:23 
QuestionTextBox Validation ( Not Allow these Characters ) Pin
vishnukamath30-Aug-10 3:39
vishnukamath30-Aug-10 3:39 
AnswerRe: TextBox Validation ( Not Allow these Characters ) Pin
Abhijit Jana30-Aug-10 4:02
professionalAbhijit Jana30-Aug-10 4:02 
GeneralRe: TextBox Validation ( Not Allow these Characters ) Pin
vishnukamath30-Aug-10 4:22
vishnukamath30-Aug-10 4:22 
GeneralJavaScritpt Pin
David Mujica30-Aug-10 4:38
David Mujica30-Aug-10 4:38 
AnswerRe: TextBox Validation ( Not Allow these Characters ) [modified] Pin
daveyerwin30-Aug-10 5:56
daveyerwin30-Aug-10 5:56 
AnswerRe: TextBox Validation ( Not Allow these Characters ) Pin
T M Gray30-Aug-10 8:23
T M Gray30-Aug-10 8:23 
QuestionConnecting to Database Pin
vijaylumar29-Aug-10 21:01
vijaylumar29-Aug-10 21:01 
AnswerRe: Connecting to Database Pin
Not Active30-Aug-10 2:25
mentorNot Active30-Aug-10 2:25 
GeneralRe: Connecting to Database Pin
vijaylumar1-Sep-10 19:51
vijaylumar1-Sep-10 19:51 
GeneralRe: Connecting to Database Pin
Not Active2-Sep-10 4:47
mentorNot Active2-Sep-10 4:47 
GeneralRe: Connecting to Database Pin
vijaylumar2-Sep-10 23:11
vijaylumar2-Sep-10 23:11 
Answerreference server by name, not address Pin
David Mujica30-Aug-10 4:28
David Mujica30-Aug-10 4:28 
GeneralSpeaking of a soap box Pin
Ennis Ray Lynch, Jr.30-Aug-10 5:03
Ennis Ray Lynch, Jr.30-Aug-10 5:03 
GeneralRe: reference server by name, not address Pin
vijaylumar30-Aug-10 19:21
vijaylumar30-Aug-10 19:21 
AnswerRe: Connecting to Database Pin
T M Gray30-Aug-10 8:27
T M Gray30-Aug-10 8:27 
QuestionRelationShip Betweem dataset Pin
Member 387988129-Aug-10 20:41
Member 387988129-Aug-10 20:41 
AnswerRe: RelationShip Betweem dataset Pin
Ankur\m/30-Aug-10 0:37
professionalAnkur\m/30-Aug-10 0:37 
QuestionHow to ignore -ve value while sorting generic list in c#. Pin
rahul.net1129-Aug-10 20:06
rahul.net1129-Aug-10 20:06 
AnswerRe: How to ignore -ve value while sorting generic list in c#. [modified] Pin
Prosanta Kundu online29-Aug-10 23:21
Prosanta Kundu online29-Aug-10 23:21 
Write a class that implements IComparer.

C#
public class myComparer : IComparer
{
    public Boolean Descending; 
    #region IComparer Members

    public int Compare(object x, object y)
    {
        Double obj1   = (Double)x;
        if (obj1 < 0)  obj1 = -(obj1);

        Double obj2  = (Double)y;
        if (obj2 < 0)  obj2 = -(obj2);

        if (Descending )
        {
            if (obj1 < obj2 )
                return 1;
            if (obj1 > obj2)
                return -1;
        }
        else
        {
           if (obj1 > obj2 )
                return 1;
            if (obj1< obj2)
                return -1;
        }
        return 0;
    }

    #endregion
}

Pass a object of your custom class in ArrayList.sort method
C#
ArrayList arr = new ArrayList();
arr.Add(0.3);
arr.Add(0.2);
arr.Add(-0.3);

myComparer objComparer = new myComparer();
objComparer.Descending = true;
arr.Sort(objComparer);


modified on Monday, August 30, 2010 5:31 AM

AnswerRe: How to ignore -ve value while sorting generic list in c#. Pin
cramteke30-Aug-10 0:04
cramteke30-Aug-10 0:04 
Generalfile does not begin with '%PDF-'. Pin
Member 279485929-Aug-10 19:24
Member 279485929-Aug-10 19:24 
GeneralRe: file does not begin with '%PDF-'. Pin
alejandro fon30-Nov-10 12:37
alejandro fon30-Nov-10 12:37 
Question2 sql exceptions Pin
benams28-Aug-10 18:08
benams28-Aug-10 18:08 

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.