Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. problem related to radiobuttonlist control

problem related to radiobuttonlist control

Scheduled Pinned Locked Moved ASP.NET
help
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member_3259094
    wrote on last edited by
    #1

    hello i am using a radio buttonlist and want to showing text in two lines . in that case have to apply the diffrent style for both lines, so please help me some . i am using code like below.. string str=""; DataTable dt=new DataTable(); foreach (DataRow dr in dt.Rows) { str = dr["VisibilityText"].ToString()+"
    <span class="rblItalic">"+ dr["VisibilityDescription"].ToString()+ "</span>";" ListItem li = new ListItem(str,dr["VisibilityID"].ToString()); rbl_visibility.Items.Add(li); } it's showing in two lines but style is not applying ,all style showing like a text pls help me some

    rajeev kumar sharma vri software pvt. ltd. new delhi India

    S 1 Reply Last reply
    0
    • M Member_3259094

      hello i am using a radio buttonlist and want to showing text in two lines . in that case have to apply the diffrent style for both lines, so please help me some . i am using code like below.. string str=""; DataTable dt=new DataTable(); foreach (DataRow dr in dt.Rows) { str = dr["VisibilityText"].ToString()+"
      <span class="rblItalic">"+ dr["VisibilityDescription"].ToString()+ "</span>";" ListItem li = new ListItem(str,dr["VisibilityID"].ToString()); rbl_visibility.Items.Add(li); } it's showing in two lines but style is not applying ,all style showing like a text pls help me some

      rajeev kumar sharma vri software pvt. ltd. new delhi India

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      RajeevKumarSharma wrote:

      ListItem li = new ListItem(str,dr["VisibilityID"].ToString());

      Hey apply style sheet to item or radiobutton list rbl_visibility.CssClass = "Class Name"; li.Attributes.CssStyle = "Class Name"; And Check the html

      Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

      M 1 Reply Last reply
      0
      • S Sandeep Akhare

        RajeevKumarSharma wrote:

        ListItem li = new ListItem(str,dr["VisibilityID"].ToString());

        Hey apply style sheet to item or radiobutton list rbl_visibility.CssClass = "Class Name"; li.Attributes.CssStyle = "Class Name"; And Check the html

        Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

        M Offline
        M Offline
        Member_3259094
        wrote on last edited by
        #3

        very very thanks for reply but i have done this with my self

        rajeev kumar sharma vri software pvt. ltd. new delhi India

        S R 2 Replies Last reply
        0
        • M Member_3259094

          very very thanks for reply but i have done this with my self

          rajeev kumar sharma vri software pvt. ltd. new delhi India

          S Offline
          S Offline
          Sandeep Akhare
          wrote on last edited by
          #4

          Check the Html Source of your page ? And check the style

          Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

          1 Reply Last reply
          0
          • M Member_3259094

            very very thanks for reply but i have done this with my self

            rajeev kumar sharma vri software pvt. ltd. new delhi India

            R Offline
            R Offline
            Riza Azmi
            wrote on last edited by
            #5

            Hi Rajeev How to do that? What is the solution? Could you share?

            M 1 Reply Last reply
            0
            • R Riza Azmi

              Hi Rajeev How to do that? What is the solution? Could you share?

              M Offline
              M Offline
              Member_3259094
              wrote on last edited by
              #6

              Sir/Madam its very eassy. first time i was writting a html code but that is not reflecting on the page even that get change in html format. such as for greatethen > it change into < symbol but not reflacting so i use directoly < symbol and that is working properly. today i am very happy that some one want to share my idea . thanks my email id is rajeev15july@gmail.com

              rajeev kumar sharma vri software pvt. ltd. new delhi India

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups