Click here to Skip to main content
15,891,136 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Import Excel Sheet Pin
Tej Aj21-May-10 2:05
Tej Aj21-May-10 2:05 
Questionread anchor tag problem Pin
vishnukamath21-May-10 0:34
vishnukamath21-May-10 0:34 
AnswerRe: read anchor tag problem Pin
Martin Jarvis21-May-10 2:08
Martin Jarvis21-May-10 2:08 
AnswerRe: read anchor tag problem Pin
daveyerwin21-May-10 3:17
daveyerwin21-May-10 3:17 
QuestionActiveX control doubt Pin
Rahul Babu21-May-10 0:17
Rahul Babu21-May-10 0:17 
AnswerRe: ActiveX control doubt Pin
Sandeep Mewara21-May-10 3:54
mveSandeep Mewara21-May-10 3:54 
Questionwebcam applc Pin
AndyInUK21-May-10 0:03
AndyInUK21-May-10 0:03 
QuestionHtmlTextWriter Formatting Issues Pin
Randal Vance Cunanan20-May-10 20:18
Randal Vance Cunanan20-May-10 20:18 
Need help on the format of the produced output of the HtmlWriter class.
I need to make properly indent the tags in the final rendered output.

Sample:
string[] Names = new string[] 
            {
                "Johnny",
                "Mindy",
                "Jossy",
                "Kreuger",
                "Marco"
            };

            HtmlTextWriter writer = new HtmlTextWriter(new StringWriter());
            writer.RenderBeginTag(HtmlTextWriterTag.Ul);
            foreach (string name in Names)
            {
                writer.RenderBeginTag(HtmlTextWriterTag.Li);
                writer.Write(name);
                writer.RenderEndTag();
                writer.WriteLine();
            }
            writer.RenderEndTag();


The produced output is this:

  <ul>
    <li>Johnny</li>
    <li>Mindy</li>
    <li>Jossy</li>
    <li>Kreuger</li>
    <li>Marco</li>
</ul>


The closing ul tag is not indented properly.
Any work around for this, thanks a lot.
AnswerRe: HtmlTextWriter Formatting Issues Pin
Martin Jarvis21-May-10 2:07
Martin Jarvis21-May-10 2:07 
Questionaccessing textbox which is inside ascx file Pin
Dhyanga20-May-10 6:36
Dhyanga20-May-10 6:36 
AnswerRe: accessing textbox which is inside ascx file Pin
Not Active20-May-10 7:11
mentorNot Active20-May-10 7:11 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga20-May-10 7:27
Dhyanga20-May-10 7:27 
GeneralRe: accessing textbox which is inside ascx file Pin
Not Active20-May-10 7:39
mentorNot Active20-May-10 7:39 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga20-May-10 7:48
Dhyanga20-May-10 7:48 
GeneralRe: accessing textbox which is inside ascx file Pin
Not Active20-May-10 7:53
mentorNot Active20-May-10 7:53 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga20-May-10 8:09
Dhyanga20-May-10 8:09 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga20-May-10 8:14
Dhyanga20-May-10 8:14 
AnswerRe: accessing textbox which is inside ascx file Pin
Sandeep Mewara20-May-10 8:10
mveSandeep Mewara20-May-10 8:10 
GeneralRe: accessing textbox which is inside ascx file Pin
Not Active20-May-10 8:23
mentorNot Active20-May-10 8:23 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga20-May-10 8:35
Dhyanga20-May-10 8:35 
GeneralRe: accessing textbox which is inside ascx file Pin
Not Active20-May-10 8:47
mentorNot Active20-May-10 8:47 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga20-May-10 8:52
Dhyanga20-May-10 8:52 
GeneralRe: accessing textbox which is inside ascx file Pin
Not Active20-May-10 8:57
mentorNot Active20-May-10 8:57 
GeneralRe: accessing textbox which is inside ascx file Pin
Dhyanga20-May-10 8:53
Dhyanga20-May-10 8:53 
GeneralRe: accessing textbox which is inside ascx file Pin
Sandeep Mewara20-May-10 18:54
mveSandeep Mewara20-May-10 18:54 

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.