-
Jan 18th, 2015, 08:15 PM
#1
Thread Starter
Junior Member
[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.
-
Jan 19th, 2015, 07:55 AM
#2
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.
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Jan 21st, 2015, 11:28 PM
#3
Thread Starter
Junior Member
Re: ASP.NET Ajax numericUpDownExtender Problem
ajax numeric doesnt have code, Im just using bind to textbox, If you know what im talking about.
-
Jan 22nd, 2015, 04:00 AM
#4
Re: ASP.NET Ajax numericUpDownExtender Problem
So there is nothing shown on the markup?
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Jan 22nd, 2015, 10:52 PM
#5
Thread Starter
Junior Member
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>
-
Jan 23rd, 2015, 04:53 PM
#6
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?
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Jan 24th, 2015, 09:10 AM
#7
Thread Starter
Junior Member
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.
-
Jan 24th, 2015, 01:29 PM
#8
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.
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Jan 25th, 2015, 06:37 PM
#9
Thread Starter
Junior Member
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.
-
Jan 27th, 2015, 11:05 AM
#10
Re: ASP.NET Ajax numericUpDownExtender Problem
Now i lost you.
What command?
How do you try to reset?
ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·
-
Jan 29th, 2015, 02:33 AM
#11
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|