In the aspx page I have div with id="progressBar" and runat="server".I need to add width of the div from code behind in C#.
Can anyone help me how to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can set it’s
Styleproperty, like this:Alternatively, you can give it a CSS class, define this in your CSS:
And assign that class in your markup like this:
Or in your code-behind: