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
  1. Home
  2. Web Development
  3. ASP.NET
  4. about .CSS file

about .CSS file

Scheduled Pinned Locked Moved ASP.NET
questionhtmlcsstools
5 Posts 2 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.
  • A Offline
    A Offline
    amir_iiui
    wrote on last edited by
    #1

    Can we disable .css files on runtime? When i render one html page.....then script files are also rendered..... I want that these scripts donot render. I can stop the rendering of web controls by making there visible property to false. Can i stop .css files or scripts? if it is possible the what is the method????

    M 1 Reply Last reply
    0
    • A amir_iiui

      Can we disable .css files on runtime? When i render one html page.....then script files are also rendered..... I want that these scripts donot render. I can stop the rendering of web controls by making there visible property to false. Can i stop .css files or scripts? if it is possible the what is the method????

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Basically, you can use the HtmlGenericControl to represent an Html server control tag that is not represented by a class in the .Net framework. For example, you use a link element on the web form as below:

      <link type="text/css" runat="server" id="linkCSS" href="style.css"/>

      Now, you declare an HtmlGenericControl in your code:

      protected System.Web.UI.HtmlControls.HtmlGenericControl linkCSS;

      then you can make it invisile as normal:

      linkCSS.Visible = false;

      A 1 Reply Last reply
      0
      • M minhpc_bk

        Basically, you can use the HtmlGenericControl to represent an Html server control tag that is not represented by a class in the .Net framework. For example, you use a link element on the web form as below:

        <link type="text/css" runat="server" id="linkCSS" href="style.css"/>

        Now, you declare an HtmlGenericControl in your code:

        protected System.Web.UI.HtmlControls.HtmlGenericControl linkCSS;

        then you can make it invisile as normal:

        linkCSS.Visible = false;

        A Offline
        A Offline
        amir_iiui
        wrote on last edited by
        #3

        I worked fine... Thankx... I have one more problem. If u can help me in this regard... then i will be very thankful to u.... My problem is that when i send my problem here on this forum, i takes much time to get reply from someone. Some times u need urgent help. I have seen ur active participation in this forum. So i wish to add u in my messenger list, so that i can get help from u in quick time. i have added u ur hotmail address in my msn messenger, but i think this address u donot use. So kindly tell me which hotmail and yahoo account u use very often. So that i can get ur quick help. If u solve my this problem... i will be very thankful to u.....

        M 1 Reply Last reply
        0
        • A amir_iiui

          I worked fine... Thankx... I have one more problem. If u can help me in this regard... then i will be very thankful to u.... My problem is that when i send my problem here on this forum, i takes much time to get reply from someone. Some times u need urgent help. I have seen ur active participation in this forum. So i wish to add u in my messenger list, so that i can get help from u in quick time. i have added u ur hotmail address in my msn messenger, but i think this address u donot use. So kindly tell me which hotmail and yahoo account u use very often. So that i can get ur quick help. If u solve my this problem... i will be very thankful to u.....

          M Offline
          M Offline
          minhpc_bk
          wrote on last edited by
          #4

          I understand that, here are some of my thoughts: + Firstly, over the past one year and half I have learnt a lot from CP and now it's time to return something to CP. And trying to answer questions in the CP forums, in my opinion, is a good way to do that. + Secondly, when you post your question here in this forum, you have a great chance of getting help from a lot of people not just me in this community. I think it might take me a lot of time to list all the big names in this community that I respect and surely they are willing to help you when they can. In addition, other people can benefit from that when they happen to have the same problem, the reason I say that is when I have any issue, the very first thing that I will do is to search for any comments in the forum that can help me. The another important thing is that my answer can be wrong, then in this case it's very great if there is someone who can point out that problem and give us a correct reply or a better solution. + Finally, I think that when we post any questions here in this forum, we all hope that we can quickly get the reply from someone, that's is also our goal I think as a CP member. So we are trying to make our community stronger, however, people also have their work and need time to keep on researching then can go back to help our community :-O. Very nice to do something for you if I can.

          A 1 Reply Last reply
          0
          • M minhpc_bk

            I understand that, here are some of my thoughts: + Firstly, over the past one year and half I have learnt a lot from CP and now it's time to return something to CP. And trying to answer questions in the CP forums, in my opinion, is a good way to do that. + Secondly, when you post your question here in this forum, you have a great chance of getting help from a lot of people not just me in this community. I think it might take me a lot of time to list all the big names in this community that I respect and surely they are willing to help you when they can. In addition, other people can benefit from that when they happen to have the same problem, the reason I say that is when I have any issue, the very first thing that I will do is to search for any comments in the forum that can help me. The another important thing is that my answer can be wrong, then in this case it's very great if there is someone who can point out that problem and give us a correct reply or a better solution. + Finally, I think that when we post any questions here in this forum, we all hope that we can quickly get the reply from someone, that's is also our goal I think as a CP member. So we are trying to make our community stronger, however, people also have their work and need time to keep on researching then can go back to help our community :-O. Very nice to do something for you if I can.

            A Offline
            A Offline
            amir_iiui
            wrote on last edited by
            #5

            I understand that all...... but there are cases, when problem is very short and i am in need of very much quick response...... For that case i was requesting u to give me ur messenger id...... as for as ur last sentence " Very nice to do something for you if I can " is concerned...... you can do a nice thing for me.......... Give me ur messenger id...... will u do this nice thing for me? Hope to get a positive response from u.

            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