dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: creating a HTML tags in a C# code behind

  1. #1
    Join Date
    Oct 2010
    Posts
    44

    creating a HTML tags in a C# code behind

    Hello Guys,


    Is there way where I can create a HTML tags eg: table in a C# codebehind?


    K

  2. #2
    Join Date
    Oct 2010
    Posts
    44

    Re: creating a HTML tags in a C# code behind

    Hello guys, any help?

  3. #3
    Join Date
    Sep 2008
    Location
    Netherlands
    Posts
    865

    Re: creating a HTML tags in a C# code behind

    Yes you can. Create an ASP.NET literal control in the markup page.

    In the code behind
    Code:
    string html = "<input type='submit' value='Click me'  />";
    literal1.Text = html;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)