Results 1 to 11 of 11

Thread: [RESOLVED] ASP.NET Ajax numericUpDownExtender Problem

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2014
    Posts
    30

    [RESOLVED] ASP.NET Ajax numericUpDownExtender Problem

    Hello im using ajax numericUpDownExtender in asp.net because I dont see any control with same function in asp.net like that. But my Problem is I can't get back the default value of numericUpDownExtender into 1. I'm using it in choosing Quantity of Item. if you have any suggestion what control to use just help guys thanks.
    Last edited by tantan05; Jan 29th, 2015 at 02:33 AM.

  2. #2
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,606

    Re: ASP.NET Ajax numericUpDownExtender Problem

    We can't be of any help if you don't saw us the code u use what seems to be the problem int there.
    I can also use javascript numericUpDown but you will have to get the values of html controls and not asp, or you can get asp controls with some tricks.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2014
    Posts
    30

    Re: ASP.NET Ajax numericUpDownExtender Problem

    ajax numeric doesnt have code, Im just using bind to textbox, If you know what im talking about.

  4. #4
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,606

    Re: ASP.NET Ajax numericUpDownExtender Problem

    So there is nothing shown on the markup?
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Aug 2014
    Posts
    30

    Re: ASP.NET Ajax numericUpDownExtender Problem

    Code:
      <asp:TextBox ID="TextBox1" runat="server" ></asp:TextBox>
    
    <ajaxToolkit:NumericUpDownExtender ID="numeric"  RefValues="" ServiceDownMethod=""
                      ServiceUpMethod="" Tag="" TargetButtonDownID=""
                      TargetButtonUpID="" TargetControlID="TextBox1" Width="60" Minimum="1" Maximum="10" runat="server"></ajaxToolkit:NumericUpDownExtender>

  6. #6
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,606

    Re: ASP.NET Ajax numericUpDownExtender Problem

    Better. Now what exactly is the problem? What do you mean you cannot get it to one? I haven't used it (as i use JS) but my guess might be that it needs an update panel so it doesn't refresh on the server side and mess the numbers up. That's a guess though, haven't used Ajax controls for years. Can you explain the problem step by step?
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Aug 2014
    Posts
    30

    Re: ASP.NET Ajax numericUpDownExtender Problem

    I have already update panel and scriptmanager as well now my problem is I have a popup inside of that is numericupdown so the user need to choose quantity of item and press confirm so automatically the popup will hide. And my problem start with when I'm going to open popup again the previous value is still there. I can't find a way how to reset the value of numericupdown upon opening popup into minimun value. Thanks for your paying attention to me.

  8. #8
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,606

    Re: ASP.NET Ajax numericUpDownExtender Problem

    Hey, that is an entirely different aspect of a problem than i thought it was.
    I am not sure on what you are using but i guess an ajax popup panel?
    I had issues in the past with that "thing" so i am not sure i can help you out but i would suggest posting everything(i mean all the markup that is used for the pop with the numeric inside + server side code, if any that u use for manipulations) here so I or someone else can help.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  9. #9

    Thread Starter
    Junior Member
    Join Date
    Aug 2014
    Posts
    30

    Re: ASP.NET Ajax numericUpDownExtender Problem

    no its not about popup of ajax, its about the command how to reset the value of numericupdown, try it in new empty asp.net project with ajax numericupdown only try a event the will reset the value of that control.
    Last edited by tantan05; Jan 25th, 2015 at 07:39 PM.

  10. #10
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,606

    Re: ASP.NET Ajax numericUpDownExtender Problem

    Now i lost you.
    What command?
    How do you try to reset?
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  11. #11

    Thread Starter
    Junior Member
    Join Date
    Aug 2014
    Posts
    30

    Re: ASP.NET Ajax numericUpDownExtender Problem

    I just solved my problem, thanks for paying attention.

    Code:
    OnClientClick="document.getElementById('TextBox1').value = '1';"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width