Does anybody know of a good datepicker calendar control for asp.net 2005? I went through a few but can't one that I like. The biggest problem I'm finding is, how do I clear a date after I picked it?
Thank you,
-Tesh
try jquery datepicker :)
Its good, and it will solve your problem of clearing the date too and lots of cool themes :)
hope it helps
EDIT :
use this function inside the script :-
$(function () {
$("#txtDate").datepicker();
});
this in page
<td>
<asp:TextBox ID="txtDate" runat="server"></asp:TextBox>
</td>
also include all proper css and js files as per theme selected. you can directly link the files on internet or can store individual js/css files locally and then reference it.
Also see pagesource of this link. it will further clarify your concepts :)
Use a jQuery Date Picker by Rick Strahl. It's the only one I ever use. It's very simple.
Related
I'm looking for some kind of HTML WYSWYG editor solution for an ASP.Net Webforms application. We currently use AjaxToolkit, but it doesn't support pasting images, is not really accessible, etc. I came accross FreeTextBox, but it seems to not support image pasting either, and it's been a big headache to configure properly given that the documentation is not all that descriptive. I've gotten the image gallery to work finally, but it looks pretty terrible, and I'm not sure the images will actually show up in the email (they were broken in my testing environment using the Papercut SMTP emulator). Just wondering if there are any other options I have with a Web Forms app, or am I limited to solutions that are as old as Web Forms?
you can try CKEditor(it have editable tool panel and spell checker)
https://ckeditor.com/cke4/builder
this free js library, easy integrate and if you want send result to .aspx.cs side should use call back by DevExpress control
I still use the ajaxtoolkit HTML editor. It is a bit dated, but I do find without any special settings, that I can paste in in images.
So, say I drop in a text box, use extender, and add HTML editor.
So, say this:
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:TextBox ID="TextBox1" runat="server" Width="1309px"
TextMode="MultiLine" Rows="40" ></asp:TextBox>
<ajaxToolkit:HtmlEditorExtender ID="TextBox1_HtmlEditorExtender" runat="server"
BehaviorID="TextBox1_HtmlEditorExtender"
EnableSanitization="False"
TargetControlID="TextBox1">
</ajaxToolkit:HtmlEditorExtender>
I am able to put a picture in my paste buffer, and a simple ctrl-v does paste the picture:
eg this:
As noted, I think the tool bar etc. does look quite outdated, but my experiance with the toolkit is that ctrl-v to paste in a picture does work.
As suggested, the other possible is ckedit, and it should work with asp.net web pages.
Its not clear why using the ajaxtoolkit editor does not allow cut + paste of images - my experience does seem to work. Perhaps you need sanitation=false?
As noted, the other suggestion here was CKEditor, and that seems like a good choice also.
I've searched but cannot figure out what for now I'll call a "tag" control is in .NET. I want to build in the tagging feature you will find in most forums when posting a question (similar to stackoverflow). However I cannot find any info on it. I suspect its because I dont know what the technical name is for the control. They are called tags in forums. See screenshots. Can someone tell me if this is possible to build in .NET and what they are called. If not, what can I use to build this functionality?
There is a very good jQuery plugin named Chosen that can do this Tag style using a multiple select asp.net control.
For example using the Chosen and this code
<script type="text/javascript" >
jQuery(document).ready(function()
{
jQuery(".chosen-select").chosen({width: '100%;'});
});
</script>
<asp:ListBox ID="lstWithTags" runat="server" CssClass="chosen-select" SelectionMode="Multiple"></asp:ListBox>
you have your tag select control very fast and easy
Image Button Click is working sometimes. sometimes notihng is happening when i click on it.
I have given two image buttons in gridview.
Im using .Net Framework 4.5
getting error in __doPostBack('Download_Click','') only in IE 11
Aspx code
<asp:ImageButton ID="gridbtndownload" ToolTip="Download" CommandName="Download"
OnClientClick="link();" CommandArgument='<%#((GridViewRow) Container).RowIndex %>'
runat="server" ImageUrl="Download_Icon.png" alt="Download" />
cs code
DirectoryInfo folder = new DirectoryInfo(mypath); folder.Delete(true);
There is a well known IE 10/11 bug, which requires you to upgrade .NET Framework and ASP.NET to workaround,
https://connect.microsoft.com/VisualStudio/feedback/details/755419/asp-net-4-0-and-ie10-click-on-imagebutton-in-updatepanel-produces-error-click-on-normal-button-does-not
Try to follow the direction if your call stack matches it.
Make sure that next time you post as much information as possible so that others can help you out. When you type too little, your question will be voted to close.
There are quite a few questions out there regarding this (for me, recurring) issue, but none of them have solved my problem.
Problem:
Whatever control I add in my aspx page, it is not recognised in the codebehind. Compiling doesn't work, because the ID is not recognised.
None of the following worked:
Clean and rebuild solution.
Close and open VS
Delete asp.net temp files
Check project's target framework.
Check assemblies are all there.
Check designer viewn to see if the control is actually there (it is)
Get control's ID with JS function to check it is the intended one (it is)
The problem has started only recently. In fact, I can reference the older controls fine.
The problem is observed both with standard ASP controls and Telerik ones.
Does anyone know of something else I should try? Please help me, I'm in the middle of a project and this is causing unnecessary delays, ta.
Make sure all of your asp.net controls (in the .aspx file) have the:
runat='server'
tag... Without this, you will not be able to reference the controls.
e.g.
<asp:Label runat='server' Text='Test Label' ID='TestLabel' />
Hope this helped...
Rodit
This is how I solved my issue. For a full account of it, please refer to the comments above.
I've noticed that although my project was already of web application type, designer files weren't showing.
I've forced the designer files to be recompiled by clicking on the ''convert to web application' option
I was then able to reference the control ID.
Thanks to the commentators anyway.
I was having a similar issue, due to the fact that I was using the pre-generated Login page. My solution was to change this section from this:
<asp:Login runat="server" ViewStateMode="Disabled" RenderOuterTable="false">
<LayoutTemplate>
To this:
<asp:Login ID="asplogin" runat="server" ViewStateMode="Disabled" RenderOuterTable="false">
<LayoutTemplate>
basically, I just added an ID to the asp:Login which allowed me to access the objects in the code from behind by prefixing the control name with asplogin
asplogin.youControlNameHere
I was thinking to do this server side, but what i was wanting to do was disable the telerik control called the "Editor." Located at the site: telerick editor control.
My reasoning behind this was that I wanted to give a user the exact look and feel of the object while having everything disabled. I didnt want to use an image at all because it would be stretched, shrank, clicked, etc and wanted to maintain how the editor would look. I had an alternate option i COULD do but not only it would be ineffecient, but have holes to open up for injection.
Looking through the API for that i didnt see which way to accomplish that.
I was thinking to do jquery maybe on the client side to disable, but why do that when you can set the item itself be flagged as disabled and never be entirely sent to the client.
Thoughts? Ideas? How would you go about it? I didnt see methods or attributes that really led to what i was doing.
You can just set enabled="false" on the radEditor declaration in your aspx page:
http://www.telerik.com/help/aspnet-ajax/editor-disabling-radeditor.html
<telerik:RadEditor runat="server" ID="RadEditor1" Enabled="false">
<Content>
<strong>sample content</strong>
</Content>
</telerik:RadEditor>
On the Server Side you can do
RadEditor1.Enabled = false;
In jquery,
try
$("#RadEditor1").prop('disabled', true);