How to create own datepicker control in asp.net? - asp.net

I want to create my own datepickar control(or dll),so can use it another project.How to create that?

Why create such a thing for yourself and invest a lot of time investigating, fixing problems, providing support, ... for it?
There are a bunch of such controls available which can be found with a simple search via your preferred search engine.
For ASP.NET I would suggest to either buy a 3rd party control from a well known vendor or take a look at the following:
jQuery UI Datepicker
ASP.NET Ajax Control Toolkit Calendar control

If you're using ASP.NET 4.0 or above, I'd suggest using the Bootstrap datepicker to keep your application looking consistent.
You can find the Bootstrap datepicker here: https://bootstrap-datepicker.readthedocs.org/en/latest/

Related

ASP .NET server control vs. HTML control

At the moment, in my team, there is a conflict when deciding to use HTML control or ASP .NET server control.
For instance, in order to implement a grid view list that supports reordering, we have two options:
Use HTML controls (ul, ol) and jQuery sortable. By using this approach, we can use the markup and style after slicing PSD and implement it rightaaway. We can fetch data by using jQuery ajax.
Use ASP .NET control like Telerik Grid (http://demos.telerik.com/aspnet-ajax/grid/examples/overview/defaultcs.aspx). Using this option, we have to change style of server control to match the design.
Considering performance and secutiry, please help me figure out which option is better?
Thanks in advanced.
#batto
telerik grid will wonderful you only not think for only this time . May be in future you need many enchantments in your project at that time you really need to use that feature's . So from my view you use Telerik controls .
For only display purpose Jquery grid is better option, it will increase the performance.
HTML control is a compromise between traditional ASP.NET programming and web control and it has a limited object-oriented interface. We usually use HTML control to have a smooth HTML code that will be generated and sent to the browser
If you want a powerful control, choose web control over HTML control!
It hope it helps you.
I would go with a server control. I would probably just use a
You have the ability to do what ever you want with them. If you want to do sorting using jquery then it should not be too different than how you sort ul's. If needed I can provide a sample. You also have the power of the server. If you tie other events such as add or remove then you will want the server control. Its a bit easier to pass data back and forth.

Conversion from Coldfusion to Asp.net (Drag and Drop Functionality)

I have Coldfusion web application that has a CF query from a database table. This data is displayed in an HTML table with a checkbox beside each data item and an associated picture. There is Jquery functionality on the page so that the items can be re-arranged in the table based on the users preference. After the user finishes with their re-arrangement, it is re-displayed without the checkboxes for sending as an email. Note I did not write this application myself but inherited it...
I need to transfer this functionality to a asp.net C# web application but i am at a crossroads on how to proceed. I've looked at telerik controls and others but none appear to fit the functionality i need. Any solid suggestions?
I'd suggest to handle rendering of the table yourself. If you're using asp.net webforms, this can be done with a custom server control. If you're using asp.net mvc (which I suggest as MVC matches the coldfusion development model a bit closer than webforms), then it's much simpler and you can just do so in the view.
Once you are rendering the grid yourself, then it's simple to apply the jquery functionality on the client-side.
Without more info about what you can or can't do, it's a bit difficult to offer any more guidance. But you did only ask for suggestions :-)
Asp.net doesn't mean you need to use a library control built for .net. jQuery is powerful enough today, and it's not tied to any back end technology.
So, that being said, I would still go with jQuery and back it up with RESTful request using webservices with WebForms or controllers with MVC.
Have a look at this: JQuery Drag and Drop features with ASP.NET

asp.net calendar control: is it good?

I'm looking to determine if I'm going to use the calendar control that's out-of-the-box in ASP.NET 4 or if I should look elsewhere, may be a jQuery calendar that just receives json or another .net server option.
Has anyone worked with the native calendar control?
Thanks.
I personally like Rick Strahl's implementation of the [link text][jQuery Date Picker] for ASP.Net. I used the one at http://www.eworldui.net/ prior to discovering the West Wind date picker, and will never go back.
I personally do not like asp.net native calendar control due to lack of extensibility. I would create a JQuery control since it will be more responsive(client-side).
Or take a look here: http://www.eworldui.net/

ASP.NET Ajax Controls that still provide some level of functionality with javascript turned off

I am looking for some ASP.NET Ajax Controls (similar to those by Telerik) that, unlike those those by Telerik, still provide some level of functionality when the end user has javascript disabled. Does anybody know of any products like this?
I'm trying to do that in my open source library of components: http://nucleo.codeplex.com, but I haven't heard of any third-party specific controls. Adding that type of functionality really adds to the amount of time it takes to develop AJAX components, especially with the level of complexity of most control frameworks.

Any suggestions for a nice ASP.NET Ajax tooltip?

I am looking for a nice tooltip control (with delay) in ASP.NET AJAX. I know there are many nice Javascript libraries out there, but since I am already using ASP.NET AJAX, I may just as well use that.
An "oldie-but-goodie" that I have used many times for tooltips would be overlib It's quite nice, VERY flexible and can be used independent of any particular AJAX platform.
Telerik seems to have the mojo in this area, but since I assume you're looking for free...
The nicest ones appear to be jQuery plugins, like this one:
http://rndnext.blogspot.com/2009/02/jquery-ajax-tooltip.html
There is also this ASP.Net AJAX TooltipExtender:
http://weblogs.asp.net/cjdevos/archive/2008/03/29/asp-net-ajax-tooltipextender.aspx
I was able to make a pretty nice balloon popup using the PopupControlExtender from the ASP.Net AJAX Control Toolkit. You can specify the target control to invoke the popup, the control or div that contains the popup content, and you can also dynamically populate the content using an AJAX callback to a service method.
I recommend:
Pure JavaScript with Ajax capability:
Menucool Tooltip
ASP.NET version, with Ajax Load On Demand:
Menubasic Tooltip
If you don't need the Ajax feature, Menucool has a very easy-to-use CSS tooltip either.
One option is WZ_Tooltip. Most tooltips are basic javascript; you should not expect to find much in the way of .NET integrated tooltips, since there is not much reason to use it rather than just using a javascript.

Resources