Click here to Skip to main content
       

.NET Framework

 
GeneralRe: Run through loop for week and dont select weekends PinprotectorPete O'Hanlon10-Dec-12 4:53 
QuestionDeploying a Windows Service Pinmemberindian14310-Dec-12 4:09 
AnswerRe: Deploying a Windows Service PinprotectorPete O'Hanlon10-Dec-12 5:04 
GeneralRe: Deploying a Windows Service Pinmemberindian14310-Dec-12 5:08 
GeneralRe: Deploying a Windows Service PinprotectorPete O'Hanlon10-Dec-12 5:20 
Questionrun through startDate to endDate and add each record to DB PinmemberxnaLearner10-Dec-12 2:04 
AnswerRe: run through startDate to endDate and add each record to DB PinmemberxnaLearner10-Dec-12 2:35 
QuestionASP.NET Post Textbox After Button Click PinmemberxnaLearner9-Dec-12 11:15 
So im just using an ASP.NET atm
 
Iv added 4 textboxes from the toolbox TextBox1, TextBox2, TextBox3, TextBox 4 and a button 'button1'
 
I want the user to enter data into the textboxs, compare them by .length and produce the output in order.
 
So before ordering them I am just trying to display them in the order of boxes textbox1, textbox2, textbox3.
 
protected void Button1_Click(object sender, EventArgs e)
    {
        DatesInOrderTextBox.Text = "Dates in order are" + TextBox1 + ", " + TextBox2 + ", " + TextBox3;
}
After that I intend to do something like the following
        //date 1 is biggest
        if (date1.Length > date2.Length && date1.Length > date3.Length)
        {
            //date 2 is 2nd & date 3 is 3rd
            if (date2.Length > date3.Length)
            {
                FirstDateOrder = date1;
                SecondDateOrder = date2;
                ThirdDateOrder = date3;
 
              System.Windows.Forms.MessageBox.Show("Order is 1, 2, 3");
 
             //   System.Windows.Forms.MessageBox.Show("Order is:" + FirstDateOrder + ", " + SecondDateOrder + ", " + ThirdDateOrder);

                ViewBag.DateOrder = "Order is 1,2,3";
 
                return RedirectToAction("Index");
            }
 
            //date 3 is 2nd & date 2 is 3rd
            else
            {
                FirstDateOrder = date1;
                SecondDateOrder = date3;
                ThirdDateOrder = date2;
 
                System.Windows.Forms.MessageBox.Show("Order is 1, 3, 2");
 
                return RedirectToAction("Index");
            }
}
 
Although when I click the button textbox4 is displaying
 
Dates in order areSystem.Web.UI.WebControls.TextBox, System.Web.UI.WebControls.TextBox, System.Web.UI.WebControls.TextBox
prob something simple just dont know how to fix it...thank you guys
AnswerRe: ASP.NET Post Textbox After Button Click PinmvpRichard MacCutchan9-Dec-12 21:54 
GeneralRe: ASP.NET Post Textbox After Button Click PinmemberxnaLearner10-Dec-12 0:14 
Question.netframework Pinmemberzofi518-Dec-12 4:30 
AnswerRe: .netframework PinmvpDave Kreskowiak8-Dec-12 6:37 
AnswerRe: .netframework PinmemberEddy Vluggen8-Dec-12 7:18 
GeneralRe: .netframework PinmemberKevin Bewley13-Jan-13 23:46 
AnswerRe: .netframework Pinmemberjibesh11-Dec-12 10:36 
QuestionEnter 3 dates and display order in different VIEW, after click PinmemberxnaLearner7-Dec-12 9:52 
Question[VB.NET 2008] How to detect if a page of a TabControl is selected (Windows CE) Pinmembersteve_94966136-Dec-12 21:37 
AnswerRe: [VB.NET 2008] How to detect if a page of a TabControl is selected (Windows CE) PinmemberZaf Khan10-Dec-12 17:57 
GeneralRe: [VB.NET 2008] How to detect if a page of a TabControl is selected (Windows CE) Pinmembersteve_949661311-Dec-12 21:20 
GeneralRe: [VB.NET 2008] How to detect if a page of a TabControl is selected (Windows CE) PinmemberZaf Khan12-Dec-12 2:13 
Question[VB.NET 2008] How to get control on objects created at runtime Pinmembersteve_94966135-Dec-12 4:54 
AnswerRe: [VB.NET 2008] How to get control on objects created at runtime PinmemberEddy Vluggen5-Dec-12 5:40 
GeneralRe: [VB.NET 2008] How to get control on objects created at runtime Pinmembersteve_94966135-Dec-12 20:59 
GeneralRe: [VB.NET 2008] How to get control on objects created at runtime PinmemberEddy Vluggen6-Dec-12 2:27 
GeneralRe: [VB.NET 2008] How to get control on objects created at runtime Pinmembersteve_94966136-Dec-12 3:26 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.140814.1 | Last Updated 21 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid