Click here to Skip to main content
15,895,667 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: datetime object problem Pin
Abhijit Jana24-Oct-08 20:42
professionalAbhijit Jana24-Oct-08 20:42 
GeneralRe: datetime object problem Pin
VijayVishwakarma24-Oct-08 21:44
VijayVishwakarma24-Oct-08 21:44 
QuestionWeb services Learning Question! Pin
mr_muskurahat24-Oct-08 6:37
mr_muskurahat24-Oct-08 6:37 
AnswerRe: Web services Learning Question! Pin
led mike24-Oct-08 7:56
led mike24-Oct-08 7:56 
AnswerRe: Web services Learning Question! Pin
Abhijit Jana24-Oct-08 19:51
professionalAbhijit Jana24-Oct-08 19:51 
QuestionUnicode problem in char Pin
mr_muskurahat24-Oct-08 2:57
mr_muskurahat24-Oct-08 2:57 
AnswerRe: Unicode problem in char Pin
Deresen24-Oct-08 3:57
Deresen24-Oct-08 3:57 
QuestionRenderControl doesn't work Pin
Deresen24-Oct-08 2:23
Deresen24-Oct-08 2:23 
Hello,

I'm busy with an rich text editor inside a web page.
But when I try to render the HTML (to set it as a preview in a new textbox) it gives an error:
Control 'TextBox1' of type 'TextBox' must be placed inside a form tag with runat=server.

You will probably say something like: place the textbox in a form with runat=server.
Well, I did that. This is my code:

<body>
     <form id="form1" runat="server">
        <div class="somecss">
            <mnt:RichTextEditor Editor="SimpleEditor" Script="First" runat="server" ID="RTE" Rows="20" Columns="75" TextMode="MultiLine"  />
        </div>
        <asp:button ID="Button1" runat="server" text="To Preview" OnClick="Click" OnClientClick="myEditor.saveHTML();" />
        <br /><br />
        <asp:TextBox ID="TextBox1" runat="server" Rows="20" Columns="75" TextMode="MultiLine" />
    </form>
</body>

        protected void Click(object sender, EventArgs e)
        {
            StringBuilder sb = new StringBuilder(RTE.Text);
            StringWriter tw = new StringWriter(sb);
            HtmlTextWriter hw = new HtmlTextWriter(tw);
            TextBox1.RenderControl(hw);
        }

Questionhow can i use .vb class in C# project? Pin
mr_muskurahat24-Oct-08 1:48
mr_muskurahat24-Oct-08 1:48 
AnswerRe: how can i use .vb class in C# project? Pin
Nouman Bhatti24-Oct-08 1:51
Nouman Bhatti24-Oct-08 1:51 
AnswerRe: how can i use .vb class in C# project? Pin
NewDotNetUser24-Oct-08 2:10
NewDotNetUser24-Oct-08 2:10 
GeneralRe: how can i use .vb class in C# project? Pin
mr_muskurahat24-Oct-08 2:23
mr_muskurahat24-Oct-08 2:23 
AnswerRe: how can i use .vb class in C# project? Pin
Abhijit Jana24-Oct-08 2:45
professionalAbhijit Jana24-Oct-08 2:45 
AnswerRe: how can i use .vb class in C# project? Pin
Paddy Boyd24-Oct-08 2:27
Paddy Boyd24-Oct-08 2:27 
AnswerRe: how can i use .vb class in C# project? Pin
AhsanS24-Oct-08 2:49
AhsanS24-Oct-08 2:49 
QuestionXML Parsing Error: not well-formed Pin
ajay5888624-Oct-08 1:33
ajay5888624-Oct-08 1:33 
QuestionParser Error Message: Unrecognized attribute 'xmlns'. Pin
ajay5888624-Oct-08 1:31
ajay5888624-Oct-08 1:31 
AnswerRe: Parser Error Message: Unrecognized attribute 'xmlns'. Pin
Paddy Boyd24-Oct-08 2:28
Paddy Boyd24-Oct-08 2:28 
QuestionDropDownList with C#.NET Pin
mghiassi24-Oct-08 0:50
mghiassi24-Oct-08 0:50 
AnswerRe: DropDownList with C#.NET Pin
meeram39524-Oct-08 1:35
meeram39524-Oct-08 1:35 
AnswerRe: DropDownList with C#.NET Pin
Herman<T>.Instance27-Oct-08 3:29
Herman<T>.Instance27-Oct-08 3:29 
QuestionHow to append DB values to a String Pin
srinivaskonijeti24-Oct-08 0:41
srinivaskonijeti24-Oct-08 0:41 
AnswerRe: How to append DB values to a String Pin
meeram39524-Oct-08 1:33
meeram39524-Oct-08 1:33 
AnswerRe: How to append DB values to a String Pin
Nouman Bhatti24-Oct-08 1:56
Nouman Bhatti24-Oct-08 1:56 
AnswerRe: How to append DB values to a String Pin
AlexeiXX324-Oct-08 4:51
AlexeiXX324-Oct-08 4:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.