C# - WYSIWYG - Editor That Validates Source Code?
Jun 9, 2010Is there a WYSIWYG editor that is able to format code?
So when anyone inserts code into the wysiwyg editor box, it would properly format it?
Is there a WYSIWYG editor that is able to format code?
So when anyone inserts code into the wysiwyg editor box, it would properly format it?
WYSIWYG editor when it comes to editing complex HTML pages generated from ASP.NET, PHP, GWT or anything else. I've tried a lot of WYSIWYG tools, but after a certain point I always end up with manually editing the HTML source code or CSS to fix different issues. The editors I've tried are never compatible with the ASP.NET/PHP/etc code I'm writing.Edit: I have used Visual Studio for a few years to do ASP.NET development. After a while, it always comes to the point where I can't even open the pages and user controls because they rely on so many things which aren't available in debug time.
View 5 RepliesI'm currently using a WYSIWYG editor , what I'm wanting to do is give the admin the ability to drag or add asp.net button or label to the editable area, unfortunately when I try to add say a button or asp.net label at present the WYSIWYG editor sees it as html text and not as an asp.net control. Does anyone know how to get around this or if there is an existing WYSIWYG editor that allows asp.net control to be added to the editable area?
View 3 RepliesI want to use one free wysiwyg html editor in one of the website I am developing. It's commercial website which I am developing for a company.Could you please suggest me from your experience the best free available wysiwyg HTML editor for web.FYI - Website is build with ASP.Net 4.0, C#.Net
View 2 RepliesI am using an open source wysiwyg editor on one of my asp.net web pages to create news pages... On one page It is put into place like this: Registered at top of asp.net web page...
<%@ Register Src="~/WebUserControls/HTMLEditorControl.ascx" TagName="HTMLEditorControl" TagPrefix="uc2" %>
<div>
<uc2:HTMLEditorControl ID="HelpTextBox" runat="server" />
</div>
In the code behind there is a Save method that basically saves the above editor data using the id:dataset.column = htmlTextArea.GetHTML ;When I try to bring up the page with the editor, I get the error: 'WYSIWYG' is undefined at Line 900, which is:
<script language="javascript" type="text/javascript" >
WYSIWYG.attach('ctl00_ContentPlaceHolder_HelpTextBox_htmlTextArea');
</script>
What is a good and simple wysiwyg text editor to use with asp.net mvc I only need the bold and insert a link functionalities.
View 3 RepliesI need just a basic functions:bold textheader textlist (numbered)undo and redoinsert imagechange background of editor don't need to let the user directly change html code. There I have found some editors that supports all those functions except inserting images.
View 4 Repliesweb-based so it can be used by users and hopefully using the class SQLSiteMapProvider which allows for saving sitemap in a SQL Database instead of XML.
View 1 Repliesiam looking for a good free WYSIWYG Editor. In the past i use the fckeditor. the new currently version ckeditor is not bad, but i have no image browsing or uploading. you need to buy the ckfinder. need a editor that is simple to include in my webform with image browsing and uploading.
View 7 Repliescan i add html page/template into tinymce or fckeditor or WYSIWYG editor
View 4 RepliesI'm using "open WYSIWYG" editor which can downloaded from "http://www.openwebware.com/" in my asp.net application. Which can be applied the style by using the following
<script language="javascript1.2">
WYSIWYG.attach('<%=txtMessage.ClientID%>');
</script>
It will add the styles there is no problem on this . My question is, i have a "Required field validator" for "txtMessage" text box(which is a asp.net server control). After attach the style to "txtMessage" the required field validator not functioning well.If i remove or comment the above script tag means it works fine. I don't knw whats the reason behind this.
A few basic yes/no questions to see if I am expecting the impossible within VWDE:
At one point I thought I was given an option to create an external css file & have all styles automatically stored in the external file. Is there such a setting? ( Right now I have an external css file created & linked to the page, but as I work on the web page in Design view all new styles are created in the web page & I need to use the style manager to move them to the external file. )Can I tell VWDE to generate css for all formatting as I create a new table in the web page in design view? In other words, can I work strictly in web page design view yet have all formatting code - including the table layout - generated into the external css file?If I create style code for a web page table, does that style code need to be manually modified each time I add or remove rows from the table?Is there a VWDE funtion/tool to generate an external css file for an existing web page that contains embedded/inline styles? Right now I find that I need to individually move each style to an external sheet - i.e. Q1.If I were able in some way to create an external css file to handle all formatting for a given web page, would I have to manually create & maintain a second external css file to provide a printer-friendly format?Basically I have found so far that WYSIWYG editting in VWDE is ok up to a point, but support for CSS in Design view is very limited. It seems that if I want to employ CSS, I have to edit & separately manage CSS code rather than work in a WYSIWYG mode.
TI am hoping that even simple yes/no answers to the above will help me determine if VWDE is an exercise in frustration or worthwhile for me.
how to make my source code to display on one line instead of multiple in source view. The display drives me batty when I'm trying to find something and I would prefer to display across the page instead of multiple lines down the page.
View 2 Repliesasp.net open source Lead management system with source code.
View 9 RepliesI went through the documentation and looked at the asp.net/webmatrix pages but could not find a RichTextEditor.
Is there one built into WebMatrix or can I just use the AjaxToolkit Html Editor or another 3rd party editor?
I want to call a function present in code behind from front page (html : source code)
i want to use like this:
Source code
<a href='<%# linkAlpha("B").ToString()) %>' title="B" id="B_List" runat = "server">B</a>
Code Behind
protected string linkAlpha(string value)
{
// /market-research/<%#Eval("customname")%>/
string str = "";
if (Request.Url.DnsSafeHost == "localhost")
{ // /market-reports/<%# Eval("customname")%>/
str = "Alpha_Category.aspx?q=" + value.ToString().Trim();
// Response.Redirect("Alpha_Category.aspx?q=" + value.ToString().Trim());
}
else
{
// str = "/market-reports/" + value.ToString().Trim() + "/";
str = "/Alpha_Category.aspx?q=" + value.ToString().Trim();
}
return str;
}
Here is what im trying to do I want to, from my c# code-behind, get the code between 2 <asp:Content> tags that are located in one of my .apsx pages.
View 8 RepliesI have been trying to install VS 2008 profesional in my computer, I am getting this error "Package Visual Web Developer HTML source editor package has failed to loas properly GUID = BFCC0C3C-6F87-4285-A6C8-BB1606180OD Please contact package vendor for assistance, application restart is recomended , due to possible environment corruption.
View 7 RepliesI can validate textbox field by RegularExpressionValidator with regex "^([0-9]{3,3})$". For the required field validation I put requiredfieldvalidator. Thus, I have two validation controls.
Can I combine them into a sigle RegularExpressionValidator? Then what does regex look like? How can I validate empty fields with RegularExpressionValidator?
I'm validating input in a asp.net page but the problem is it validates e-mails like hasangürsoy@şşıı.com
My code is:
if (Regex.IsMatch(email, @"w+([-+.']w+)*@w+([-.]w+)*.w+([-.]w+)*"))
{ valid }
else { invalid }
EDIT: I've written a question before especially to validate e-mail addresses including Turkish characters but now I don't want users to be able to input mails with Turkish characters because users mostly type Turkish characters by mistake and I cannot send mails to these addresses.
I need a text editor close to this , any one will be okay
View 11 RepliesI'm trying to write a regular expression that allows positive & negative floating point numbers, but doesn't allow empty strings and characters.I have managed to create this
[Code]....
but it allows empty strings and I can't figure out how to add [+-].
My program is a web app which asks the user to input a temperature.
Here's one of the validators:
<asp:RequiredFieldValidator runat="server" ID="rfvCardNumber" ControlToValidate="txtCardNumber" Display="Dynamic" ErrorMessage="Credit card account number is required">*</asp:RequiredFieldValidator>
Here is the JavaScript/JQuery that I am using to disable this control:
ValidatorEnable($("#<%=rfvCardNumber.ClientID %>")[0],false);
This code does indeed disable the client side validation, but unfortunately it does not disable server side validation. I have a way to check to see if I need to validate them or not on the server but it's a bit complex and requires duplicating some code that is used later on to calculate the total due. I use that check and disable the validators in Page_Load and sure enough the validation does not occur. to get these validators disabled on the client & server from the client side?
Basically, i'm trying to develop a Facebook canvas iframe app in C# ASP.NET that a business can install on a fan page and users can access via a tab.
Main Requirements:
1. Business clicks install which takes them to apps.facebook.com/myapp
2. I needs to check if I have record in database for that Facebook Profile
3. N: Display page where business enters a unique code. Save Profile Id and Code
4. Y: Display data from database related to that business.
The Issue:
I've created app in Facebook and created an ASP.NET website with a single page. The app is running on my dev machine under IIS. When I visit the app on Facebook, it hits my page. I retrieve and validate the signed_request with my API key. However, the decoded payload contains only the SHA256 parameter and no user, oauth, or profile data.
Is there something else I need to do or is my approach completely incorrect?
Web service error response (code/message etc) would you store it in a database? or would you keep the error response in a method.By the time I'm done with this, there will be hundreds of error response, maybe in the future, thousands? (I dont know yet, depends how large this web service grows).EDIT: error response is the response returned back to the application via the web service, (not to be confused with error logging).
View 1 Replies