ASP.NET up down scroll dropdownlist - c#

Hi I'm currently making a registration form, and I want the users to select their birthday month, using a dropdownlist. However, I want to make it so that there is both and up and down button for them to select their month (like google's sign up form as seen in the picture below)
I only can make a dropdown list with the down button, but how would I go about if I want an up button so that for e.g when the user is at February they'll press ^ and go back to January?

That is not an ASP.Net control, that is something like Jquery UI Spinner with up-down buttons and arrow key handling,
you can also use this or this
or if they are not appropriate for you then you can change their styles.
Hope will help you.

You can still use jQuery Datepicker. For example, 3 times for each textbox.

Related

Is it possible to have a Textbox show calendar dropdown?

Without place a TextBox over a Calendar control and hiding/showing controls and synchronizing values between controls, is it possible to have a Textbox and a button next to it, that when clicked, shows the calendar dropdown?
I would use the DateTimePicker control, however I want to set the value to NULL without having to show & use the checkbox.
I also want that the control is empty without any default date which is grayed out.
Implementing a custom control based on this answer is trivial, but I was wondering if a calendar dropdown can be shown without the need to have a hidden DateTimePicker.
This is pretty much the definition of a DateTimePicker...

Keep a dropdown list highlighted after a post back in .net aspx page

I have 7 dropdown lists within my page , following a post back from dropdown list 1 I want this to still be highlighted when the page reloads so that I have the ability to tab to the next dropdown list
I have tried smart navigation but this did not work. I'm using framework 3
Any guidance would be appreciated
Thanks
You can use the focus() method
For example in code-behind:
DropDownList1.Focus();
This will give focus to DropDownList1
Alternatively you can use
Page.SetFocus("IdOfControl");
You will need to store the ID of the control in either a session or querystring so you can access it after postback so you know which control to give focus to.

Radio buttons, each when clicked displays two buttons, on and off

I have a set of sixteen radio buttons. When i press a radio button, i want two buttons to appear (on/off). and when i press any button, a function executes(i have no problem with this),;
when i go to the next random radio button and press it, the same thing should happen., but when i go back to the previous radio button that i pressed, it should still show the action that was carried out(i.e either on/off). It should retain the action carried out on it forever, until manually changed.\
all i need is the demonstration of the above in code for at least 3 buttons, and i will figure out the rest myself....
thanks
Use a trigger in the XAML, it is fairly simple..
http://msdn.microsoft.com/en-us/library/system.windows.datatrigger.aspx
So basically you would use the checkbox value of the original to either show or hide (the property in the style to modify) the others.
If XAML is not your cup of tea and you wish to use codebehind (really personal choice) this may help you.. I am not a WPF/MVVM stickler by any means (some duct tape helps now and then) but putting all sorts of events like this in the codebehind can get messy..
http://www.codeproject.com/Articles/28959/Introduction-to-Attached-Behaviors-in-WPF
This should be a relatively simple javascript item you need to do. Ensuring that you have ids for each of the items then make all the changes on the page and then on the final postback you will have all the correct values

Asp: Login Control, adding a extra button

When using the login control what would be the best way to get 1 or 2 more buttons to the left of the login button?
To make it short i want the default control as it is, but with another button in the control called "anonymous".
I have already made a custom web user control and made it display succesfully.
Ive tried working with layout template, but without much succes so far.
LayoutTemplate does not contain an IEditableTextControl with ID UserName for the username
Also the login control does no longer display in the design mode for some reason.
Best Regards.
You should convert the classic Login control to Template. There is a small triangle in the right corner where you can choose this option
Convert to Template
After that you can add whatever you like in the table, but you should be careful not to change or remove the controls which are already in the table.

tetxbox with drop down control and auto complete

in my Application i have text box beside it i have drop down control.
when the user clicks on the drop down . a list of items under the drop down control should be shown. but if user type any value in the text box ( like tom, james, peter). if that value is there in the drop down . i should move the cursor to that value.
hope my Question is clear.
Any solution how to solve it would be great
thank you
what are you looking is,
http://www.asp.net/AJAX/AjaxControlToolkit/Samples/ComboBox/ComboBox.aspx
Just check it, Its autocomplete with dropdown
Sounds like you want something like the JQuery autocomplete plugin or if you prefer the ASP.NET AJAX Autocomplete control.
Edit- as you want a Combobox- JQuery has a lot of options for this. Here is one of them "Simple Combo".

Categories

Resources