Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Setting Div property from code behind

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 96
    Comment on it

    While programming we have used division tags many times and it is the best method to store and display data in an HTML page.

    Setting up div values can be done from front page as well as from the code page


    Ex: <div id="maindiv" runat="server"> </div> 
    

    In programming for accessing it you must provide runat="server" property for accessing it.


    maindiv.Attributes["style"]="Color:Red";
    maindiv.innerHTML="Warning Message";
    

    Through this you can manipulate it from the code behind

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: