.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Html editor word wrap problem

Posted By:      Posted Date: August 30, 2010    Points: 0   Category :ASP.Net
I created an html editor which uses an iframe for designing. The iframe doesnt wraps the text within it.... but the text keeps on extending in the same row towards the right. i tried setting scrolling='no' but it didnt work... tried word-wrap:break-word but thats also of no use........ please help! 

View Complete Post

More Related Resource Links

Embed Youtube inside Ajax Html Editor- problem



When inserting a simple embed of youtube inside the ajax editor, on firefox and chrome problems occur. On the other hand on internet explorer 8 everything works fine. I found this solution http://www.nopcommerce.com/boards/t/4228/bug-in-ajax-html-editor.aspx . 

My question is where do I find the DesignPanel.pre.js ?


Roderick Vella

HTML Editor problem



Not sure whats happening but the default html 'Rich text Editor' is missing a save button anywhere in the editor. Anybody have any idea how to troubleshoot this. Tried different versions or IE and different computers but no help. Alternatively any other free editor i can install?

Thanks for any help


Charset Problem with dynamically generated Word Document


in my asp.net web application i am dynamically generating a word documnet out of a sql data. I have set the char set UTF-8 during the doument creation in code but still when i open the generated document and check it char set .. it is always windows-1252 not the one that i have set. My sql data in the document have special characters whihc can only be understandable using the UTF-8 charset otherwise its always ?T written in place of an apostrophy . Pasting my code here..

         HttpContext.Current.Response.ContentType = "application/msword";
         HttpContext.Current.Response.ContentEncoding = System.Text.UnicodeEncoding.UTF8;
         HttpContext.Current.Response.Charset = "utf-8";
         string strFileName = "Details" + ".doc";
        HttpContext.Current.Response.AddHeader("Content-Disposition", "inline;filename=" + strFileName);
        StringBuilder strHTMLContent = new StringBuilder();
        string strMessage = " ";
        DataView abstractview = (DataView)dsAbstract.Select(DataSourceSelectArguments.Empty);
        foreach (DataRowView row1 in abstractview)
            strMessage += "<table border='1' cellspacing='0' cellpadding='5' width

Editor's Note: There's A Word For That.


This month in MSDN Magazine, we are looking at the world of Web services. But before we tell you all about this month's issue, we have a topic we would like to address. In fact, it's our civic duty to do so.

Joshua Trupin

MSDN Magazine March 2005

ASP.NET HTML Editor - Upload images

The article ASP.NET HTML Editor - Upload images was added by adarshtated on Tuesday, June 29, 2010.

In this article we are seen how to create a custom HTML Editor control to add image button in it.Create A Class-----------CustomEditor.cs------------------Add Name Spaceusing AjaxControlToolkit.HTMLEditor;namespace MyControls{ public class CustomEditor



I'm looking into using the HTMLEditor from the toolkit. I know its open source which isn't the problem. The problem is that I don't want to have my program to be open source but would like to use the editor. The source code I'd like to be paid for where the compiled version (the dlls and aspx pages) will be free to download. Is it possible to do that?

Ms word to HTML


Hi all, i designed some contents from MS word then save it as web page then open that web page in browser then view source, copy this view source and paste into the AJAX Html Editor and clik the button then this content will be display in a Gridview on another page. But the problem is if i applied this content then the display page design totally collapsed. I think there is some problem with MSword to HTML conversion.. what was the problem and how to solve it?

problem when converting html to pdf using ItextSharp


 hi all

i have using itextsharp to convert html to pdf and its worked very good in english letters (A-Z) but when i trying to do it with arabic letters i have got empty pdf , can any one help me? what i should do ?

System.Net.Mail HTML Template Problem


What do I need here ?????? To make this work??

Dim MassMail As New MailMessage()

        Dim Template As ??????????????

        MassMail.To.Add(New MailAddress(TextBox_massemailto.Text))
        MassMail.From = New MailAddress("You@me.com")

        ' MassMail.CC.Add()
        MassMail.Subject = TextBox_massemailsubject.Text
        MassMail.Body = TextBox_massemailBody.Text
        ' MassMail.Body = Template.BodyFileName = "EmailTemplates/BusinessAdBrochure.htm"
        MassMail.Priority = MailPriority.High

        Dim smtpclient As New SmtpClient("relay-hosting.secureserver.net")
        smtpclient.Credentials = New System.Net.NetworkCredential(""You@me.com"", "pasword")
        smtpclient.Port = 25
        smtpclient.EnableSsl = False

Generating MS Word doc from mht file gives smart quote problem


I have a word document to be generated using ASP.Net/VB.net.

So I have a word document template saved as .mht file on the web server.

In my ASP.Net code,I read this mht file content and replace certain string line Description$$ with the actual description from the database.Then save this content as .doc file.

This works fine but shows a box symbol when I have smart quotes " (not this one as I cannot type it here.The double quote which you see in MS Word,the slanted double quote).

I dont know how to make my word doc generated, show the exact double quote as in MS word.

If any of you have any idea of this please reply.

Thank you

POST from html form viewstate problem

<p> Hi all, I have a website where people need to pay for a specific download (.pdf file). After they payed they get the download(A). My payment-provider can do a HTML-Postback to the site i want, for each succesfull payment. So the idea is that if someone payed, they do a postback to my server with a couple of parameters, so i can know that that specific email address has payed, and they get the download. I tested localy with a .html file on my desktop to postback a set of parameters to my local asp.net website. But in ONLY works if i include the __VIEWSTATE in my html file. And i cant get rid of the viewstate in my HTML of the aspx page. >test.html: <html><head></head><body> <h1>Dit is een test</h1> <form id="form1" action="http://localhost:25659/WebForm1.aspx" method="POST"> <input id="Button1" type="submit" value="submit!"/> 'IT ONLY WORKS IF I INCLUDE THE NEXT LINE: <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMjA0OTM4MTAwNGRk" /> </form></body></html> Has anybody an idea to acomplish my goal? Maybe i can get some info about the postback in my global.asax? or create a HttpHandler for .html files? Anyone?   Thanks in advance, Vincent   </p>

Ajax HTML Editor and Timers

Howdy, I have a extended htmleditor in a mainpage and I have a seperate timer in a control that is on the master page to notify the user of messages. Everytime the timer fires, after text has been entered into the htmleditor, focus is automatically pulled to the htmleditor.    If I disable the timer control there is no issue. I have tried wrapping both the timer, with an updatepanel as well as the htmleditor and the other textboxes on the page with updatepanel, here is the updatepanel below. I have even tried the autofocus to false on the htmleditor.  I am using ajax 3.5 and IE8. Anyone got any suggestions? <asp:UpdatePanel ID="uppnlContent" runat="server" UpdateMode="Conditional" RenderMode="Inline"> <ContentTemplate>  

Remove Word Style once copy and paste content to Rich text Editor in sharepoint 2010

Hi Guys, I have page layout for Users to add content for Page.I have site column for page content on field type HTML with Richtextmode="FUll Html". Now when user cut and paste content from Word document in this Field it carry word document style. how can i control this content on Page layout with CSS. Please adviseThanks Ron

package 'Visual Web Developer HTML Source Editor Package' has failed to load

Hi All  I am using VS 2008 Team Edition with SP1 installed. All was fine till yesterday when i started receiving the error 'package 'Visual Web Developer HTML SourceEditor Package' has failed to load properly (GUID={xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}}' . I am able to build the project and can do work in cs files but no support for the design view. Reinstall is not fixing this, Please HELP

urlrewritingnet problem with html

Hi All, I have set up url rewriting in my web.config with regex rules and it works correct for all html files. Problem: When I have a html file that is not a rule, there is an error. How can I keep using not rewrited html files?   So.. I only want to rewrite if the file does not exist. < urlrewritingnet rewriteOnlyVirtualUrls="true" does not seem to work Thanks  

Insert html formatted text into word document asp.net(C#)

HI,I am creating an ms-word document from server side using a template. Here i add the reference Microsoft word 11.0 object library. Here i use a template where i set some bookmarks. Now i need to populate those bookmarks.Everything goes fine but i am stuck in one place where i need to write html text exceptnormal text. My code sample is as follows:            object TemplatefileName = Server.MapPath("Template") + "\\High.doc";            object novalue = System.Reflection.Missing.Value;            Word.Table oTable;             Word.ApplicationClass objWord = new Word.ApplicationClass();            Word.Document objWordDoc = objWord.Documents.Add(ref TemplatefileName, ref novalue, ref novalue, ref novalue);            objWordDoc.Activate();            objWordDoc.Application.Visible = true;   objWordDoc.Bookmarks.get_Item(ref prj_name).Range.Text = dProject.Rows[0]["txtProject"].ToString();Here its a complex report. Now in a bookmark i need to write html c

Content Editor Web Part Title Wrap

Hello! I have run into a strange problem with wrapping the web part titles for the content editor web part. The classes appear to be the same for both the content editor titles and the list web part titles, however, the styles I applied ( word-wrap: break-word !important; ) and ( white-space: normal !important; ) are only working on the list web part titles. These web parts are in zones with a fixed width, and cells with a fixed width, but anytime a content editor part is added (with a long title) it still blows out the zone instead of wrapping the text. Any ideas would be appreciated.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend