html checkbox with an 'x' instead of the traditional tick - asp.net

is it possible display a 'x' for an html checkbox when we click on it. Traditionally on ie, (on winxp and greater) it appears as a 'tick' mark. Can we change this? Or else what is the alternative to this in asp.net

I guess you can hack something using images instead of a real checkbox, using javascript to change the image selection

I'm not sure if you are talking to Web Application or Windows application.
Let's assume that you meant Web application.
You can't change normal input, it's something in system settings.
However, you can put Javascript that will put CSS images instead.
Example: http://www.whitespace-creative.com/jquery/jNice/ or
http://aaronweyenberg.com/90/pretty-checkboxes-with-jquery

Check out the Ajax Control Toolkit's ToggleButton Control:
http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/ToggleButton/ToggleButton.aspx
I think it might be what you're looking for.

there's fancy-forms to accomplish exactly this

Related

Custom GWT fileUpload Button

Good Day
I need to make a button which would upload files. Now I have used fileUploader but it is in label form, have name (Browse...) and another things that I do not need. Is any possibility to give to GWT Button functions of FileUploader
I made a FileUploader widget transparent and put it above an icon. You can put it above a button instead, if you prefer.
I would use the gwtupload library which comes with a DecoratedFileUpload widget which you can customise. You can see how they look in this demo. It uses different approaches depending on the browser because of different issues, like browsers not supporting to call the click() method due to security issues, etc.

How to put cross check image instead of right check in CheckBox Selection in ASP.Net

I am using ASP:Checkbox. When I check the checkbox I want a cross sign instead of the usual right check sign in the checkbox.
Does anyone have any ideas about how I can do this?
Thanks,
Vaibhav.
You can't do this natively in ASP.net as ultimately the check boxes are handled by the browser. You can use css and javascript to achieve this. The following 2 article should get you down the right path:
http://webhole.net/2010/02/06/how-to-style-checkboxes/
http://ryanfait.com/resources/custom-checkboxes-and-radio-buttons/
Basically you are hiding the "normal" check boxes and replacing them with images.

Removing Warning Image

How to remove The warning image of the alert box in Javascript. I want to delete the warning image from the javascript alert window. Is it Possible?
Unfortunately, the look-and-feel of the result of an alert() call is browser dependent. Each browser implements it differently.
If you need to change the look of a browser dialog box, you'll have to implement your own. There's a lot of options out there. JQuery UI is a particularly popular one if you happen to be using JQuery.
You won't be able to change it. Better use a custom alert box.
jQuery Impromptu
is a nice one with a lot of options

Resizable Gridview columns using javascript

I want to Resize Gridview columns using javascript. Below is an example.
I think this plugin does what you requested http://www.ita.es/jquery/jquery.grid.columnsizing.htm
Though I would suggest checking out this customizable jQuery based grid aswell http://www.trirand.com/blog/
I would recommend using jQuery if you want to do this yourself. You can grab the click event of the header row (or wherever you want), and then you can use the x/y of the mouse to drag a line. Once the mouse is released, you can troll through the table and reset the width of the 's.
Otherwise, there are several JavaScript table controls on the internet that you could use.
You can try open-source project ASP.NET CoolGridView control. It works well with IE 6/7/8, Firefox 3.0 / 3.5, Safari and Chrome. Supports resizable columns and fixed headers.
http://johnsobrepena.blogspot.com/2010/02/coolgridview-february-2010-release.html
The example you are refering to is using ExtJS it looks like. There's also jqGrid (an extension to jQueryUI), and others. If you are looking for an ASP.Net Ajax grid control there are several options from many different component vendors (Component One, Infragistics, DevXPress etc).
I'm only presuming here that you want a server-oriented Grid component because of the term "GridView" in the question. I would suggest searching for: "ASP.Net Ajax" grid control. This will give you results that may best suit your needs.

Open and Close Popup windows without Javascript in ASP.NET

How can I Open and Close Popup windows without Javascript in ASP.NET?
What do you mean "Popup windows".
JavaScript allows you to manipulate the properties of a window object allowing you to remove the status bar, address bar, set the size and position of the new window and other things.
The only other way (short of using VB script :) is to have links with target set to _blank.
But then you can't customise the new window.
You can't.
Opening and closing popups implies javascript code execution on the client side.
You could eventually create an ASP.Net panel that looks like a popup and set it visible/invisible during the postback but it won't behave like a 'real' popup.
Unless otherwise but I conquer with #Olivier that you can't do that without using Javascript. Even with the solution given by #Avi, you are still using Javascript though it is kinda abstracted from you.
Maybe, you could explain why you don't want to use javascript because even without the AjaxControl, it is kinda pretty easy to open and specify other properties of pop up windows.

Resources